query-67b352c97639c235236b496f676f6459
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?sitelink ?sitelink_label ?sitelink2 ?sitelink3
WHERE {
?item wdt:P345 "tt0068646" .
?sitelink schema:about ?item ; schema:isPartOf <https://en.wikipedia.org/> .
?sitelink schema:name ?sitelink_label .
?sitelink schema:inLanguage ?lang .
bind(concat("[[",str(?sitelink_label),"]]") as ?sitelink2)
bind(concat("[[:",str(?lang),":",str(?sitelink_label),"|",str(?sitelink_label),"]]") as ?sitelink3)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v4("?lang")
v2("?sitelink"):::projected
v5("?sitelink2"):::projected
v6("?sitelink3"):::projected
v3("?sitelink_label"):::projected
c5([https://en.wikipedia.org/]):::iri
c9(["bd:serviceParam"]):::iri
c2(["tt0068646"]):::literal
c11(["en"]):::literal
v1 --"wdt:P345"--> c2
v2 --"schema:about"--> v1
v2 --"schema:isPartOf"--> c5
v2 --"schema:name"--> v3
v2 --"schema:inLanguage"--> v4
bind0[/"concat('#91;#91;',str(?sitelink_label),'#93;#93;')"/]
v3 --o bind0
bind0 --as--o v5
bind1[/"concat('#91;#91;:',str(?lang),':',str(?sitelink_label),'|',str(?sitelink_label),'#93;#93;')"/]
v4 --o bind1
v3 --o bind1
bind1 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end