query-8d6cdce1a48664bcf50a79af57970672

rq turtle/ttl

PropertiesOCLC control number (P243)instance of (P31)equivalent property (P1628)VIAF ID (P214)

Use at

PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX wdt:  <http://www.wikidata.org/prop/direct/>
PREFIX wikibase:  <http://wikiba.se/ontology#>

CONSTRUCT {
  ?ocnURI ?schemaP ?viafURI.
} WHERE {
  ?s wdt:P243 ?ocn ;
#     wdt:P31 ?sType ;
     ?p ?o .
  ?wd  wikibase:directClaim ?p.
  ?wd wdt:P1628 ?schemaP.
  ?o wdt:P214 ?viafID ;
#     wdt:P31 ?oType
     .
  BIND(URI(CONCAT('http://www.worldcat.org/oclc/', ?ocn)) AS ?ocnURI)
  BIND(URI(CONCAT('http://viaf.org/viaf/', ?viafID)) AS ?viafURI)
  FILTER(CONTAINS(STR(?schemaP), "schema.org"))
#  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?o") v3("?ocn") v10("?ocnURI"):::projected v4("?p") v2("?s") v1("?schemaP"):::projected v7("?viafID") v10("?viafURI"):::projected v6("?wd") f0[["contains(str(?schemaP),'schema.org')"]] f0 --> v1 v2 --"wdt:P243"--> v3 v2 -->v4--> v5 v6 --"wikibase:directClaim"--> v4 v6 --"wdt:P1628"--> v1 v5 --"wdt:P214"--> v7 bind1[/"concat('http://www.worldcat.org/oclc/',?ocn)"/] v3 --o bind1 bind1 --as--o v10 bind2[/"concat('http://viaf.org/viaf/',?viafID)"/] v7 --o bind2 bind2 --as--o v10 bind3[/"?ocnURI"/] v10 --o bind3 bind3 --as--o v10 bind4[/"?viafURI"/] v10 --o bind4 bind4 --as--o v10