query-0eab316db0b103dd82ab4e80af2c1045

rq turtle/ttl

Verwaltungsstruktur Münchens

Use at

PREFIX gas: <http://www.bigdata.com/rdf/gas#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Tree
#title:Verwaltungsstruktur Münchens in Deutschland
SELECT ?item ?itemLabel ?pic ?linkTo ?linkToLabel WHERE {
  SERVICE gas:service {
    gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.SSSP";
      gas:in wd:Q1726;
      gas:traversalDirection "Reverse";
      gas:out ?item;
      gas:out1 ?depth;
      gas:maxIterations 3 ;
      gas:linkType wdt:P150.
  }
  OPTIONAL { ?item wdt:P150 ?linkTo. }
  OPTIONAL { ?item wdt:P18 ?pic. }
  OPTIONAL {
    ?item p:P150 _:b15.
    _:b15 pq:P582 ?end.
  }
  OPTIONAL { ?item wdt:P576 ?aufgeloest. }
  FILTER((!(BOUND(?end))) && (!(BOUND(?aufgeloest))))
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?aufgeloest") v4("?depth") v1("?end") v3("?item"):::projected v5("?linkTo"):::projected v6("?pic"):::projected a1((" ")) c2(["gas:program"]):::iri c4(["com.bigdata.rdf.graph.analytics.SSSP"]):::literal c6(["wd:Q1726"]):::iri c8(["Reverse"]):::literal c12(["3^^xsd:integer"]):::literal c14(["p:direct/P150"]):::iri c20(["bd:serviceParam"]):::iri c22(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["not bound(?end)not bound(?aufgeloest)"]] f0 --> v1 f0 --> v2 subgraph s1["http://www.bigdata.com/rdf/gas#service"] style s1 stroke-width:4px; c2 --"gas:gasClass"--> c4 c2 --"gas:in"--> c6 c2 --"gas:traversalDirection"--> c8 c2 --"gas:out"--> v3 c2 --"gas:out1"--> v4 c2 --"gas:maxIterations"--> c12 c2 --"gas:linkType"--> c14 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -->c14--> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P18".-> v6 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:P150".-> a1 a1 --"p:qualifier/P582"--> v1 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P576".-> v2 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c20 --"wikibase:language"--> c22 end