4,466
edits
No edit summary |
|||
Line 1: | Line 1: | ||
Page under which Object modelling descriptions will be hosted: | Page under which Object modelling descriptions will be hosted: | ||
==Basic ontology== | |||
On the top of the Metabase ontology is the following item: | |||
* {{Q|Q3}} | |||
Which has the immediate sub-item: | |||
* {{Q|10}} | |||
Query to find all items that are {{P|P5}} or one or the other: | |||
<SPARQL tryit="1"> | |||
PREFIX wd: <https://metabase.wikibase.cloud/entity/> | |||
PREFIX wdt: <https://metabase.wikibase.cloud/prop/direct/> | |||
SELECT ?item ?wikidata_iri ?itemLabelEN ?itemLabelSV ?itemDescEN ?itemDescSV | |||
WHERE | |||
{ | |||
{?item wdt:P5 wd:Q3.} | |||
UNION | |||
{?item wdt:P5 wd:Q10.} | |||
OPTIONAL {?item wdt:P1 ?wikidataQ} | |||
BIND(URI(concat("http://www.wikidata.org/entity/", ?wikidataQ)) AS ?wikidata_iri) | |||
OPTIONAL {?item rdfs:label ?itemLabelEN filter (lang(?itemLabelEN) = "en")}. | |||
OPTIONAL {?item rdfs:label ?itemLabelSV filter (lang(?itemLabelSV) = "sv")}. | |||
OPTIONAL {?item schema:description ?itemDescEN filter (lang(?itemDescEN) = "en")}. | |||
OPTIONAL {?item schema:description ?itemDescSV filter (lang(?itemDescSV) = "sv")}. | |||
} | |||
</SPARQL> | |||
==Properties== | ==Properties== |