query-04f2c5aee655f6dea08ec94014ccf221

rq turtle/ttl

Propertiescollection (P195)instance of (P31)image (P18)described at URL (P973)inception (P571)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?obj ?objLabel ?pubdate ?pubdatePrecision ?typeLabel ?image ?url
WHERE {
?obj wdt:P195 wd:Q66455644;
   p:P571/psv:P571 ?pubdateStatementNode.
?pubdateStatementNode wikibase:timeValue ?pubdate ;
   wikibase:timePrecision ?pubdatePrecision # get precision of the publication date
OPTIONAL {?obj wdt:P31 ?type FILTER(?type != wd:Q18593264)}
OPTIONAL {?obj wdt:P18 ?image}
OPTIONAL {?obj wdt:P973 ?kc_url}
BIND(if(BOUND(?kc_url), ?kc_url, ?obj) AS ?url)
SERVICE wikibase:label {bd:serviceParam wikibase:language "en"} 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?image"):::projected v7("?kc_url") v2("?obj"):::projected v4("?pubdate"):::projected v5("?pubdatePrecision"):::projected v3("?pubdateStatementNode") v1("?type") v8("?url"):::projected a1((" ")) c3(["wd:Q66455644"]):::iri c14(["en"]):::literal c12(["bd:serviceParam"]):::iri v2 --"p:direct/P195"--> c3 v2 --"p:P571"--> a1 a1 --"p:statement/value/P571"--> v3 v3 --"wikibase:timeValue"--> v4 v3 --"wikibase:timePrecision"--> v5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P31".-> v1 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P18".-> v6 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P973".-> v7 end bind0[/"if(bound(?kc_url),?kc_url,?obj)"/] v7 --o bind0 v2 --o bind0 bind0 --as--o v8 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end