Project:SPARQL/examples: Difference between revisions

add electors graph
(add graph)
(add electors graph)
Line 60: Line 60:
}
}
#note query returns every connection in the wikibase so it may fall over!
#note query returns every connection in the wikibase so it may fall over!
</sparql>
===People elected to SAL or RAI linked to those who proposed their election===
<sparql tryit="1">
PREFIX a: <http://beyond-notability.wiki.opencura.com/entity/>
PREFIX b: <http://beyond-notability.wiki.opencura.com/prop/direct/>
#defaultView:Graph
SELECT ?person ?personLabel ?elector ?electorLabel WHERE {
    ?person b:P7|b:P8|b:P16 ?elector .
    SERVICE wikibase:label {
      bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en-gb".
    }
}
# I don't know how to use 'edgeLabel' to show the types of interaction, but if you have an idea suggest an edit!
</sparql>
</sparql>
6,317

edits