Difference between revisions of "Project:MyData/Visualizations"

From Wikibase Personal data
Jump to navigation Jump to search
(Created page with "{{SPARQL|label=MyData hub network |query= #defaultView:Graph SELECT ?node ?nodeLabel ?value ?valueLabel ?edgeLabel (IF(BOUND(?edge), ?propertyrgb, "FFFFFF") AS ?rgb) #white...")
 
Line 1: Line 1:
 
{{SPARQL|label=MyData hub network
 
{{SPARQL|label=MyData hub network
 +
|state={{{state}}}
 
|query=
 
|query=
 
#defaultView:Graph
 
#defaultView:Graph
Line 25: Line 26:
  
 
{{SPARQL|label=data operators around the world
 
{{SPARQL|label=data operators around the world
 +
|state={{{state}}}
 
|query=
 
|query=
 
SELECT ?item ?itemLabel ?country ?countryLabel WHERE {
 
SELECT ?item ?itemLabel ?country ?countryLabel WHERE {
Line 34: Line 36:
 
} }}
 
} }}
 
{{SPARQL|label=associations, with country and location
 
{{SPARQL|label=associations, with country and location
 +
|state={{{state}}}
 
|query=
 
|query=
 
SELECT ?item ?itemLabel ?country ?countryLabel ?location ?locationLabel WHERE {
 
SELECT ?item ?itemLabel ?country ?countryLabel ?location ?locationLabel WHERE {

Revision as of 23:22, 26 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 ?node ?nodeLabel ?value ?valueLabel ?edgeLabel   
(IF(BOUND(?edge), ?propertyrgb, "FFFFFF") AS ?rgb) #white
{
  VALUES (?propertyRel ?propertyrgb)
  {
      (pdiot:P57 "880000")   # red - activity 
      (pdiot:P55 "00AA00")   # light green - country
      (pdiot:P137 "0000AA")  # blue - partner
      (pdiot:P145 "AA00AA")  # pink - seeks
  }
  pdio:Q49 pdiot:P63 ?node.
  OPTIONAL
  {
    ?node ?propertyRel ?value.
    ?edge wikibase:directClaim ?propertyRel.
  }.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}

MyData hub network (embedded)

  • personal data ecosystem maps
  • personal data tools ecosystem map
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/>
SELECT ?item ?itemLabel ?country ?countryLabel WHERE {
  ?item pdiot:P3 pdio:Q646.
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en" . 
  }
  OPTIONAL { ?item pdiot:P55 ?country. }
}

data operators around the world (embedded)

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/>
SELECT ?item ?itemLabel ?country ?countryLabel ?location ?locationLabel WHERE {
  ?item pdiot:P3 pdio:Q401.
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en" . 
  }
OPTIONAL { ?item pdiot:P55 ?country. }
OPTIONAL { ?item pdiot:P80 ?location. } }

associations, with country and location (embedded)