Skip to content

Commit

Permalink
Add JSON and TTL representations of shapeExtern test file
Browse files Browse the repository at this point in the history
  • Loading branch information
hsolbrig committed Jan 14, 2018
1 parent 62aa497 commit 8b3ca77
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
/node_modules/*
.idea/
*~
14 changes: 14 additions & 0 deletions schemas/shapeExtern.jsontern
@@ -0,0 +1,14 @@
{
"@context": "http://www.w3.org/ns/shex.jsonld",
"shapes": [
{
"id": "http://a.example/Sext",
"expression": {
"predicate": "http://a.example/p2",
"type": "TripleConstraint"
},
"type": "Shape"
}
],
"type": "Schema"
}
13 changes: 13 additions & 0 deletions schemas/shapeExtern.ttltern
@@ -0,0 +1,13 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix shex: <http://www.w3.org/ns/shex#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://a.example/Sext> a shex:Shape ;
shex:expression [ a shex:TripleConstraint ;
shex:predicate <http://a.example/p2> ] .

[] a shex:Schema ;
shex:shapes <http://a.example/Sext> .

0 comments on commit 8b3ca77

Please sign in to comment.