Difference between revisions of "Project:MyData/Japan/Mapping"

From Wikibase Personal data
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 24: Line 24:
 
* [https://query.personaldata.io/embed.html#PREFIX%20pdio%3A%20%3Chttp%3A%2F%2Fwiki.personaldata.io%2Fentity%2F%3E%0APREFIX%20pdiot%3A%20%3Chttp%3A%2F%2Fwiki.personaldata.io%2Fprop%2Fdirect%2F%3E%0A%0ASELECT%20DISTINCT%20%3Foperator%20%3FoperatorLabel%20%3Fproject%20%3FprojectLabel%0AWHERE%20%7B%0A%20%20%7B%0A%20%20%20%20%3Foperator%20pdiot%3AP3%20pdio%3AQ401.%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20%3Foperator%20pdiot%3AP55%20pdio%3AQ681.%0A%20%20%7D%0A%20%20UNION%0A%20%20%7B%0A%20%20%20%20%3Fproject%20pdiot%3AP3%20pdio%3AQ646.%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20%3Fproject%20pdiot%3AP55%20pdio%3AQ681.%0A%20%20%7D%20%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20.%20%0A%20%20%7D%0A%7D%0ALIMIT%2010000 spreadsheet with both]
 
* [https://query.personaldata.io/embed.html#PREFIX%20pdio%3A%20%3Chttp%3A%2F%2Fwiki.personaldata.io%2Fentity%2F%3E%0APREFIX%20pdiot%3A%20%3Chttp%3A%2F%2Fwiki.personaldata.io%2Fprop%2Fdirect%2F%3E%0A%0ASELECT%20DISTINCT%20%3Foperator%20%3FoperatorLabel%20%3Fproject%20%3FprojectLabel%0AWHERE%20%7B%0A%20%20%7B%0A%20%20%20%20%3Foperator%20pdiot%3AP3%20pdio%3AQ401.%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20%3Foperator%20pdiot%3AP55%20pdio%3AQ681.%0A%20%20%7D%0A%20%20UNION%0A%20%20%7B%0A%20%20%20%20%3Fproject%20pdiot%3AP3%20pdio%3AQ646.%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20%3Fproject%20pdiot%3AP55%20pdio%3AQ681.%0A%20%20%7D%20%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20.%20%0A%20%20%7D%0A%7D%0ALIMIT%2010000 spreadsheet with both]
 
* [https://query.personaldata.io/embed.html#PREFIX%20pdio%3A%20%3Chttp%3A%2F%2Fwiki.personaldata.io%2Fentity%2F%3E%0APREFIX%20pdiot%3A%20%3Chttp%3A%2F%2Fwiki.personaldata.io%2Fprop%2Fdirect%2F%3E%0A%0ASELECT%20DISTINCT%20%3Foperator%20%3FoperatorLabel%20%20%3Fproject%20%3FprojectLabel%20%20%3Findustry%20%3FindustryLabel%0AWHERE%20%7B%0A%20%20%7B%0A%20%20%20%20%3Foperator%20pdiot%3AP3%20pdio%3AQ401.%0A%20%20%20%20OPTIONAL%20%7B%3Foperator%20pdiot%3AP44%20%3Findustry.%7D%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20%3Foperator%20pdiot%3AP55%20pdio%3AQ681.%0A%20%20%7D%0A%20%20UNION%0A%20%20%7B%0A%20%20%20%20%3Fproject%20pdiot%3AP3%20pdio%3AQ646.%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20%3Fproject%20pdiot%3AP55%20pdio%3AQ681.%0A%20%20%7D%20%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20.%20%0A%20%20%7D%0A%7D%0ALIMIT%2010000 with industry tagging]
 
* [https://query.personaldata.io/embed.html#PREFIX%20pdio%3A%20%3Chttp%3A%2F%2Fwiki.personaldata.io%2Fentity%2F%3E%0APREFIX%20pdiot%3A%20%3Chttp%3A%2F%2Fwiki.personaldata.io%2Fprop%2Fdirect%2F%3E%0A%0ASELECT%20DISTINCT%20%3Foperator%20%3FoperatorLabel%20%20%3Fproject%20%3FprojectLabel%20%20%3Findustry%20%3FindustryLabel%0AWHERE%20%7B%0A%20%20%7B%0A%20%20%20%20%3Foperator%20pdiot%3AP3%20pdio%3AQ401.%0A%20%20%20%20OPTIONAL%20%7B%3Foperator%20pdiot%3AP44%20%3Findustry.%7D%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20%3Foperator%20pdiot%3AP55%20pdio%3AQ681.%0A%20%20%7D%0A%20%20UNION%0A%20%20%7B%0A%20%20%20%20%3Fproject%20pdiot%3AP3%20pdio%3AQ646.%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20OPTIONAL%20%7B%3Fproject%20pdiot%3AP111%20%3Foperator%7D%0A%20%20%20%20%3Fproject%20pdiot%3AP55%20pdio%3AQ681.%0A%20%20%7D%20%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20.%20%0A%20%20%7D%0A%7D%0ALIMIT%2010000 with industry tagging]
 +
 +
== Results ==
 +
{{Project:MyData/Japan/Mapping/Results}}

Latest revision as of 00:46, 27 January 2020

Mapping effort

This is part of a larger mapping effort. You should look at that page first.

This page is focused on Japan Japan (Q681).

Trip

Trip to Japan by a MyData Global delegation: Japan trip (Q702).

Data entry spreadsheet

Link to data entry spreadheets

Queries

Organisations

Projects

Mapping

Results

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 ?item1 ?item1Label ?rgb ?item2 ?item2Label
WITH {
  SELECT ?predicateFilterValue ?predicateFilterValueRGB WHERE {
    VALUES (?predicateFilterValue ?predicateFilterValueRGB) {
       (pdio:Q401 "EEEEEE")(pdio:Q646 "222288")
    }  
  }
}
AS %predicateFilterValues
WITH {
  SELECT ?predicate ?subjectValue ?objectValue ?predicateRGB  WHERE {
    VALUES (?predicate ?subjectValue ?objectValue ?predicateRGB) {
     (pdiot:P111 pdio:Q401 pdio:Q646 "EEEEEE")(pdiot:P111 pdio:Q646 pdio:Q401 "222288")
    }
  }
}
AS %predicates
WITH {SELECT ?node ?nodeRGB WHERE {
    ?node pdiot:P55 pdio:Q681.
    ?node pdiot:P3 ?predicateFilterValue.
    INCLUDE %predicateFilterValues.
    BIND(?predicateFilterValueRGB AS ?nodeRGB)
  }
}
AS %nodes
WITH {SELECT ?subject ?object ?edgeRGB WHERE {
    INCLUDE %predicates.
    ?subject pdiot:P3 ?subjectValue.
    ?object pdiot:P3 ?objectValue.
    ?subject ?predicate ?object.
    # This is filtering for each edge twice, potentially a huge waste: |E|*|V| instead of |V|
    ?subject pdiot:P55 pdio:Q681.
    ?object pdiot:P55 pdio:Q681.
    BIND(?predicateRGB as ?edgeRGB)
  }
} AS %edges
WHERE {
{ # The caption's nodes: 
     INCLUDE %predicateFilterValues.
     BIND(?predicateFilterValue AS ?item1).
     BIND(?predicateValueRGB AS ?rgb).
  } 
  UNION
  { # The caption's edges: 
     INCLUDE %predicates.
     BIND(?subjectValue AS ?item1).
     BIND(?objectValue AS ?item2).
     BIND(?predicateRGB AS ?rgb).
  }
  UNION
  {  
     INCLUDE %nodes.
     BIND(?node AS ?item1).
     BIND(?nodeRGB AS ?rgb).
  }
  UNION
  {  
     INCLUDE %edges.
     BIND(?subject AS ?item1).
     BIND(?object AS ?item2).
     BIND(?edgeRGB AS ?rgb).
  }
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en" . 
  }
}
LIMIT 10000

Japanese ecosystem (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 DISTINCT ?operator ?operatorLabel  ?project ?projectLabel  ?industry ?industryLabel
WHERE {
  {
    ?operator pdiot:P3 pdio:Q401.
    OPTIONAL {?operator pdiot:P44 ?industry.}
    OPTIONAL {?project pdiot:P111 ?operator}
    OPTIONAL {?project pdiot:P111 ?operator}
    ?operator pdiot:P55 pdio:Q681.
  }
  UNION
  {
    ?project pdiot:P3 pdio:Q646.
    OPTIONAL {?project pdiot:P111 ?operator}
    OPTIONAL {?project pdiot:P111 ?operator}
    ?project pdiot:P55 pdio:Q681.
  } 
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en" . 
  }
}
LIMIT 10000

Japanese ecosystem with indsutry information (embedded)