query-cc3eb3e97df4c8bc9a8362fb6362bf0b
PropertiesOCLC control number (P243)ISBN-10 (P957)ISBN-13 (P212)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?sLabel ?s ?ocnURI ?isbn
WHERE {
?s wdt:P243 ?ocn ;
rdfs:label ?sLabel;
?isbnP ?isbn .
FILTER (?isbnP=wdt:P957 || ?isbnP=wdt:P212)
# ?prop wikibase:directClaim ?p .
BIND(URI(CONCAT('http://www.worldcat.org/oclc/', ?ocn)) AS ?ocnURI)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ?sLabel
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?isbn"):::projected
v2("?isbnP")
v4("?ocn")
v6("?ocnURI"):::projected
v3("?s"):::projected
v1("?sLabel"):::projected
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
f0[["(?isbnP = 'wdt:P957' || ?isbnP = 'wdt:P212')"]]
f0 --> v2
v3 --"wdt:P243"--> v4
v3 --"rdfs:label"--> v1
v3 -->v2--> v5
bind1[/"concat('http://www.worldcat.org/oclc/',?ocn)"/]
v4 --o bind1
bind1 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end