Skip to content

Commit

Permalink
fix validation by declaring NodeShapes to be an rdfs:Class
Browse files Browse the repository at this point in the history
  • Loading branch information
s-tittel committed Jan 8, 2024
1 parent 613dff6 commit 1a0c904
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions demo/complex-example.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@prefix example: <http://example.org/> .

example:ArchitectureModelDataset
a sh:NodeShape ;
a sh:NodeShape, rdfs:Class ;
sh:node example:Dataset ;

sh:property [ sh:description "Location of the building" ;
Expand Down Expand Up @@ -62,7 +62,7 @@ example:ArchitectureModelDataset
] .

example:Dataset
a sh:NodeShape ;
a sh:NodeShape, rdfs:Class ;
sh:property [ sh:datatype rdf:langString ;
sh:languageIn ( "en" "de" ) ;
sh:uniqueLang true ;
Expand Down
3 changes: 2 additions & 1 deletion demo/datatypes.ttl
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix dash: <http://datashapes.org/dash#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix ex: <http://example.org/> .

ex:Demo a sh:NodeShape ;
ex:Demo a sh:NodeShape, rdfs:Class ;
sh:property [
sh:datatype xsd:string ;
sh:maxCount 1 ;
Expand Down

0 comments on commit 1a0c904

Please sign in to comment.