Project:SPARQL/examples: Difference between revisions

add people in wiki query
(add comment to regex)
(add people in wiki query)
Line 1: Line 1:
==Examples==
==Examples==
===People in the wiki, excluding the project team===
<sparql tryit="1">
PREFIX a: <http://beyond-notability.wiki.opencura.com/entity/>
PREFIX b: <http://beyond-notability.wiki.opencura.com/prop/direct/>
SELECT ?id ?name
WHERE { 
  ?id rdfs:label ?name .
  ?id b:P3 ?idGender . #this line assumes that items for people have a gender value
  FILTER NOT EXISTS {?id b:P4 a:Q12 .}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en-gb". }
}
</sparql>


===People whose elections were proposed by men===
===People whose elections were proposed by men===
6,317

edits