4,467
edits
(Created page with "{{Modelling navigation}} C") |
No edit summary |
||
Line 1: | Line 1: | ||
{{Modelling navigation}} | {{Modelling navigation}} | ||
==Modeling a conference== | |||
==SPARQL== | |||
<SPARQL tryit="1"> | |||
PREFIX wb: <https://metabase.wikibase.cloud/entity/> | |||
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/> | |||
SELECT ?item ?itemLabel ?when ?wikipage (GROUP_CONCAT(DISTINCT ?personLabel; SEPARATOR = ", ") AS ?persons) (GROUP_CONCAT(DISTINCT ?mainsubjectLabel; SEPARATOR = ", ") AS ?topics) | |||
WHERE | |||
{ | |||
?item wbt:P17 wb:Q22660. | |||
OPTIONAL {?item wbt:P23 ?when} | |||
OPTIONAL {?item wbt:P32 ?person} # leader, eg in a workshop | |||
OPTIONAL {?item wbt:P33 ?person} # speaker, eg in a presentation | |||
OPTIONAL {?item wbt:P19 ?person} # author, eg of a video | |||
OPTIONAL {?item wbt:P11 ?wikipage} | |||
OPTIONAL {?item wbt:P15 ?mainsubject} | |||
SERVICE wikibase:label { | |||
bd:serviceParam wikibase:language "en,sv,es". | |||
?item rdfs:label ?itemLabel. | |||
?person rdfs:label ?personLabel. | |||
?mainsubject rdfs:label ?mainsubjectLabel. | |||
} | |||
} | |||
GROUP BY ?item ?itemLabel ?when ?wikipage | |||
ORDER BY ?when | |||
</SPARQL> | |||
[[Category:Documentation|C]] | [[Category:Documentation|C]] |