query-b5fff736dbe52ca51032c4622005cace

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 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 DISTINCT ?issuer ?issuerLabel ?register ?URLprefix WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en-GB,en". }
  {
    SELECT DISTINCT ?issuer ?register ?URLprefix WHERE {
      ?register p:P31 ?statement0.
      ?statement0 (ps:P31/(wdt:P279*)) wd:Q18618628. # cultural heritage
      ?register wdt:P17 wd:Q145.

      ?register p:P1630 ?P1630_statement .
      ?P1630_statement a wikibase:BestRank .
      ?P1630_statement ps:P1630 ?URLprefix; pq:P407 wd:Q1860. 
      ?statement0 a wikibase:BestRank
      #?register wdt:P1630 ?URLprefix. 
      #FILTER (lang(?URLprefix) = "en")
      OPTIONAL {?register wdt:P2378 ?issuer} 
    }
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?P1630_statement") v4("?URLprefix"):::projected v5("?issuer"):::projected v1("?register"):::projected v2("?statement0") a1((" ")) c4(["en-GB,en"]):::literal c13(["wikibase:BestRank"]):::iri c2(["bd:serviceParam"]):::iri c8(["wd:Q18618628"]):::iri c10(["wd:Q145"]):::iri c16(["wd:Q1860"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"p:P31"--> v2 v2 --"p:statement/P31"--> a1 a1 --"p:direct/P279"--> c8 v1 --"p:direct/P17"--> c10 v1 --"p:P1630"--> v3 v3 --"a"--> c13 v3 --"p:statement/P1630"--> v4 v3 --"p:qualifier/P407"--> c16 v2 --"a"--> c13 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P2378".-> v5 end