query-95653a9d41687e434214cee0925def5f

rq turtle/ttl

che ha gli stessi risultati, ma meno ripetizioni nella query. . Prova ad aggiornare la query precedente per aggiungere queste restrizioni! (Q486748)pianist e (Q36834)composer , (P106)occupation Ora supponiamo che, al di fuori di questi risultati, siamo interessati solo ai figli che sono stati anche compositori e pianisti. Le proprietà e gli elementi pertinenti sono Ecco la mia soluzione:

Use at

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;
         wdt:P106 wd:Q486748.
  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