query-e85cc93fa909a81777d985ac4de295c4
Nota: indentazione e gli altri spazi bianchi non contano davvero: ho appena indentato la query per renderla più leggibile. Puoi anche scrivere questo come:
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#>
SELECT ?figlio ?figlioLabel
WHERE
{
  ?figlio wdt:P22 wd:Q1339;
         wdt:P25 wd:Q57487;
         wdt:P106 wd:Q36834, wd:Q486748.
  # entrambe le occupazioni in una riga
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?figlio"):::projected 
  c2(["wd:Q1339"]):::iri 
  c9(["bd:serviceParam"]):::iri 
  c11(["#91;AUTO_LANGUAGE#93;"]):::literal 
  c4(["wd:Q57487"]):::iri 
  c7(["wd:Q486748"]):::iri 
  c6(["wd:Q36834"]):::iri 
  v1 --"wdt:P22"-->  c2
  v1 --"wdt:P25"-->  c4
  v1 --"wdt:P106"-->  c6
  v1 --"wdt:P106"-->  c7
  subgraph s1["http://wikiba.se/ontology#label"]
    style s1 stroke-width:4px;
    c9 --"wikibase:language"-->  c11
  end