File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ # minimal shapes example
3+
4+ @prefix sh: <http: //www.w3.org/ns/shacl#> .
5+ @prefix rdf: <http: //www.w3.org/1999/02/22-rdf-syntax-ns#> .
6+ @prefix rdfs: <http: //www.w3.org/2000/01/rdf-schema#> .
7+ @prefix skos: <http: //www.w3.org/2004/02/skos/core#> .
8+ @prefix vann: <http: //purl.org/vocab/vann/> .
9+ @prefix xsd: <http: //www.w3.org/2001/XMLSchema#> .
10+
11+ @prefix schema: <http: //schema.org/> .
12+
13+ schema:Person
14+ a rdfs:Class, sh:NodeShape ;
15+ sh:property
16+ [
17+ sh:path schema:name ;
18+ sh:minCount 1 ;
19+ sh:maxCount 1 ;
20+ ],
21+ [
22+ sh:path schema:age ;
23+ sh:minCount 1 ;
24+ sh:minInclusive 18 ;
25+ ] ;
26+ .
27+
28+ schema:name a rdf:Property ;
29+ rdfs:label "Name" ;
30+ rdfs:comment "The name of the person." ;
31+ rdfs:domain schema:Person ;
32+ rdfs:range xsd:string .
33+
34+
35+ schema:age a rdf:Property ;
36+ rdfs:label "Age" ;
37+ rdfs:comment "The age of the person." ;
38+ rdfs:domain schema:Person ;
39+ rdfs:range xsd:integer .
You can’t perform that action at this time.
0 commit comments