query-212238fcd771f9b9198de4c84b26c518
]reply[22:05, 17 October 2021 (UTC)) talk (Sabelöga. Vet aldrig om den kommer till användning. --(P9979)NRK TV ID . Själv skapade jag denna query för program som NRK producerat som SAKNAR Like : InfrastrukturBra initiativ @
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
{
SELECT DISTINCT ?item WHERE {
{
?item p:P449 ?statement0.
?statement0 (ps:P449/(wdt:P279*)) wd:Q190238.
}
UNION
{
?item p:P162 ?statement1.
?statement1 (ps:P162/(wdt:P279*)) wd:Q190238.
}
UNION
{
?item p:P449 ?statement2.
?statement2 (ps:P449/(wdt:P279*)) wd:Q1025656.
}
UNION
{
?item p:P449 ?statement3.
?statement3 (ps:P449/(wdt:P279*)) wd:Q1025663.
}
MINUS {
?item p:P9979 ?statement4.
?statement4 (ps:P9979) _:anyValueP9979.
}
}
LIMIT 100
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?statement0")
v3("?statement1")
v4("?statement2")
v5("?statement3")
v6("?statement4")
a5((" "))
a1((" "))
a2((" "))
a3((" "))
a4((" "))
c11(["wd:Q1025656"]):::iri
c12(["wd:Q1025663"]):::iri
c2(["bd:serviceParam"]):::iri
c8(["wd:Q190238"]):::iri
c4(["#91;AUTO_LANGUAGE#93;"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
v1 --"p:P449"--> v5
v5 --"p:statement/P449"--> a4
a4 --"p:direct/P279"--> c12
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v1 --"p:P449"--> v4
v4 --"p:statement/P449"--> a3
a3 --"p:direct/P279"--> c11
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"p:P162"--> v3
v3 --"p:statement/P162"--> a2
a2 --"p:direct/P279"--> c8
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"p:P449"--> v2
v2 --"p:statement/P449"--> a1
a1 --"p:direct/P279"--> c8
end
union0r <== or ==> union0l
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:P9979"--> v6
v6 --"p:statement/P9979"--> a5
end