query-510160f32f7dce545d3219f888d7399d

rq turtle/ttl

Wikidata properties representing VIAF source IDs, with more data SELECT ?prop ?propLabel ?partnerid ?countryLabel (URI(CONCAT("https://mix-n-match.toolforge.org/#/catalog/",?MnMid)) AS ?MnM) WHERE { ?prop wdt:P31 wd:Q55586529 ; p:P1552 [ ps:P1552 wd:Q26921380; pq:P3295 ?partnerid] . OPTIONAL {?prop wdt:P17 ?country} OPTIONAL {?prop wdt:P2264 ?MnMid} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ?propLabel

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#>
#Wikidata properties representing VIAF source IDs, with more data
SELECT ?prop ?propLabel ?partnerid ?countryLabel (URI(CONCAT("https://mix-n-match.toolforge.org/#/catalog/",?MnMid)) AS ?MnM)
WHERE {
  ?prop wdt:P31 wd:Q55586529 ;
        p:P1552 [ ps:P1552 wd:Q26921380; pq:P3295 ?partnerid] .
  OPTIONAL {?prop wdt:P17 ?country}
  OPTIONAL {?prop wdt:P2264 ?MnMid}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?propLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?MnM") v5("?MnMid"):::projected v4("?country") v3("?partnerid"):::projected v2("?prop"):::projected v1("?propLabel"):::projected a1((" ")) c2(["wd:Q55586529"]):::iri c10(["bd:serviceParam"]):::iri c4(["wd:Q26921380"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"p:direct/P31"--> c2 a1 --"p:statement/P1552"--> c4 a1 --"p:qualifier/P3295"--> v3 v2 --"p:P1552"--> a1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P17".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P2264".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end bind0[/"concat('https://mix-n-match.toolforge.org/#/catalog/',?MnMid)"/] v5 --o bind0 bind0 --as--o v6