query-8b0c9788c730b3b878b478bbe345eb64

rq turtle/ttl

A.P. Møller group ownership

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Graph
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX gas: <http://www.bigdata.com/rdf/gas#>

select 
  ?owner ?ownerLabel ?owned ?ownedLabel
where {
  { 
    select
      ?owner1 ?owned1
    where {
      service gas:service {
        gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ;
                gas:in wd:Q12300043, wd:Q861295 ;                  
                gas:traversalDirection "Undirected" ;
                gas:out ?owned1 ;
                gas:out1 ?depth ;
                gas:out2 ?owner1 ;
                gas:linkType wdt:P1830 ;
                gas:maxIterations 5;
                gas:maxVisited 200 .
      }
    }
  }
  ?owner wdt:P1830 ?owned .
  filter (?owner = ?owner1  || ?owner = ?owned1 || ?owned = ?owner1 || ?owned = ?owned1)  

  service wikibase:label { bd:serviceParam wikibase:language "da,en" .  } 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?depth") v4("?owned"):::projected v3("?owned1") v1("?owner"):::projected v2("?owner1") c2(["gas:program"]):::iri c14(["wdt:P1830"]):::iri c18(["200^^xsd:integer"]):::literal c4(["com.bigdata.rdf.graph.analytics.BFS"]):::literal c20(["bd:serviceParam"]):::iri c9(["Undirected"]):::literal c16(["5^^xsd:integer"]):::literal c22(["da,en"]):::literal c7(["wd:Q861295"]):::iri c6(["wd:Q12300043"]):::iri f0[["(?owner = ?owner1 || (?owner = ?owned1 || (?owned = ?owner1 || ?owned = ?owned1)))"]] f0 --> v1 f0 --> v2 f0 --> v3 f0 --> v4 subgraph s1["http://www.bigdata.com/rdf/gas#service"] style s1 stroke-width:4px; c2 --"gas:gasClass"--> c4 c2 --"gas:in"--> c6 c2 --"gas:in"--> c7 c2 --"gas:traversalDirection"--> c9 c2 --"gas:out"--> v3 c2 --"gas:out1"--> v5 c2 --"gas:out2"--> v2 c2 --"gas:linkType"--> c14 c2 --"gas:maxIterations"--> c16 c2 --"gas:maxVisited"--> c18 end v1 -->c14--> v4 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c20 --"wikibase:language"--> c22 end