query-ed625ec0c473052d76053fe323a8163c

rq turtle/ttl

movie with P973 start with "https://www.artfilm.ch" SELECT DISTINCT ?item ?itemLabel ?réal ?réalLabel ?fam ?famLabel WHERE { ?item wdt:P31/wdt:P279* wd:Q2431196; wdt:P973 ?describes; wdt:P57 ?réal FILTER STRSTARTS(STR(?describes), "https://www.artfilm.ch"). ?réal wdt:P734 ?fam. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it,de". ?item rdfs:label ?itemLabel. ?réal rdfs:label ?réalLabel. ?fam rdfs:label ?famLabel. } } ORDER BY ?famLabel

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#movie with P973 start with "https://www.artfilm.ch"
SELECT DISTINCT ?item ?itemLabel ?réal ?réalLabel ?fam ?famLabel
WHERE 
{
  ?item wdt:P31/wdt:P279* wd:Q2431196;
        wdt:P973 ?describes;
        wdt:P57 ?réal
  FILTER STRSTARTS(STR(?describes), "https://www.artfilm.ch").
  ?réal wdt:P734 ?fam.
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it,de".
    ?item rdfs:label ?itemLabel.
    ?réal rdfs:label ?réalLabel.
    ?fam rdfs:label ?famLabel.
}
}
ORDER BY ?famLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?describes") v5("?fam"):::projected v1("?famLabel"):::projected v3("?item"):::projected v6("?itemLabel"):::projected v4("?réal"):::projected v7("?réalLabel"):::projected a1((" ")) c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en,it,de"]):::literal c4(["wd:Q2431196"]):::iri f0[["starts-with(str(?describes),'https://www.artfilm.ch')"]] f0 --> v2 v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c4 v3 --"wdt:P973"--> v2 v3 --"wdt:P57"--> v4 v4 --"wdt:P734"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 v3 --"rdfs:label"--> v6 v4 --"rdfs:label"--> v7 v5 --"rdfs:label"--> v1 end