query-13cf0bc9040f594b6e313de69a995bfd
title:Perseus work abbreviations SELECT ?abbr ?work ?workLabel ?author ?authorLabel WHERE { ?work p:P8703 [ pq:P1535 wd:Q639661 ; ps:P8703 ?abbr ] . OPTIONAL { ?work wdt:P50 ?author } . SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } ORDER BY ?abbr
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 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#>
#title:Perseus work abbreviations
SELECT ?abbr ?work ?workLabel ?author ?authorLabel
WHERE {
?work p:P8703 [ pq:P1535 wd:Q639661 ; ps:P8703 ?abbr ] .
OPTIONAL { ?work wdt:P50 ?author } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?abbr
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?abbr"):::projected
v3("?author"):::projected
v2("?work"):::projected
a1((" "))
c2(["wd:Q639661"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
a1 --"p:qualifier/P1535"--> c2
a1 --"p:statement/P8703"--> v1
v2 --"p:P8703"--> a1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P50".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end