query-b62433f5574fb8cb74d43c660838df9f
Instances of digital museums projects
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
(?project AS ?Project_Wd_item_link)
(?projectLabel AS ?Project_name)
(?instanceOfLabel AS ?instanceOf_name)
(?instanceOf AS ?instanceOf_Wd_item_link)
WHERE
{
?project wdt:P31 wd:Q106778540;
wdt:P31 ?instanceOf.
FILTER(?instanceOf != wd:Q106778540).
SERVICE wikibase:label {
bd:serviceParam wikibase:language "de,en".
?project rdfs:label ?projectLabel.
?instanceOf rdfs:label ?instanceOfLabel.
}
}
ORDER BY ?projectLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?Project_Wd_item_link")
v6("?Project_name")
v2("?instanceOf"):::projected
v4("?instanceOfLabel"):::projected
v8("?instanceOf_Wd_item_link")
v7("?instanceOf_name")
v3("?project"):::projected
v1("?projectLabel"):::projected
c4(["bd:serviceParam"]):::iri
c1(["wd:Q106778540"]):::iri
c6(["de,en"]):::literal
f0[["?instanceOf != 'wd:Q106778540'"]]
f0 --> v2
v3 --"wdt:P31"--> c1
v3 --"wdt:P31"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
v3 --"rdfs:label"--> v1
v2 --"rdfs:label"--> v4
end
bind1[/"?project"/]
v3 --o bind1
bind1 --as--o v5
bind2[/"?projectLabel"/]
v1 --o bind2
bind2 --as--o v6
bind3[/"?instanceOfLabel"/]
v4 --o bind3
bind3 --as--o v7
bind4[/"?instanceOf"/]
v2 --o bind4
bind4 --as--o v8