query-ce1fddf549990d47ceaddc3b0078e754
2019.10.13verbessert sucht auch im youtube title
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item (URI(CONCAT("https://tools.wmflabs.org/reasonator/?q=", ?item_FOO)) AS ?reason) (URI(CONCAT("https://invidio.us/watch?v=", ?videoid)) AS ?video) ?item_EN ?item_YI ?item_DE ?type ?type_EN ?type_YI ?type_DE
WHERE
{
?item wdt:P31 ?type.
?item (wdt:P2936|wdt:P103|wdt:P1412|wdt:P1651/wdt:P1412) wd:Q8641.
OPTIONAL { ?item wdt:P1651 ?videoid. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en".
?item rdfs:label ?item_EN.
?type rdfs:label ?type_EN.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "yi".
?item rdfs:label ?item_YI.
?type rdfs:label ?type_YI.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de".
?item rdfs:label ?item_DE.
?type rdfs:label ?type_DE.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "ff".
?item rdfs:label ?item_FOO.
}
} ORDER BY DESC(?type)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v8("?item_DE"):::projected
v4("?item_EN"):::projected
v10("?item_FOO"):::projected
v6("?item_YI"):::projected
v11("?reason")
v1("?type"):::projected
v9("?type_DE"):::projected
v5("?type_EN"):::projected
v7("?type_YI"):::projected
v12("?video")
v3("?videoid"):::projected
a1((" "))
c14(["ff"]):::literal
c13(["de"]):::literal
c10(["en"]):::literal
c12(["yi"]):::literal
c3(["wd:Q8641"]):::iri
c8(["bd:serviceParam"]):::iri
v2 --"wdt:P31"--> v1
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;
v2 --"wdt:P1651"--> a1
a1 --"wdt:P1412"--> c3
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P1412"--> c3
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P103"--> c3
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P2936"--> c3
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P1651".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
v2 --"rdfs:label"--> v4
v1 --"rdfs:label"--> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c12
v2 --"rdfs:label"--> v6
v1 --"rdfs:label"--> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c13
v2 --"rdfs:label"--> v8
v1 --"rdfs:label"--> v9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c14
v2 --"rdfs:label"--> v10
end
bind0[/"concat('https://tools.wmflabs.org/reasonator/?q=',?item_FOO)"/]
v10 --o bind0
bind0 --as--o v11
bind1[/"concat('https://invidio.us/watch?v=',?videoid)"/]
v3 --o bind1
bind1 --as--o v12