query-79b08cbb492949fd659d730df354ec4d
TODO
Use at
- https://query.wikidata.org/sparql
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#>
#Arbre acadèmic
#Arbre acadèmic
#defaultView:Graph
# gas:maxIterations 4 ;
SELECT ?item ?itemLabel ?pic ?linkTo ?ORCID WHERE {
SERVICE gas:service {
gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS";
gas:in wd:Q3305393;
gas:traversalDirection "Forward";
gas:out ?item;
gas:out1 ?depth;
gas:maxIterations 6 ;
gas:linkType wdt:P185.
}
OPTIONAL { ?item wdt:P185 ?linkTo. }
OPTIONAL { ?item wdt:P18 ?pic. }
OPTIONAL { ?item wdt:P496 ?ORCID. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?ORCID"):::projected
v2("?depth")
v1("?item"):::projected
v3("?linkTo"):::projected
v4("?pic"):::projected
c2(["gas:program"]):::iri
c20(["en"]):::literal
c6(["wd:Q3305393"]):::iri
c14(["wdt:P185"]):::iri
c4(["com.bigdata.rdf.graph.analytics.BFS"]):::literal
c18(["bd:serviceParam"]):::iri
c12(["6^^xsd:integer"]):::literal
c8(["Forward"]):::literal
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"--> v1
c2 --"gas:out1"--> v2
c2 --"gas:maxIterations"--> c12
c2 --"gas:linkType"--> c14
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -->c14--> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P496".-> v5
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c18 --"wikibase:language"--> c20
end