query-4a5188d61900927dce7ff7a547034554
What entrys are using URL match pattern and which contain VIAF
SELECT ?item ?itemLabel ?value
WHERE
{
?item wdt:P8966 ?value
FILTER (CONTAINS(lcase(?value), "viaf"))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en language
}
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#What entrys are using URL match pattern and which contain VIAF
SELECT ?item ?itemLabel ?value
WHERE
{
?item wdt:P8966 ?value
FILTER (CONTAINS(lcase(?value), "viaf"))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en language
}
Query found at
- https://www.wikidata.org/wiki/User:Back_ache
- https://www.wikidata.org/wiki/Wikidata_talk:Tools/Wikidata_for_Web
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?value"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["contains(lower-case(?value),'viaf')"]]
f0 --> v1
v2 --"wdt:P8966"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end