Project:SPARQL/examples: Difference between revisions

m
Line 957: Line 957:


SELECT distinct ?locationLabel ?location ?wikidata ?wd_geo  
SELECT distinct ?locationLabel ?location ?wikidata ?wd_geo  
WHERE {   
WHERE {   
    
    
Line 964: Line 965:
   union
   union
   {?item bnwdt:P2  ?location . } # OR location P2
   {?item bnwdt:P2  ?location . } # OR location P2
  # any other possibles ?  "P33 but only if i/o arch site or historic house" historic house Q2961  arch site Q86
   union
   union
   {?item bnwdt:P33 ?location .} # admin territory ADDS ONE ROW. lol.
   {?item bnwdt:P33 ?location .} # OR admin territory  
      
      
       ?location bnwdt:P117 ?ws .  # wikidata id         
       ?location bnwdt:P117 ?ws .  # wikidata id         
579

edits