-
Notifications
You must be signed in to change notification settings - Fork 2
/
ex-triangle.ttl
52 lines (45 loc) · 1 KB
/
ex-triangle.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@prefix ex: <http://example.org/ontology/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:Point
a owl:Class ;
.
ex:PropertyShape-1
a sh:PropertyShape ;
sh:class ex:Point ;
sh:maxCount "3"^^xsd:integer ;
sh:minCount "3"^^xsd:integer ;
sh:path ex:hasPoint ;
.
ex:PropertyShape-2
a sh:PropertyShape ;
sh:class ex:Point ;
sh:maxCount "2"^^xsd:integer ;
sh:minCount "2"^^xsd:integer ;
sh:path ex:hasPoint ;
.
ex:Triangle
a
owl:Class ,
sh:NodeShape
;
sh:property ex:PropertyShape-1 ;
sh:targetClass ex:Triangle ;
.
ex:Triangle-but-1-dimensional
a
owl:Class ,
sh:NodeShape
;
rdfs:subClassOf ex:Triangle ;
sh:property ex:PropertyShape-2 ;
sh:targetClass ex:Triangle-but-1-dimensional ;
.
ex:hasPoint
a owl:ObjectProperty ;
rdfs:domain ex:Triangle ;
rdfs:range ex:Point ;
.