Advertisement
Guest User

Untitled

a guest
Oct 14th, 2018
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 0.71 KB | None | 0 0
  1. SELECT ?link_to ?wikidata_item ?page_title WHERE {
  2.   VALUES (?lecointe) {(wd:Q1811449)}
  3.   ?link_from schema:about ?lecointe ;
  4.              schema:inLanguage "fr" ;
  5.              schema:name ?title .
  6.   SERVICE wikibase:mwapi {
  7.     bd:serviceParam wikibase:endpoint "fr.wikipedia.org" ;
  8.                     wikibase:api "Generator" ;
  9.                     mwapi:generator "links" ;
  10.                     mwapi:titles ?title ;
  11.                     mwapi:inprop "url" ;
  12.                     mwapi:redirects "true" .
  13.     ?link_to wikibase:apiOutputURI "@fullurl" .
  14.     ?wikidata_item wikibase:apiOutputItem mwapi:item .
  15.     ?page_title wikibase:apiOutput mwapi:title .
  16.   }
  17.   FILTER EXISTS { ?wikidata_item wdt:P31 wd:Q5 }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement