Project:SPARQL/examples: Difference between revisions

Line 942: Line 942:
==Place==
==Place==


=== All the wikibase places that can be mapped ===
=== All the things in BN that can be mapped ===


<sparql tryit="1">
<sparql tryit="1">
#title:map of BN places using wikidata P625
#title:map of BN locations using wikidata P625
#defaultView:Map
#defaultView:Map
#this will take a little while to run...
#this will take a little while to run...
Line 960: Line 960:
WHERE {   
WHERE {   
    
    
  {?item bnwdt:P29  ?location . } # resided at
  union
  {?location bnwdt:P12 bnwd:Q2147 .} # OR has instance of locality
  union
  {?item bnwdt:P2  ?location . } # OR location P2
  union
  {?item bnwdt:P33 ?location .} # OR admin territory
   
       ?location bnwdt:P117 ?ws .  # wikidata id         
       ?location bnwdt:P117 ?ws .  # wikidata id         
          
          
579

edits