Difference between revisions of "Template:Graph"

From Wikibase Personal data
Jump to navigation Jump to search
 
Line 5: Line 5:
 
WHERE {
 
WHERE {
 
   VALUES {{{ selector_objects}}} {
 
   VALUES {{{ selector_objects}}} {
      {{{ objects}}}
+
    {{{ objects}}}
 
     }
 
     }
 
   VALUES {{{selector_predicates}}} {
 
   VALUES {{{selector_predicates}}} {
      {{{predicates}}}
+
    {{{predicates}}}
 
     }  
 
     }  
 
   ?subject ?predicate ?object
 
   ?subject ?predicate ?object

Latest revision as of 12:07, 15 January 2020

PREFIX pdio: <https://wiki.personaldata.io/entity/>
PREFIX pdiot: <https://wiki.personaldata.io/prop/direct/>
PREFIX pdiop: <https://wiki.personaldata.io/prop/>
PREFIX pdiops: <https://wiki.personaldata.io/prop/statement/>
PREFIX pdiopq: <https://wiki.personaldata.io/prop/qualifier/>
#defaultView:Graph
SELECT  ?object ?objectLabel ?rgb ?subject ?subjectLabel 
WHERE {
  VALUES {{{ selector_objects}}} {
    {{{ objects}}}
    }
  VALUES {{{selector_predicates}}} {
    {{{predicates}}}
    } 
  ?subject ?predicate ?object
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en" . 
  }
}
LIMIT 1000

{{{label}}} (embedded)