query-aecb1ebee770b6c8e107604061f56ec1

rq turtle/ttl

Converting a generated property from wd:X to wdt:XFor organisations doing a certain thing, I can get their external ID properties, but can't see how to convert the wd:P4750 I get to a wdt:P4750 value to use in the middle of a triplet to find things with that property. So I'm looking for a way of uncommenting the line in the middle, so its not hard coded.

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 DISTINCT ?item ?itemLabel ?register ?registerLabel ?issuerLabel  ?valueLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en-GB,en,fr,de,es,pt,pl,nl,cs". }
  { SELECT DISTINCT ?register ?issuer ?value WHERE {

    ?register wdt:P31 ?instance.
    VALUES ?instance {wd:Q23779665}

    ?register wdt:P2378 ?issuer. ?issuer wdt:P17 wd:Q145.

    #?item ?register ?value
    ?item wdt:P4750 ?value
    }
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?instance") v3("?issuer") v4("?item"):::projected v1("?register"):::projected v5("?value") c4(["en-GB,en,fr,de,es,pt,pl,nl,cs"]):::literal c2(["bd:serviceParam"]):::iri c8(["wd:Q145"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"wdt:P31"--> v3 bind0[/VALUES ?instance/] bind0-->v3 bind00(["wd:Q23779665"]) bind00 --> bind0 v1 --"wdt:P2378"--> v3 v3 --"wdt:P17"--> c8 v4 --"wdt:P4750"--> v5