query-91022738757b72a71a9d7f41a2988ebf
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?ordre ?wikisource
WHERE
{
wd:Q63372286 p:P527 ?statement .
?statement ps:P527 ?item .
OPTIONAL { ?statement pq:P1545 ?ordre } .
OPTIONAL {
?item ^schema:about ?wikisource .
?wikisource schema:isPartOf/wikibase:wikiGroup "wikisource" .
} .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } .
} ORDER BY DESC(BOUND(?ordre)) xsd:integer(?ordre)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?ordre"):::projected
v2("?statement")
v4("?wikisource"):::projected
a1((" "))
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c1(["wd:Q63372286"]):::iri
c8(["wikisource"]):::literal
c1 --"p:P527"--> v2
v2 --"p:statement/P527"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P1545".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:about".-> v3
v4 --"schema:isPartOf"--> a1
a1 --"wikibase:wikiGroup"--> c8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end