query-3465a07c4b53d87d3f99ff3571b168f0
Propertiesauthor (P50)edition or translation of (P629)title (P1476)English Short Title Catalogue ID (P3939)publication date (P577)edition number (P393)full work available at URL (P953)number of pages (P1104)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?edition ?title ?year ?no ?pages (URI(CONCAT("http://estc.bl.uk/",?estc)) AS ?estc_cit) ?text WHERE {
?work wdt:P50 wd:Q538767. # work by Macaulay
?edition wdt:P629 ?work; # edition of work
wdt:P1476 ?title; # title of edition
wdt:P3939 ?estc; # ESTC Citation number
wdt:P577 ?pubdate.
BIND(YEAR(?pubdate) as ?year) # publication year
OPTIONAL{ ?edition wdt:P393 ?no } # edition number
OPTIONAL{ ?edition wdt:P953 ?text } # work available at
OPTIONAL { ?edition wdt:P1104 ?pages } # no of pages
} ORDER BY ?year ?no
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?edition"):::projected
v6("?estc"):::projected
v10("?estc_cit")
v2("?no"):::projected
v9("?pages"):::projected
v7("?pubdate")
v8("?text"):::projected
v5("?title"):::projected
v3("?work")
v8("?year"):::projected
c2(["wd:Q538767"]):::iri
v3 --"wdt:P50"--> c2
v4 --"wdt:P629"--> v3
v4 --"wdt:P1476"--> v5
v4 --"wdt:P3939"--> v6
v4 --"wdt:P577"--> v7
bind0[/"year-from-dateTime(?pubdate)"/]
v7 --o bind0
bind0 --as--o v8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P393".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P953".-> v8
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P1104".-> v9
end
bind1[/"concat('http://estc.bl.uk/',?estc)"/]
v6 --o bind1
bind1 --as--o v10