Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1:  +
{{SPARQL|label= Mickey Mouse's social network
 +
|state={{{state}}}
 +
|query=
 +
#defaultView:Graph
 +
SELECT ?node ?nodeLabel ?nodeImage ?childNode ?childNodeLabel ?childNodeImage ?rgb WHERE {
 +
  {
 +
    BIND(pdio:Q308 AS ?node)
 +
    ?node ?p ?i.
 +
    OPTIONAL { ?node pdiot:P47 ?nodeImage. }
 +
    ?childNode ?x ?p.
 +
    ?childNode rdf:type wikibase:Property.
 +
    FILTER(STRSTARTS(STR(?i), "https://wiki.personaldata.io/entity/Q"))
 +
    FILTER(STRSTARTS(STR(?childNode), "https://wiki.personaldata.io/entity/P"))
 +
  }
 +
  UNION
 +
  {
 +
    BIND("EFFBD8" AS ?rgb)
 +
    pdio:Q308 ?p ?childNode.
 +
    OPTIONAL { ?childNode pdiot:P47 ?childNodeImage. }
 +
    ?node ?x ?p.
 +
    ?node rdf:type wikibase:Property.
 +
    FILTER(STRSTARTS(STR(?childNode), "https://wiki.personaldata.io/entity/Q"))
 +
  }
 +
  OPTIONAL {
 +
    ?node pdiot:P47 ?nodeImage.
 +
    ?childNode pdiot:P47 ?childNodeImage.
 +
  }
 +
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
 +
}
 +
}}
 +
 
{{SPARQL|label=simple view of FB|state={{{state}}}|query={{SPARQLTableQuery|table=Q383}}}}
 
{{SPARQL|label=simple view of FB|state={{{state}}}|query={{SPARQLTableQuery|table=Q383}}}}
 
{{SPARQL|label=extended view of FB
 
{{SPARQL|label=extended view of FB

Navigation menu