query-0959559207d1e5caf19f29a67fc0b120
TODO product_models that are subclasses of military vehicle https://www.wikidata.org/wiki/Wikidata_talk:SPARQL_query_service/WDQS_graph_split#How_much_time_does_the_split_actually_give_usThis query hits a blazegraph bug that makes it timeout unless the optimiser is disabled and the queries are in this order. This is a big issue for moving to a combined P31/P279 selection approach for models. See
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
?item wdt:P279* wd:Q1184840 .
?item wdt:P31/wdt:P279* wd:Q10929058 .
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:Requests_for_comment/object_vs_design_class_vs_functional_class_for_manufactured_objects/Queries
- https://www.wikidata.org/wiki/Wikidata_talk:SPARQL_query_service/WDQS_graph_split
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
a1((" "))
c2(["wd:Q1184840"]):::iri
c4(["wd:Q10929058"]):::iri
v1 --"wdt:P279"--> c2
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4