query-b02bbb083f3608d807d64f641d94fcf1
Wikidata authority control properties related to libraries which are not VIAF source IDs, with total number of IDs and Mix'n'match catalog SELECT ?p ?pLabel ?pDescription ?number_of_ids (URI(CONCAT("https://mix-n-match.toolforge.org/#/catalog/",?MnMid)) AS ?MnM) WHERE { ?p wdt:P31 wd:Q96776953 . MINUS { ?p wdt:P31/wdt:P279* wd:Q55586529 . } OPTIONAL { ?p wdt:P4876 ?number_of_ids . } OPTIONAL { ?p wdt:P2264 ?MnMid . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
Use at
- https://query.wikidata.org/sparql
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#>
#Wikidata authority control properties related to libraries which are not VIAF source IDs, with total number of IDs and Mix'n'match catalog
SELECT ?p ?pLabel ?pDescription ?number_of_ids (URI(CONCAT("https://mix-n-match.toolforge.org/#/catalog/",?MnMid)) AS ?MnM)
WHERE {
?p wdt:P31 wd:Q96776953 .
MINUS { ?p wdt:P31/wdt:P279* wd:Q55586529 . }
OPTIONAL { ?p wdt:P4876 ?number_of_ids . }
OPTIONAL { ?p wdt:P2264 ?MnMid . }
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;
v4("?MnM")
v3("?MnMid"):::projected
v2("?number_of_ids"):::projected
v1("?p"):::projected
a1((" "))
c4(["wd:Q55586529"]):::iri
c8(["bd:serviceParam"]):::iri
c2(["wd:Q96776953"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> c2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P4876".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2264".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind1[/"concat('https://mix-n-match.toolforge.org/#/catalog/',?MnMid)"/]
v3 --o bind1
bind1 --as--o v4