query-3c8ef10b8f786b0b0cfad0dec5ca3ce6
may be useful for creating Wikisource author pages SELECT ?item ?itemLabel ?value ?sl { { SELECT * { ?item wdt:P31 wd:Q5 . ?item wdt:P27 wd:Q174193 . ?item wdt:P1343 wd:Q15987216 . ?item wdt:P648 ?value ; wikibase:sitelinks ?sl FILTER NOT EXISTS { [] schema:about ?item ; schema:isPartOf https://en.wikisource.org/ } } ORDER BY DESC(?sl) ?item LIMIT 1000 } SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY DESC(?sl) ?item
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#>
# may be useful for creating Wikisource author pages
SELECT ?item ?itemLabel ?value ?sl
{
{
SELECT *
{
?item wdt:P31 wd:Q5 .
?item wdt:P27 wd:Q174193 .
?item wdt:P1343 wd:Q15987216 .
?item wdt:P648 ?value ; wikibase:sitelinks ?sl
FILTER NOT EXISTS { [] schema:about ?item ; schema:isPartOf <https://en.wikisource.org/> }
}
ORDER BY DESC(?sl) ?item
LIMIT 1000
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY DESC(?sl) ?item
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?sl"):::projected
v3("?value"):::projected
a1((" "))
c7(["wd:Q174193"]):::iri
c15(["en"]):::literal
c13(["bd:serviceParam"]):::iri
c5(["wd:Q5"]):::iri
c9(["wd:Q15987216"]):::iri
c3([https://en.wikisource.org/]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0a1 --"schema:about"--> e0v1
e0a1 --"schema:isPartOf"--> e0c3
e0v1("?item"):::projected
e0a1((" ")):::projected
e0c3([https://en.wikisource.org/]):::iri
end
f0--EXISTS--> f0e0
f0 --> a1
f0 --> c1
f0 --> v2
f0 --> c2
f0 --> c3
a1 --"schema:about"--> v2
a1 --"schema:isPartOf"--> c3
v2 --"wdt:P31"--> c5
v2 --"wdt:P27"--> c7
v2 --"wdt:P1343"--> c9
v2 --"wdt:P648"--> v3
v2 --"wikibase:sitelinks"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end