Advertisement
Guest User

Exemple de requête sur data.bnf.fr

a guest
Nov 3rd, 2015
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 1.01 KB | None | 0 0
  1. # Endpoint SparQL : http://data.bnf.fr/sparql/
  2. # Personnes avec diverses données reliées
  3.  
  4. PREFIX bio: <http://vocab.org/bio/0.1/>
  5. PREFIX foaf: <http://xmlns.com/foaf/0.1/>
  6. PREFIX foaf: <http://xmlns.com/foaf/0.1/>
  7. SELECT DISTINCT ?uriBnF ?nom ?naissance ?deces ?genre ?LangueExpression ?isni ?bio ?idref ?WP
  8. WHERE {
  9.   ?uriBnF isni:identifierValid ?isni ;
  10.                skos:exactMatch ?idref ;
  11.                skos:exactMatch ?WP ;
  12.                foaf:focus      ?person .
  13.   ?person      foaf:name       ?nom ;
  14.                foaf:gender     ?genre ;
  15.                bio:birth       ?naissance ;
  16.                bio:death       ?deces ;
  17.     rdagroup2elements:languageOfThePerson     ?LangueExpression ;
  18.     rdagroup2elements:biographicalInformation ?bio .
  19.   {SELECT ?person (group_concat(?langue ; SEPARATOR = " ; ") AS ?lg)
  20.     {?person  rdagroup2elements:languageOfThePerson ?langue } GROUP BY ?person}
  21.   FILTER REGEX(?idref, "^http://www.idref.fr/")
  22.   FILTER REGEX(?WP, "^http://fr.wikipedia.org/")
  23. }
  24. LIMIT 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement