Template:SPARQLDigraphQuery
Revision as of 12:11, 13 May 2019 by 192.168.0.1 (talk) (Created page with "#defaultView:Graph SELECT ?operator ?operatorLabel ?rgb ?project ?projectLabel WITH {SELECT ?operator WHERE { BIND(?item AS ?operator) BIND(pdio:Q401 AS ?class) ?...")
- defaultView:Graph
SELECT ?operator ?operatorLabel ?rgb ?project ?projectLabel WITH {SELECT ?operator WHERE {
BIND(?item AS ?operator) BIND(pdio:Q401 AS ?class) ?item pdiot:P3 ?class. }
} AS %operator WITH {SELECT ?project WHERE {
BIND(?item AS ?project) BIND(pdio:Q646 AS ?class) ?item pdiot:P3 ?class. }
} AS %project WHERE {
{ INCLUDE %operator. } UNION { INCLUDE %project. BIND("990000" AS ?rgb) } UNION { INCLUDE %operator. INCLUDE %project. ?project pdiot:P111 ?operator BIND("FFFFFF" AS ?rgb) } UNION { INCLUDE %operator. INCLUDE %project. ?operator pdiot:P111 ?project BIND("FFFFFF" AS ?rgb) } SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
} LIMIT 10000