Project:MyData

From Wikibase Personal data
Revision as of 23:40, 18 October 2019 by Podehaye (talk | contribs)
Jump to navigation Jump to search

[[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/>

  1. defaultView:Graph

PREFIX pdio: <http://wiki.personaldata.io/entity/> PREFIX pdiot: <http://wiki.personaldata.io/prop/direct/>

SELECT ?node ?nodeLabel ?value ?valueLabel ?edgeLabel (IF(BOUND(?edge), ?propertyrgb, "FFFFFF") AS ?rgb) #white {

 VALUES (?propertyRel ?propertyrgb)
 {
     (pdiot:P57 "880000")   # red
     (pdiot:P55 "00AA00")   # light green
     (pdiot:P137 "0000AA")  # blue
     (pdiot:P145 "AA00AA")  # pink
 }
 pdio:Q49 pdiot:P63 ?node.
 OPTIONAL
 {
   ?node ?propertyRel ?value.
   ?edge wikibase:directClaim ?propertyRel.
 }.
 SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }

}|hub graph]]