query-8ed4872486e01d4c6486c7ca580910e9
Propertiesinstance of (P31)VIAF ID (P214)
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#>
SELECT ?s ?sLabel ?typeLabel ?viafURI
WHERE {
?s wdt:P31 ?type;
wdt:P214 ?viaf.
BIND (URI(CONCAT("http://viaf.org/viaf/",?viaf)) AS ?viafURI)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?s"):::projected
v2("?type")
v3("?viaf")
v4("?viafURI"):::projected
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
v1 --"wdt:P31"--> v2
v1 --"wdt:P214"--> v3
bind0[/"concat('http://viaf.org/viaf/',?viaf)"/]
v3 --o bind0
bind0 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end