query-2ab29da48ed06eb6f1b159d8e1d93da3

rq turtle/ttl

Items with copyright statements missing applies to jurisdiction (P1001) statement statement (P1001)applies to jurisdiction but missing (P459)determination method or standard Public domain items with

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?det ?detLabel 
WHERE {
    ?item p:P6216 ?statement .
    ?statement ps:P6216 ?pd .                    # copyright status = public domain
    VALUES ?pd { wd:Q19652 wd:Q15687061 } 
    OPTIONAL {?statement pq:P459 ?det .} .
    #FILTER NOT EXISTS { ?statement pq:P1001 [] } 
    OPTIONAL { ?statement pq:P1001 ?q } .
    FILTER( !BOUND( ?q ) ) . # exclude if P1001 qualifier present
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
} order by ?det
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?det"):::projected v3("?item"):::projected v6("?pd") v2("?q") v4("?statement") c6(["bd:serviceParam"]):::iri c8(["en"]):::literal f0[["not bound(?q)"]] f0 --> v2 v3 --"p:P6216"--> v4 v4 --"p:statement/P6216"--> v6 bind1[/VALUES ?pd/] bind1-->v6 bind10(["wd:Q19652"]) bind10 --> bind1 bind11(["wd:Q15687061"]) bind11 --> bind1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:qualifier/P459".-> v1 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:qualifier/P1001".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end