query-9185877ad5170f9605c86ce231212e17

rq turtle/ttl

BugGuide ID verification 14:20, 9 January 2017 (UTC)) talk (Jarekt. I was trying to create a query to verify the "Arthropoda" part. Unfortunately my query below is not working (timing out despite low number of items with that property). What am I doing wrong? --Arthropoda which is restricted only to North America BugGuide.net is a page ID for (P2464)BugGuide taxon ID

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item ?BugGuideID ?taxon 
{
    ?item wdt:P2464 ?BugGuideID .  # BugGuideID 
    ?item wdt:P225  ?taxon .       # taxon name
    MINUS{ ?item wdt:P171*  wd:Q1360 . }    # parent items are not Arthropoda
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?BugGuideID"):::projected v1("?item"):::projected v3("?taxon"):::projected c4(["wd:Q1360"]):::iri v1 --"wdt:P2464"--> v2 v1 --"wdt:P225"--> v3 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P171"--> c4 end