Skip to content
Discussion options

You must be logged in to vote
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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adarshmadrecha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant