Project:SPARQL/examples: Difference between revisions

Line 117: Line 117:


<sparql tryit="1">
<sparql tryit="1">
PREFIX bn: <http://beyond-notability.wiki.opencura.com/entity/>
PREFIX bnwd: <http://beyond-notability.wiki.opencura.com/entity/>
PREFIX bnwds: <http://beyond-notability.wiki.opencura.com/entity/statement/>
PREFIX bnwdv: <http://beyond-notability.wiki.opencura.com/value/>
PREFIX bnwdt: <http://beyond-notability.wiki.opencura.com/prop/direct/>
PREFIX bnwdt: <http://beyond-notability.wiki.opencura.com/prop/direct/>
PREFIX bnp: <http://beyond-notability.wiki.opencura.com/prop/>
PREFIX bnps: <http://beyond-notability.wiki.opencura.com/prop/statement/>
PREFIX bnps: <http://beyond-notability.wiki.opencura.com/prop/statement/>
PREFIX bnpq: <http://beyond-notability.wiki.opencura.com/prop/qualifier/>
PREFIX bnpq: <http://beyond-notability.wiki.opencura.com/prop/qualifier/>
Line 128: Line 131:
   ?district bnwdt:P33 ?county .
   ?district bnwdt:P33 ?county .
   ?county bnwdt:P33 ?region .
   ?county bnwdt:P33 ?region .
     {?county bnwdt:P33 bn:Q67 .}
     {?county bnwdt:P33 bnwd:Q67 .}
     UNION
     UNION
     {?county bnwdt:P33 bn:Q85 .}
     {?county bnwdt:P33 bnwd:Q85 .}
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en-gb". }  
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en-gb". }  
}
}
</sparql>
</sparql>
6,317

edits