Advertisement
Guest User

Untitled

a guest
Oct 14th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 0.61 KB | None | 0 0
  1. SELECT ?link_to ?wikidata_item ?page_title WHERE {
  2.   VALUES (?link_from) {(<https://en.wikipedia.org/wiki/SPARQL>)}
  3.   ?link_from schema:name ?title .
  4.   SERVICE wikibase:mwapi {
  5.     bd:serviceParam wikibase:endpoint "en.wikipedia.org" ;
  6.                     wikibase:api "Generator" ;
  7.                     mwapi:generator "links" ;
  8.                     mwapi:titles ?title ;
  9.                     mwapi:inprop "url" ;
  10.                     mwapi:redirects "true" .
  11.     ?link_to wikibase:apiOutputURI "@fullurl" .
  12.     ?wikidata_item wikibase:apiOutputItem mwapi:item .
  13.     ?page_title wikibase:apiOutput mwapi:title .
  14.   }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement