query-ba114f3d26ea2585193148b57445b0ef
TODO
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 DISTINCT ?television_programLabel ?hashtag_Twitter ?diffuseur_originalLabel ?site_officiel ?blog_officiel ?page_Facebook_officielle WHERE {
?television_program wdt:P495 wd:Q142.
VALUES ?type {
wd:Q11578774 # broadcasting program
wd:Q11424 # film
wd:Q23811232 # film and series for children
wd:Q57608327 # radio series episode
wd:Q15709880 # serial
wd:Q15416 # television program
wd:Q21191270 # television series episode
}
?television_program wdt:P31/wdt:P279* ?type.
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
OPTIONAL { ?television_program wdt:P495 ?pays_d_origine. }
OPTIONAL { ?television_program wdt:P2572 ?hashtag_Twitter. }
OPTIONAL { ?television_program wdt:P449 ?diffuseur_original. }
OPTIONAL { ?television_program wdt:P2561 ?titre. }
OPTIONAL { ?television_program wdt:P856 ?site_officiel. }
OPTIONAL { ?television_program wdt:P1581 ?blog_officiel. }
OPTIONAL { ?television_program wdt:P4003 ?page_Facebook_officielle. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?blog_officiel"):::projected
v5("?diffuseur_original")
v4("?hashtag_Twitter"):::projected
v9("?page_Facebook_officielle"):::projected
v3("?pays_d_origine")
v7("?site_officiel"):::projected
v1("?television_program")
v6("?titre")
v2("?type")
a1((" "))
c8(["fr"]):::literal
c6(["bd:serviceParam"]):::iri
c2(["wd:Q142"]):::iri
v1 --"wdt:P495"--> c2
bind0[/VALUES ?type/]
bind0-->v2
bind00(["wd:Q11578774"])
bind00 --> bind0
bind01(["wd:Q11424"])
bind01 --> bind0
bind02(["wd:Q23811232"])
bind02 --> bind0
bind03(["wd:Q57608327"])
bind03 --> bind0
bind04(["wd:Q15709880"])
bind04 --> bind0
bind05(["wd:Q15416"])
bind05 --> bind0
bind06(["wd:Q21191270"])
bind06 --> bind0
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P495".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2572".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P449".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2561".-> v6
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P856".-> v7
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1581".-> v8
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P4003".-> v9
end