TTPrats
Joined 31 July 2016
#Arbre acadèmic
#Arbre acadèmic
#defaultView:Graph
SELECT ?descendent ?descendentLabel ?identificador_ORCID ?pic ?linkTo WHERE {
wd:Q3305393 wdt:P185* ?descendent.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]", "en". }
OPTIONAL { ?descendent wdt:P496 ?identificador_ORCID. }
OPTIONAL { ?descendent wdt:P18 ?pic }
OPTIONAL { ?descendent wdt:P185 ?linkTo }
}
#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". }
}
#Arbre acadèmic
#defaultView:Graph
# gas:maxIterations 4 ;
# gas:maxIterations 6 ;
# OPTIONAL { ?item wdt:P496 ?ORCID. }
SELECT ?item ?itemLabel ?pic ?linkTo ?rgb 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:linkType wdt:P185.
}
OPTIONAL { ?item wdt:P185 ?linkTo. }
# OPTIONAL { ?item wdt:P18 ?pic. }
BIND(?depth AS ?distancia)
BIND( IF(?depth = "1", "3182BD", "E6550D") AS ?rgb)
OPTIONAL {VALUES ?item { wd:Q3305393 }
?item wdt:P18 ?pic.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}