query-b7cabb9e0e51aaf6d67cf0664759de85

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?statement ?property ?propertyLabel ?start_date ?end_date
WHERE 
{
  VALUES ?item {wd:Q33977}
  {?statement pq:P580 ?start_date.}
  UNION
  {?statement pq:P582 ?end_date.}
  ?item ?predicate ?statement .
  ?property wikibase:claim ?predicate .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by ?propertylabel ?statement

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?end_date"):::projected v3("?item"):::projected v6("?predicate") v7("?property"):::projected v1("?propertylabel") v4("?start_date"):::projected v2("?statement"):::projected c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?item/] bind0-->v3 bind00(["wd:Q33977"]) bind00 --> bind0 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"pq:P582"--> v5 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"pq:P580"--> v4 end union0r <== or ==> union0l end v3 -->v6--> v2 v7 --"wikibase:claim"--> v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end