Skip to content

Commit

Permalink
Added examples
Browse files Browse the repository at this point in the history
  • Loading branch information
labra committed Mar 23, 2022
1 parent 4a75487 commit 9242ff2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 14 deletions.
8 changes: 8 additions & 0 deletions examples/book.shex
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
prefix : <http://validatingrdf.com/examples/>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix schema: <http://schema.org/>

:Book {
schema:name xsd:string ;
schema:author . + ;
}
20 changes: 11 additions & 9 deletions tutorial/lotico2022/examples/exampleLogic.shex
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ prefix : <http://example.org/>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix schema: <http://schema.org/>

:AudioBook {
schema:name xsd:string ;
schema:author @:Person ;
schema:publisher IRI ;
schema:audio . ;
schema:maintainer @:Person OR @:Organization
} AND {

:Book {
schema:name xsd:string ;
schema:author @:Person OR @:Organization ;
}
:AudioBook @:Book AND {
schema:name MaxLength 20 ;
schema:readBy @:Person ;
} AND NOT {
schema:numberOfPages . +
}

:Person {}
:Organization {}
:Organization {}
3 changes: 2 additions & 1 deletion tutorial/lotico2022/examples/exampleLogic.sm
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
:item23@:Book
:item24@:AudioBook,
:item23@:AudioBook
12 changes: 8 additions & 4 deletions tutorial/lotico2022/examples/exampleLogic.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ prefix : <http://example.org/>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix schema: <http://schema.org/>

:item24 schema:isbn "isbn:006251587X" ;
schema:name "Weaving the Web" ;
schema:genre :NonFiction ;
schema:author :timbl ;
schema:readBy :timbl .

:item23 schema:isbn "isbn:006251587X" ;
schema:name "Weaving the Web" ;
schema:numberOfPages 272 ;
schema:genre :NonFiction ;
schema:author :timbl ;
schema:publisher <http://www.harpercollins.com/> ;
schema:audio <http://audio.com/item23> ;
schema:maintainer :alice .
schema:numberOfPages 272 ;
schema:readBy :timbl .

0 comments on commit 9242ff2

Please sign in to comment.