Modelling/Events and activities: Difference between revisions

Line 52: Line 52:


==SPARQL==
==SPARQL==
All events, their dates and locations:
<SPARQL tryit="1">
PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
SELECT DISTINCT ?item ?itemLabel ?where ?whereLabel ?when
WHERE
{
?item wbt:P5/wbt:P4* wb:Q40 .
OPTIONAL {?item wbt:P23 ?when}
OPTIONAL {?item wbt:P27 ?where}
SERVICE wikibase:label { bd:serviceParam wikibase:language "sv,en". }
}
</SPARQL>
==See also==
==See also==
* Event '''[[EntitySchema:E5|Entity schema]]''' and '''[https://metabase.wikibase.cloud/tools/cradle/?#/shex/E5 Cradle]'''
* Event '''[[EntitySchema:E5|Entity schema]]''' and '''[https://metabase.wikibase.cloud/tools/cradle/?#/shex/E5 Cradle]'''
[[Category:Documentation|E]]
[[Category:Documentation|E]]