query-be20494d83950d663575419dddcacb36
Visualiseer specifiek wikidata item: voorbeeld Jan Van EyckdefaultView:Graph
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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?node ?nodeLabel ?nodeImage ?childNode ?childNodeLabel ?childNodeImage ?rgb WHERE {
{
BIND(wd:Q102272 AS ?node)
?node ?p ?i.
OPTIONAL { ?node wdt:P18 ?nodeImage. }
?childNode ?x ?p.
?childNode rdf:type wikibase:Property.
FILTER(STRSTARTS(STR(?i), "http://www.wikidata.org/entity/Q"))
FILTER(STRSTARTS(STR(?childNode), "http://www.wikidata.org/entity/P"))
}
UNION
{
BIND("EFFBD8" AS ?rgb)
wd:Q102272 ?p ?childNode.
OPTIONAL { ?childNode wdt:P18 ?childNodeImage. }
?node ?x ?p.
?node rdf:type wikibase:Property.
FILTER(STRSTARTS(STR(?childNode), "http://www.wikidata.org/entity/Q"))
}
OPTIONAL {
?node wdt:P18 ?nodeImage.
?childNode wdt:P18 ?childNodeImage.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "nl". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?childNode"):::projected
v8("?childNodeImage"):::projected
v2("?i")
v3("?node"):::projected
v5("?nodeImage"):::projected
v4("?p")
v7("?rgb"):::projected
v6("?x")
c8(["bd:serviceParam"]):::iri
c5(["wikibase:Property"]):::iri
c6(["wd:Q102272"]):::iri
c10(["nl"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
f0[["starts-with(str(?childNode),'http://www.wikidata.org/entity/Q')"]]
f0 --> v1
bind1[/"'EFFBD8'"/]
bind1 --as--o v7
c6 -->v4--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v8
end
v3 -->v6--> v4
v3 --"a"--> c5
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
f2[["starts-with(str(?childNode),'http://www.wikidata.org/entity/P')"]]
f2 --> v1
f3[["starts-with(str(?i),'http://www.wikidata.org/entity/Q')"]]
f3 --> v2
bind4[/"'wd:Q102272'"/]
bind4 --as--o v3
v3 -->v4--> v2
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v5
end
v1 -->v6--> v4
v1 --"a"--> c5
end
union0r <== or ==> union0l
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v5
v1 --"wdt:P18"--> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end