Difference between revisions of "Project talk:MyData/Finland/Mapping"

From Wikibase Personal data
Jump to navigation Jump to search
Line 1: Line 1:
{{#invoke:ConcatArgs|ConcatArgs|init=PREFIX pdio: <http://wiki.personaldata.io/entity/>
+
{{SPARQLText|query=PREFIX pdio: <http://wiki.personaldata.io/entity/>
PREFIX pdiot: <http://wiki.personaldata.io/prop/direct/>
 
SELECT DISTINCT ?operator ?operatorLabel ?project ?projectLabel
 
WHERE {
 
  {
 
    ?operator pdiot:P3 pdio:Q401.
 
    OPTIONAL {?project pdiot:P111 ?operator}
 
    OPTIONAL {?project pdiot:P111 ?operator}
 
    ?operator pdiot:P55 pdio:Q564.
 
  }
 
  UNION
 
  {
 
    ?project pdiot:P3 pdio:Q646.
 
    OPTIONAL {?project pdiot:P111 ?operator}
 
    OPTIONAL {?project pdiot:P111 ?operator}
 
    ?project pdiot:P55 pdio:Q564.
 
  }
 
  SERVICE wikibase:label {
 
    bd:serviceParam wikibase:language "en" .
 
  }
 
}
 
LIMIT 10000
 
|min=1}}
 
 
 
 
 
{{SPARQLText|q=PREFIX pdio: <http://wiki.personaldata.io/entity/>
 
 
PREFIX pdiot: <http://wiki.personaldata.io/prop/direct/>
 
PREFIX pdiot: <http://wiki.personaldata.io/prop/direct/>
 
SELECT DISTINCT ?operator ?operatorLabel ?project ?projectLabel
 
SELECT DISTINCT ?operator ?operatorLabel ?project ?projectLabel

Revision as of 11:01, 13 May 2019

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/> PREFIX pdio: <http://wiki.personaldata.io/entity/> PREFIX pdiot: <http://wiki.personaldata.io/prop/direct/> SELECT DISTINCT ?operator ?operatorLabel ?project ?projectLabel WHERE {

 {
   ?operator pdiot:P3 pdio:Q401.
   OPTIONAL {?project pdiot:P111 ?operator}
   OPTIONAL {?project pdiot:P111 ?operator}
   ?operator pdiot:P55 pdio:Q564.
 }
 UNION
 {
   ?project pdiot:P3 pdio:Q646.
   OPTIONAL {?project pdiot:P111 ?operator}
   OPTIONAL {?project pdiot:P111 ?operator}
   ?project pdiot:P55 pdio:Q564.
 } 
 SERVICE wikibase:label {
   bd:serviceParam wikibase:language "en" . 
 }

} LIMIT 10000