Anonymous

Project:SPARQL/examples: Difference between revisions

From geokb
no edit summary
No edit summary
No edit summary
Line 55: Line 55:
WHERE {
WHERE {
   ?item wdt:P2* wd:Q3 ;
   ?item wdt:P2* wd:Q3 ;
        skos:altLabel ?itemAltLabel .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
</sparql>
= Academic Disciplines =
<sparql tryit="1">
PREFIX wdt: <https://geokb.wikibase.cloud/prop/direct/>
PREFIX wd: <https://geokb.wikibase.cloud/entity/>
SELECT ?item ?itemLabel ?itemAltLabel
WHERE {
  ?item wdt:P2* wd:Q158710 ;
         skos:altLabel ?itemAltLabel .
         skos:altLabel ?itemAltLabel .
   SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
}
</sparql>
</sparql>