aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFederico Igne <federico.igne@cs.ox.ac.uk>2020-11-10 10:41:26 +0000
committerFederico Igne <federico.igne@cs.ox.ac.uk>2020-11-10 10:41:26 +0000
commit4fea4e28b789a26a456a404a2dd0f182d78d9502 (patch)
tree9c54dacf76486691896eba514fa760fbcf057dc5 /examples
parent6364c8afcece09230fa256613b4d28aede79e40d (diff)
downloadRSAComb-4fea4e28b789a26a456a404a2dd0f182d78d9502.tar.gz
RSAComb-4fea4e28b789a26a456a404a2dd0f182d78d9502.zip
Rewrite example 1 in Turtle syntax
Personally it is better documented, easier to read and to write.
Diffstat (limited to 'examples')
-rw-r--r--examples/example1.owl4
-rw-r--r--examples/example1.ttl51
2 files changed, 55 insertions, 0 deletions
diff --git a/examples/example1.owl b/examples/example1.owl
index 75a464e..605d96e 100644
--- a/examples/example1.owl
+++ b/examples/example1.owl
@@ -14,6 +14,8 @@
14 B ⊑ ∃ S.D 14 B ⊑ ∃ S.D
15 R ⊑ T⁻ 15 R ⊑ T⁻
16 S ⊑ T 16 S ⊑ T
17
18 a : A
17 --> 19 -->
18 20
19 <owl:Class rdf:ID="A"> 21 <owl:Class rdf:ID="A">
@@ -77,4 +79,6 @@
77 <rdfs:subPropertyOf rdf:resource="#T" /> 79 <rdfs:subPropertyOf rdf:resource="#T" />
78 </owl:ObjectProperty> 80 </owl:ObjectProperty>
79 81
82 <A rdf:about="#a"> </A>
83
80</rdf:RDF> 84</rdf:RDF>
diff --git a/examples/example1.ttl b/examples/example1.ttl
new file mode 100644
index 0000000..8862f88
--- /dev/null
+++ b/examples/example1.ttl
@@ -0,0 +1,51 @@
1
2@prefix : <http://example.com/rsa_example.owl#> .
3@prefix owl: <http://www.w3.org/2002/07/owl#> .
4@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
5@prefix xml: <http://www.w3.org/XML/1998/namespace> .
6@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
7@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
8@base <http://example.com/rsa_example.owl> .
9
10# A ⊑ D
11# A ⊑ ∃ S⁻.C
12# ∃ S.A ⊑ D
13# D ⊑ ∃ R.B
14# B ⊑ ∃ S.D
15# R ⊑ T⁻
16# S ⊑ T
17#
18# a : A
19
20:A rdf:type owl:Class ;
21 rdfs:subClassOf :D ;
22 rdfs:subClassOf [ rdf:type owl:Restriction ;
23 owl:onProperty [ owl:inverseOf :S ] ;
24 owl:someValuesFrom :C
25 ] .
26
27[ rdf:type owl:Restriction ;
28 owl:onProperty :S ;
29 owl:someValuesFrom :B
30] rdfs:subClassOf :D .
31
32:D rdf:type owl:Class ;
33 rdfs:subClassOf [ rdf:type owl:Restriction ;
34 owl:onProperty :R ;
35 owl:someValuesFrom :B
36 ] .
37
38:B rdf:type owl:Class ;
39 rdfs:subClassOf [ rdf:type owl:Restriction ;
40 owl:onProperty :S ;
41 owl:someValuesFrom :D
42 ] .
43
44:R rdf:type owl:ObjectProperty ;
45 rdfs:subPropertyOf [ owl:inverseOf :T ] .
46
47:S rdf:type owl:ObjectProperty ;
48 rdfs:subPropertyOf :T .
49
50:a rdf:type :A .
51