query-ad547f0463affa345e69f52f5b292f5f
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?text WHERE {
?item p:P528 ?statement .
?statement ps:P528 ?text .
FILTER(STRSTARTS(?text, "NGC")) .
MINUS { ?statement ?pq [] . [] wikibase:qualifier ?pq } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v4("?pq")
v3("?statement")
v1("?text"):::projected
a1((" "))
a2((" "))
c8(["de"]):::literal
c6(["bd:serviceParam"]):::iri
f0[["starts-with(?text,'NGC')"]]
f0 --> v1
v2 --"p:P528"--> v3
v3 --"p:statement/P528"--> v1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v3 -->v4--> a1
a2 --"wikibase:qualifier"--> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end