query-99783c28899eddfbecf82f1b9b74a1fb

rq turtle/ttl

Female lines descended from Elizabeth II (Q9682) SELECT ?child ?childLabel ?mother ?motherLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P25 ; gas:traversalDirection "Reverse"; gas:out ?child ; gas:out1 ?depth ; gas:out2 ?mother . }

SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth Female lines descended from Elizabeth II (Q9682) SELECT ?child ?childLabel ?mother ?motherLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P25 ; gas:traversalDirection "Reverse"; gas:out ?child ; gas:out1 ?depth ; gas:out2 ?mother . }

SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth Female lines descended from Elizabeth II (Q9682) SELECT ?child ?childLabel ?mother ?motherLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P25 ; gas:traversalDirection "Reverse"; gas:out ?child ; gas:out1 ?depth ; gas:out2 ?mother . }

SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth Female lines descended from Elizabeth II (Q9682) SELECT ?child ?childLabel ?mother ?motherLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P25 ; gas:traversalDirection "Reverse"; gas:out ?child ; gas:out1 ?depth ; gas:out2 ?mother . }

SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth Female lines descended from Elizabeth II (Q9682) SELECT ?child ?childLabel ?mother ?motherLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P25 ; gas:traversalDirection "Reverse"; gas:out ?child ; gas:out1 ?depth ; gas:out2 ?mother . }

SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth Female lines descended from Elizabeth II (Q9682) SELECT ?child ?childLabel ?mother ?motherLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P25 ; gas:traversalDirection "Reverse"; gas:out ?child ; gas:out1 ?depth ; gas:out2 ?mother . }

SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth Female lines descended from Elizabeth II (Q9682) SELECT ?child ?childLabel ?mother ?motherLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P25 ; gas:traversalDirection "Reverse"; gas:out ?child ; gas:out1 ?depth ; gas:out2 ?mother . }

SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth Female lines descended from Elizabeth II (Q9682) SELECT ?child ?childLabel ?mother ?motherLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P25 ; gas:traversalDirection "Reverse"; gas:out ?child ; gas:out1 ?depth ; gas:out2 ?mother . }

SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth

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 bd: <http://www.bigdata.com/rdf#>
# Female lines descended from Elizabeth II (Q9682)
SELECT ?child ?childLabel ?mother ?motherLabel ?depth WHERE
 {
  SERVICE gas:service {
       gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P25 ; gas:traversalDirection "Reverse"; gas:out ?child ; gas:out1 ?depth ; gas:out2 ?mother . 
  }

SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} order by ?depth

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?child"):::projected v1("?depth"):::projected v3("?mother"):::projected c2(["gas:program"]):::iri c10(["Reverse"]):::literal c17(["en"]):::literal c8(["wdt:P25"]):::iri c4(["com.bigdata.rdf.graph.analytics.BFS"]):::literal c15(["bd:serviceParam"]):::iri c6(["wd:Q9682"]):::iri subgraph s1["http://www.bigdata.com/rdf/gas#service"] style s1 stroke-width:4px; c2 --"gas:gasClass"--> c4 c2 --"gas:in"--> c6 c2 --"gas:linkType"--> c8 c2 --"gas:traversalDirection"--> c10 c2 --"gas:out"--> v2 c2 --"gas:out1"--> v1 c2 --"gas:out2"--> v3 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c15 --"wikibase:language"--> c17 end