query-b0f5c2b20bc890a7a8071ec2a94510f9

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?sitelink ?item ?itemLabel ?instanceLabel ?countryLabel ?jurisdictionLabel ?subjectLabel where {
  FILTER(STRSTARTS(STR(?sitelink), "Commons:Copyright rules by territory/")) .
  ?sitelink ^schema:name ?article .
  ?article schema:about ?item ;
           schema:isPartOf <https://commons.wikimedia.org/> .
  Optional { ?item wdt:P31 ?instance. }
  Optional { ?item wdt:P17 ?country. }
  Optional { ?item wdt:P1001 ?jurisdiction. }
  Optional { ?item wdt:P921 ?subject. }
  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; v2("?article") v5("?country") v4("?instance") v3("?item"):::projected v6("?jurisdiction") v1("?sitelink"):::projected v7("?subject") c5([https://commons.wikimedia.org/]):::iri c11(["bd:serviceParam"]):::iri c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["starts-with(str(?sitelink),'Commons:Copyright rules by territory/')"]] f0 --> v1 v2 --"schema:name"--> v1 v2 --"schema:about"--> v3 v2 --"schema:isPartOf"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P31".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P17".-> v5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P1001".-> v6 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P921".-> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end