Template:SPARQLDigraphQuery

From Wikibase Personal data
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) ?...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. 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