query-d88f5c2d4d930f8f8205b57b451f785a

rq turtle/ttl

Propertiesinstance of (P31)subclass of (P279)developer (P178)ISNI (P213)readable file format (P1072)

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#>
SELECT ?item ?itemLabel ?format ?formatLabel
WHERE 
{ {?item wdt:P31/wdt:P279 wd:Q7397}
 UNION
 { ?item wdt:P31 ?class.
  {?class wdt:P279* wd:Q7397}
  UNION
  {?class wdt:P31 wd:Q17155032}.}
  ?item wdt:P178 ?dev.

  ?dev wdt:P213 ?ISNI.
 ?item wdt:P1072 ?format.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?ISNI") v2("?class") v3("?dev") v5("?format"):::projected v1("?item"):::projected a1((" ")) c4(["wd:Q17155032"]):::iri c3(["wd:Q7397"]):::iri c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> v2 subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c4 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P279"--> c3 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 end union0r <== or ==> union0l end v1 --"wdt:P178"--> v3 v3 --"wdt:P213"--> v4 v1 --"wdt:P1072"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end