query-caa3176a09900b8911473b0256f83f38

rq turtle/ttl

Get all Information about Food as RDFHello, I want to extract all information (both taxometrys and all types of attributes) about Food (wd:Q2095) from Wikidata. I have already found out

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
-- Taxometry (Attribut still missing)
SELECT distinct ?node ?Unterklasse_von  
WHERE {
  ?node (wdt:P279*) wd:Q2095.
  OPTIONAL { ?node wdt:P279 ?Unterklasse_von. }
}


-- all involved elements
-- Taxometry 
SELECT ?subclass  ?predicate  ?entity
WHERE {
  ?subclass (wdt:P279*) wd:Q2095.
  { ?entity ?predicate ?subclass. }
  UNION
  { ?subclass ?predicate ?entity. }
}

Query found at