query-43c231e0c7c4314735e47a2af0424e70

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?year ?propertyLabel ?publisher ?publisherLabel ?coord WHERE 
{ 
  ?item ?predicate wd:Q472802 . 
  ?property wikibase:directClaim ?predicate.
  ?item wdt:P31 wd:Q1907875 . 
  OPTIONAL {?item wdt:P577 ?date . BIND(YEAR(?date) as ?year) }
  OPTIONAL {?item wdt:P123 ?publisher . 
           OPTIONAL {?publisher wdt:P625|wdt:P361/wdt:P625 ?coord .} }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?coord"):::projected v4("?date") v1("?item"):::projected v2("?predicate") v3("?property") v6("?publisher"):::projected v5("?year"):::projected a1((" ")) c10(["bd:serviceParam"]):::iri c4(["wd:Q1907875"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal c1(["wd:Q472802"]):::iri v1 -->v2--> c1 v3 --"wikibase:directClaim"--> v2 v1 --"wdt:P31"--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P577".-> v4 bind0[/"year-from-dateTime(?date)"/] v4 --o bind0 bind0 --as--o v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P123".-> v6 subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v6 -."wdt:P361".-> a1 a1 --"wdt:P625"--> v7 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v6 --"wdt:P625"--> v7 end union0r <== or ==> union0l end end end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end