This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathontology.ttl
202 lines (145 loc) · 8.24 KB
/
ontology.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
@prefix : <http://ckg.de/default#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://ckg.de/default#> .
<http://ckg.de/default> rdf:type owl:Ontology .
#################################################################
# Annotation properties
#################################################################
### http://swrl.stanford.edu/ontologies/3.3/swrla.owl#isRuleEnabled
<http://swrl.stanford.edu/ontologies/3.3/swrla.owl#isRuleEnabled> rdf:type owl:AnnotationProperty .
#################################################################
# Object Properties
#################################################################
### http://ckg.de/default#concernsArea
:concernsArea rdf:type owl:ObjectProperty ;
rdfs:domain :Notification ;
rdfs:range :Area ;
owl:propertyChainAxiom ( :containsMatch
:hasRequirementProfile
:hasArea
) .
### http://ckg.de/default#containsMatch
:containsMatch rdf:type owl:ObjectProperty ;
rdfs:domain :Notification ;
rdfs:range :Match .
### http://ckg.de/default#hasArea
:hasArea rdf:type owl:ObjectProperty ;
rdfs:domain :RequirementProfile ;
rdfs:range :Area .
### http://ckg.de/default#hasRequirementProfile
:hasRequirementProfile rdf:type owl:ObjectProperty ;
owl:inverseOf :isRequirementProfileIn ;
rdfs:domain :Match ;
rdfs:range :RequirementProfile .
### http://ckg.de/default#hasUserProfile
:hasUserProfile rdf:type owl:ObjectProperty ;
owl:inverseOf :isUserProfileIn ;
rdfs:domain :Match ;
rdfs:range :UserProfile .
### http://ckg.de/default#isRequirementProfileIn
:isRequirementProfileIn rdf:type owl:ObjectProperty .
### http://ckg.de/default#isUserProfileIn
:isUserProfileIn rdf:type owl:ObjectProperty .
#################################################################
# Data properties
#################################################################
### http://ckg.de/default#hasBeenRead
:hasBeenRead rdf:type owl:DatatypeProperty ;
rdfs:domain :Notification ;
rdfs:range xsd:boolean .
### http://ckg.de/default#isKnownToUser
:isKnownToUser rdf:type owl:DatatypeProperty ;
rdfs:domain :Match ;
rdfs:range xsd:boolean .
#################################################################
# Classes
#################################################################
### http://ckg.de/default#Area
:Area rdf:type owl:Class .
### http://ckg.de/default#Match
:Match rdf:type owl:Class .
### http://ckg.de/default#Notification
:Notification rdf:type owl:Class .
### http://ckg.de/default#RequirementProfile
:RequirementProfile rdf:type owl:Class .
### http://ckg.de/default#UserProfile
:UserProfile rdf:type owl:Class .
#################################################################
# Individuals
#################################################################
### http://ckg.de/default#AreaRenewableEnergySubsidies
:AreaRenewableEnergySubsidies rdf:type owl:NamedIndividual ,
:Area .
### http://ckg.de/default#AreaSocialSecurity
:AreaSocialSecurity rdf:type owl:NamedIndividual ,
:Area .
### http://ckg.de/default#Match1
:Match1 rdf:type owl:NamedIndividual ,
:Match ;
:hasRequirementProfile :RequirementProfileSolarPanelsSubsidy ;
:hasUserProfile :UserProfile1 .
### http://ckg.de/default#Match2
:Match2 rdf:type owl:NamedIndividual ;
:hasRequirementProfile :RequirementProfileHousingBenefit ;
:hasUserProfile :UserProfile1 .
### http://ckg.de/default#Notification1
:Notification1 rdf:type owl:NamedIndividual ,
:Notification ;
:containsMatch :Match1 ,
:Match2 ;
:hasBeenRead "true"^^xsd:boolean .
### http://ckg.de/default#RequirementProfileHousingBenefit
:RequirementProfileHousingBenefit rdf:type owl:NamedIndividual ,
:RequirementProfile ;
:hasArea :AreaSocialSecurity .
### http://ckg.de/default#RequirementProfileSolarPanelsSubsidy
:RequirementProfileSolarPanelsSubsidy rdf:type owl:NamedIndividual ,
:RequirementProfile ;
:hasArea :AreaRenewableEnergySubsidies .
### http://ckg.de/default#UserProfile1
:UserProfile1 rdf:type owl:NamedIndividual ,
:UserProfile .
#################################################################
# Rules
#################################################################
:n rdf:type <http://www.w3.org/2003/11/swrl#Variable> .
:m rdf:type <http://www.w3.org/2003/11/swrl#Variable> .
[ <http://swrl.stanford.edu/ontologies/3.3/swrla.owl#isRuleEnabled> "true"^^xsd:boolean ;
rdfs:comment "" ;
rdfs:label "notif-read_match-known" ;
rdf:type <http://www.w3.org/2003/11/swrl#Imp> ;
<http://www.w3.org/2003/11/swrl#body> [ rdf:type <http://www.w3.org/2003/11/swrl#AtomList> ;
rdf:first [ rdf:type <http://www.w3.org/2003/11/swrl#ClassAtom> ;
<http://www.w3.org/2003/11/swrl#classPredicate> :Notification ;
<http://www.w3.org/2003/11/swrl#argument1> :n
] ;
rdf:rest [ rdf:type <http://www.w3.org/2003/11/swrl#AtomList> ;
rdf:first [ rdf:type <http://www.w3.org/2003/11/swrl#DatavaluedPropertyAtom> ;
<http://www.w3.org/2003/11/swrl#propertyPredicate> :hasBeenRead ;
<http://www.w3.org/2003/11/swrl#argument1> :n ;
<http://www.w3.org/2003/11/swrl#argument2> "true"^^xsd:boolean
] ;
rdf:rest [ rdf:type <http://www.w3.org/2003/11/swrl#AtomList> ;
rdf:first [ rdf:type <http://www.w3.org/2003/11/swrl#IndividualPropertyAtom> ;
<http://www.w3.org/2003/11/swrl#propertyPredicate> :containsMatch ;
<http://www.w3.org/2003/11/swrl#argument1> :n ;
<http://www.w3.org/2003/11/swrl#argument2> :m
] ;
rdf:rest rdf:nil
]
]
] ;
<http://www.w3.org/2003/11/swrl#head> [ rdf:type <http://www.w3.org/2003/11/swrl#AtomList> ;
rdf:first [ rdf:type <http://www.w3.org/2003/11/swrl#DatavaluedPropertyAtom> ;
<http://www.w3.org/2003/11/swrl#propertyPredicate> :isKnownToUser ;
<http://www.w3.org/2003/11/swrl#argument1> :m ;
<http://www.w3.org/2003/11/swrl#argument2> "true"^^xsd:boolean
] ;
rdf:rest rdf:nil
]
] .
### Generated by the OWL API (version 4.5.26.2023-07-17T20:34:13Z) https://github.com/owlcs/owlapi