Find list of Items where "Instance of" i.e. "Category" is missing? #14
Answered
by
adarshmadrecha
adarshmadrecha
asked this question in
Q&A
Replies: 1 comment
-
PREFIX yq: <https://data.jain.wiki/entity/>
PREFIX yp: <https://data.jain.wiki/prop/direct/>
SELECT DISTINCT ?item ?itemName WHERE {
?item ?a ?type .
# Only consider "Items", don't give list of Properties
FILTER(STRSTARTS(STR(?item), "https://data.jain.wiki/entity/Q")) # only Q* entities
# Exclude items which have value set for P1
FILTER NOT EXISTS { ?item yp:P1 ?category . }
# Exclude deleted items (which have no label)
FILTER EXISTS { ?item rdfs:label ?anyLabel . }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
}
}
LIMIT 10 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
adarshmadrecha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is required to identify "bad data"
Beta Was this translation helpful? Give feedback.
All reactions