query-4aabc76fda35c0d517bca55d651b0a53

rq turtle/ttl

Propertiesinstance of (P31)OCLC control number (P243)author (P50)

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT *
WHERE {
  ?wd wdt:P31 wd:Q571;
      wdt:P243 ?ocn.
  OPTIONAL {?wd wdt:P50 ?author}
  FILTER(!BOUND(?author))
  BIND(URI(CONCAT("http://www.worldcat.org/oclc/", ?ocn)) AS ?wc)
}
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?author"):::projected v3("?ocn"):::projected v4("?wc"):::projected v2("?wd"):::projected c2(["wd:Q571"]):::iri f0[["not bound(?author)"]] f0 --> v1 v2 --"wdt:P31"--> c2 v2 --"wdt:P243"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P50".-> v1 end bind1[/"concat('http://www.worldcat.org/oclc/',?ocn)"/] v3 --o bind1 bind1 --as--o v4