Skip to content

Instantly share code, notes, and snippets.

@antoinecourtin
Created March 8, 2016 14:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save antoinecourtin/4434c82717bc46faf7d2 to your computer and use it in GitHub Desktop.
Save antoinecourtin/4434c82717bc46faf7d2 to your computer and use it in GitHub Desktop.
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
select distinct ?personne ?pRU ?pFR ?pJA ?pFA ?idAgorha ?idBnF ?ulan ?ISNI ?SUDOC ?VIAF
where {
?personne wdt:P31 wd:Q5 . #pour chercher des personnes humaines
?personne wdt:P106 wd:Q42973 . #qui occupe la fonction d'architecte
?personne wdt:P27 wd:Q142 . #qui sont français
?personne wdt:P2342 ?idAgorha . #on veut l'id d'AGORHA de l'INHA
?personne wdt:P268 ?idBnF . #et plein d'autres id
?personne wdt:P245 ?ulan .
?personne wdt:P213 ?ISNI .
?personne wdt:P269 ?SUDOC .
?personne wdt:P214 ?VIAF .
OPTIONAL { ?personne rdfs:label ?pFR FILTER (lang(?pFR) = "fr") . }
OPTIONAL { ?personne rdfs:label ?pRU FILTER (lang(?pRU) = "ru") . } #on le veut en plusieurs lang
OPTIONAL { ?personne rdfs:label ?pJA FILTER (lang(?pJA) = "ja") . }
OPTIONAL { ?personne rdfs:label ?pFA FILTER (lang(?pFA) = "fa") . }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment