query-89664f7497f6bda03841ca8865c82670
testing templates Q and P Yiddish list— T (P1651)YouTube video ID — T (Q8641)Yiddish — — T (P407)language of work or name , — T (P2936)language used , — T (P1412)languages spoken, written or signed , — T (P103)native language — T (P31)instance of (Q17521517)Bayerische Philharmonie example: : ?item (wdt:P103|wdt:P1412|wdt:2936|wdt:P407)* wd:Q8641.testing — T} (Q806124)Banatswabian — T} (P2013)Facebook username and — T} (Q143)Esperanto use variations with:
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)* 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
c10(["yi"]):::literal
c12(["ff"]):::literal
c11(["de"]):::literal
c3(["wd:Q8641"]):::iri
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
v2 --"wdt:P31"--> v1
v2 --"wdt:P2936"--> c3
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;
c6 --"wikibase:language"--> c8
v2 --"rdfs:label"--> v4
v1 --"rdfs:label"--> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c10
v2 --"rdfs:label"--> v6
v1 --"rdfs:label"--> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c11
v2 --"rdfs:label"--> v8
v1 --"rdfs:label"--> v9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c12
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