query-8676477f1e1f0456ba1b881429558638
title: Klassen der Objekte mit Verweis auf Beschreibung in BiB (P1343 od. P973) SELECT DISTINCT ?class ?classLabel (COUNT(?class) AS ?n) WHERE { { ?place wdt:P1343 wd:Q111792585 . } UNION { ?place wdt:P973 ?url . FILTER (STRSTARTS(STR(?URL), "https://bildhauerei-in-berlin.de/") ) }
?place wdt:P31 ?class .
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" . } } GROUP BY ?class ?classLabel ORDER BY DESC(?n)
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#>
#title: Klassen der Objekte mit Verweis auf Beschreibung in BiB (P1343 od. P973)
SELECT DISTINCT ?class ?classLabel (COUNT(?class) AS ?n) WHERE {
{
?place wdt:P1343 wd:Q111792585 .
} UNION {
?place wdt:P973 ?url .
FILTER (STRSTARTS(STR(?URL), "https://bildhauerei-in-berlin.de/") )
}
?place wdt:P31 ?class .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "de" .
}
}
GROUP BY ?class ?classLabel ORDER BY DESC(?n)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?URL")
v5("?class"):::projected
v6("?n")
v2("?place")
v4("?url")
c9(["de"]):::literal
c2(["wd:Q111792585"]):::iri
c7(["bd:serviceParam"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
f0[["starts-with(str(?URL),'https://bildhauerei-in-berlin.de/')"]]
f0 --> v3
v2 --"wdt:P973"--> v4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P1343"--> c2
end
union0r <== or ==> union0l
end
v2 --"wdt:P31"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind2[/"count(?class)"/]
v5 --o bind2
bind2 --as--o v6