rescs:dash/book/BookShape leaf node


URI

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

Label

Book

Description

A book.

Target Classes (1)

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:string ;
                        sh:description "The ISBN of the book." ;
                        sh:maxCount 1 ;
                        sh:name "isbn" ;
                        sh:path schema:isbn ],
                    [ sh:datatype xsd:integer ;
                        sh:description "The number of pages in the book." ;
                        sh:maxCount 1 ;
                        sh:name "numberOfPages" ;
                        sh:path schema:numberOfPages ] ] ) ;
    sh:targetClass schema:Book .