query-2d08c7d84d3b6ece2ab79a24bbcf79ea
Árbol de clases para BOSQUE (Traversal direction = Forward)Recorrido de las subclases (P279) en las que se enmarca el concepto No ficción (Q213051):
Use at
- https://query.wikidata.org/sparql
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#>
#defaultView:Graph
PREFIX gas: <http://www.bigdata.com/rdf/gas#>
SELECT ?item ?itemLabel ?linkTo {
{ SERVICE gas:service {
gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.SSSP" ;
gas:in wd:Q213051 ; # Non-Fiction
gas:traversalDirection "Forward" ;
gas:out ?item ;
gas:out1 ?depth ;
gas:maxIterations 5 ;
gas:maxVisited 5 ;
gas:linkType wdt:P279 .
} }
OPTIONAL { ?item wdt:P279 ?linkTo }
SERVICE wikibase:label {bd:serviceParam wikibase:language "es,en" }
}
Query found at
- https://www.wikidata.org/wiki/User:Tsaorin/Obrasliterarias
- https://www.wikidata.org/wiki/User:Tsaorin/Subclases
- https://www.wikidata.org/wiki/User:Tsaorin/TallerUSAL2020
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?depth")
v1("?item"):::projected
v3("?linkTo"):::projected
c2(["gas:program"]):::iri
c4(["com.bigdata.rdf.graph.analytics.SSSP"]):::literal
c19(["es,en"]):::literal
c15(["wdt:P279"]):::iri
c6(["wd:Q213051"]):::iri
c17(["bd:serviceParam"]):::iri
c12(["5^^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:maxVisited"--> c12
c2 --"gas:linkType"--> c15
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -->c15--> v3
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c17 -."wikibase:language".-> c19
end