query-cef4546c516ac2242b10cd7c62f50425

rq turtle/ttl

Propertiesinstance of (P31)subclass of (P279)has characteristic (P1552)defining formula (P2534)

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 ?trading_strategy ?trading_strategyLabel ?classLabel ?quality ?qualityLabel ?equation WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?trading_strategy wdt:P31*/wdt:P279* wd:Q1574928.
  ?trading_strategy wdt:P279 ?class.
  ?trading_strategy wdt:P1552 ?quality.
  OPTIONAL { ?quality wdt:P2534 ?equation }.
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?class") v4("?equation"):::projected v3("?quality"):::projected v1("?trading_strategy"):::projected a1((" ")) c2(["bd:serviceParam"]):::iri c7(["wd:Q1574928"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c7 v1 --"wdt:P279"--> v2 v1 --"wdt:P1552"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P2534".-> v4 end