rescs:dash/book/BookShape leaf node


URI

http://rescs.org/dash/book/BookShape

Label

Book

Description

A book.

Target Classes (1)

Shape Properties

Instances of schema:Book can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

schema:Book
schema:isbn 0 1 xsd:string
schema:numberOfPages 0 1 xsd:integer
schema:CreativeWork
schema:about 0 1 schema:Thing
schema:abstract 0 1
schema:author 1 *
schema:citation 0 *
schema:conditionsOfAccess 0 1 xsd:string
schema:copyrightHolder 0 1
schema:copyrightNotice 0 1 xsd:string
schema:copyrightYear 0 1 xsd:integer
schema:creativeWorkStatus 0 1 xsd:string
schema:dateCreated 0 1 xsd:date
schema:dateModified 0 1 xsd:date
schema:datePublished 0 1 xsd:date
schema:editor 0 1 schema:Person
schema:encodingFormat 0 1 xsd:string
schema:funder 0 1
schema:genre 0 *
schema:hasPart 0 * schema:CreativeWork
schema:inLanguage 0 * xsd:string
schema:isAccessibleForFree 0 1 xsd:boolean
schema:keywords 0 *
schema:license 0 1
schema:maintainer 0 *
schema:mentions 0 * schema:Thing
schema:position 0 1
schema:publisher 0 1
schema:spatialCoverage 0 * schema:Place
schema:temporalCoverage 0 *
schema:Thing
schema:alternateName 0 * xsd:string
schema:description 0 1
schema:identifier 0 1
schema:image 0 1
schema:name 1 1 xsd:string
schema:sameAs 0 *
schema:url 0 *

Implementation

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <http://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://rescs.org/dash/book/BookShape> a sh:NodeShape ;
    rdfs:label "Book"^^xsd:string ;
    rdfs:comment "A book."^^xsd:string ;
    sh:and ( [ sh:node <http://rescs.org/dash/creativework/CreativeWorkShape> ] [ sh:property [ sh:datatype xsd:integer ;
                        sh:description "The number of pages in the book." ;
                        sh:maxCount 1 ;
                        sh:name "numberOfPages" ;
                        sh:path schema:numberOfPages ],
                    [ sh:datatype xsd:string ;
                        sh:description "The ISBN of the book." ;
                        sh:maxCount 1 ;
                        sh:name "isbn" ;
                        sh:path schema:isbn ] ] ) ;
    sh:targetClass schema:Book .