query-f605a34af691861fe0f6910c5c40aae1
TODO user:Tagishsimon c/o special:permalink/1404805351#RfQ: enwikisource interwiki to ruwiki / ruwikisourcePurpose to identify inconvenientally merged/linked literary works/editions
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?ruWP ?enWS ?ruWS
WHERE
{
# ?item wdt:P31/wdt:P279* wd:Q3331189. #edition
?item wdt:P31/wdt:P279* wd:Q7725634. #literary work
?ruWP schema:about ?item ;
schema:isPartOf <https://ru.wikipedia.org/> .
?enWS schema:about ?item ;
schema:isPartOf <https://en.wikisource.org/>.
?ruWS schema:about ?item ;
schema:isPartOf <https://ru.wikisource.org/>.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
- https://www.wikidata.org/wiki/User:Billinghurst/queries
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2021/04
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?enWS"):::projected
v1("?item"):::projected
v2("?ruWP"):::projected
v4("?ruWS"):::projected
a1((" "))
c8([https://ru.wikisource.org/]):::iri
c10(["bd:serviceParam"]):::iri
c6([https://ru.wikipedia.org/]):::iri
c3(["wd:Q7725634"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c7([https://en.wikisource.org/]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"schema:about"--> v1
v2 --"schema:isPartOf"--> c6
v3 --"schema:about"--> v1
v3 --"schema:isPartOf"--> c7
v4 --"schema:about"--> v1
v4 --"schema:isPartOf"--> c8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end