query-ca43bca3766d46e7bbf1448e3d67b7aa

rq turtle/ttl

Diseases within psychiatry. This is a simplified production version, for automated dictionary generation. See the page history for a version that handles aliases. SELECT DISTINCT ?item WHERE { ?item wdt:P31 wd:Q12136 . ?item wdt:P1995 ?medspec . ?medspec wdt:P361* wd:Q7867 .

SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } } LIMIT 10000

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Diseases within psychiatry. This is a simplified production version, for automated dictionary generation. See the page history for a version that handles aliases.
SELECT DISTINCT ?item
  WHERE {
  ?item wdt:P31 wd:Q12136 .
  ?item wdt:P1995 ?medspec .
  ?medspec wdt:P361* wd:Q7867 .

  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
LIMIT 10000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?medspec") c7(["bd:serviceParam"]):::iri c5(["wd:Q7867"]):::iri c9(["en"]):::literal c2(["wd:Q12136"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P1995"--> v2 v2 --"wdt:P361"--> c5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end