Skip to content

Instantly share code, notes, and snippets.

@peterk
Last active May 26, 2017 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterk/c61d1bd794a9c2a58d65d9cfaf655c60 to your computer and use it in GitHub Desktop.
Save peterk/c61d1bd794a9c2a58d65d9cfaf655c60 to your computer and use it in GitHub Desktop.
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX dc: <http://purl.org/dc/terms/>
PREFIX sdo: <http://schema.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT (COUNT(*) AS ?count)
WHERE {
?person wdt:P31 wd:Q5 .
?person rdfs:label ?label .
?person sdo:description ?desc .
?post sdo:about ?person .
?post dc:identifier ?post_id .
OPTIONAL {
SELECT ?imageurl {
?person sdo:image ?imageurl .
}
LIMIT 1
}
FILTER NOT EXISTS{?person rdfs:seeAlso wd:Q1142091 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment