query-4c84ff99ef52d76d591c6b9551fb1d0d
Problem with QualifiersHello, i have got a Problem with qualifiers. I wrote a Sparql, where the Catalogue-Text starts with NGC. It works. But i want to see it only, when it has no Qualifier. How can i do that ?
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 ?item ?itemLabel ?text
WHERE
{
?item wdt:P528 ?text.
FILTER(STRSTARTS(?text, "NGC")).
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
v1("?text"):::projected
c6(["de"]):::literal
c4(["bd:serviceParam"]):::iri
f0[["starts-with(?text,'NGC')"]]
f0 --> v1
v2 --"wdt:P528"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end