query-65686bf160289e7cc69191063128f865
PropertiesOCLC control number (P243)has edition or translation (P747)edition number (P393)language of work or name (P407)
Use at
- https://query.wikidata.org/sparql
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?wdWork ?wcWork ?wdWorkLabel ?wdEdition ?wcEdition ?wdEditionLabel ?languageLabel ?editionNumber
WHERE {
?wdWork wdt:P243 ?ocnWork ;
wdt:P747 ?wdEdition.
?wdEdition wdt:P243 ?ocnEdition .
OPTIONAL {?wdEdition wdt:P393 ?editionNumber}
OPTIONAL {?wdEdition wdt:P407 ?language}
BIND (URI(CONCAT("http://www.worldcat.org/oclc/",?ocnWork)) AS ?wcWork)
BIND (URI(CONCAT("http://www.worldcat.org/oclc/",?ocnEdition)) AS ?wcEdition)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ?wdWorkLabel ?editionNumber
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?editionNumber"):::projected
v7("?language")
v6("?ocnEdition")
v4("?ocnWork")
v9("?wcEdition"):::projected
v8("?wcWork"):::projected
v5("?wdEdition"):::projected
v3("?wdWork"):::projected
v1("?wdWorkLabel"):::projected
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
v3 --"wdt:P243"--> v4
v3 --"wdt:P747"--> v5
v5 --"wdt:P243"--> v6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."wdt:P393".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v5 -."wdt:P407".-> v7
end
bind0[/"concat('http://www.worldcat.org/oclc/',?ocnWork)"/]
v4 --o bind0
bind0 --as--o v8
bind1[/"concat('http://www.worldcat.org/oclc/',?ocnEdition)"/]
v6 --o bind1
bind1 --as--o v9
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end