1 # Copyright 2016 ITEA 12004 SEAS Project.
2 # Copyright 2016-2019 Asema Electronics Ltd.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing,
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . #Resource data framework
17 @prefix owl: <http://www.w3.org/2002/07/owl#> . #Owl ontology language
18 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . #RDF schema
19 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . #XML standard datatypes
20 @prefix dc: <http://purl.org/dc/terms/> . #Dublin Core Metadata Initiative terms
21 @prefix vann: <http://purl.org/vocab/vann/> . #A vocabulary for annotating vocabulary descriptions
22 @prefix voaf: <http://purl.org/vocommons/voaf#> . #A vocabulary of a friend, for describing relations between linked vocabularies
23 @prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#> . #Semantic web vocabulary status ontology
24 @prefix foaf: <http://xmlns.com/foaf/0.1/>.
26 @prefix smartapi: <https://w3id.org/smartapi/>.
27 @base <https://w3id.org/smartapi/>.
30 #all standard smartapi quantities and units
31 smartapi:NetworkingOntology a owl:Ontology , voaf:Ontology ;
32 dc:title "SmartAPI-NetworkingOntology ontology"@en ;
33 dc:description "The Smart API networking Ontology."@en ;
34 dc:issued "2016-01-26"^^xsd:date ;
35 dc:modified "2016-10-06"^^xsd:date ;
36 dc:creator [a foaf:Person ; foaf:name "Hannu Järvinen" ] ;
37 dc:creator [a foaf:Person ; foaf:name "Jani Hursti" ] ;
38 dc:contributor <http://www.vtt.fi/JarmoKalaoja> ;
39 dc:contributor <http://www.maxime-lefrancois.info/me#> ;
40 dc:contributor <http://zimmer.aprilfoolsreview.com/antoine#me> ;
41 dc:contributor [a foaf:Person ; foaf:name "Erkki Siira" ] ;
42 dc:contributor [a foaf:Person ; foaf:name "Takoua Ghariani" ] ;
43 dc:contributor [a foaf:Person ; foaf:name "Marc Girod-Genet" ] ;
44 dc:contributor [a foaf:Person ; foaf:name "Pyry Lehtimäki" ] ;
45 vann:preferredNamespacePrefix "smartapi" ;
46 vann:preferredNamespaceUri <https://w3id.org/smartapi/> ;
47 owl:versionIRI <https://w3id.org/smartapi/NetworkingOntology/1.0> ;
48 owl:versionInfo "v1.0" .
52 smartapi:Message a owl:Class ;
53 rdfs:label "Message"@en ;
54 rdfs:comment "A message is a discrete unit of communication intended by the source for consumption by some recipient."@en ;
55 rdfs:isDefinedBy smartapi:NetworkingOntology ;
56 vs:term_status "testing" .
58 smartapi:message a owl:ObjectProperty;
59 rdfs:range smartapi:Message ;
60 rdfs:label "Message"@en ;
61 rdfs:comment "A property that links this resource to a Message."@en ;
62 rdfs:isDefinedBy smartapi:NetworkingOntology ;
63 vs:term_status "testing" .
65 smartapi:Request a owl:Class ;
66 rdfs:label "Request"@en ;
67 rdfs:comment "A message for requesting something from the recipient."@en ;
68 rdfs:isDefinedBy smartapi:NetworkingOntology ;
69 rdfs:subClassOf smartapi:Message ;
70 vs:term_status "testing" .
72 smartapi:Response a owl:Class ;
73 rdfs:label "Response"@en ;
74 rdfs:comment "A message for responding to a request."@en ;
75 rdfs:isDefinedBy smartapi:NetworkingOntology ;
76 rdfs:subClassOf smartapi:Message ;
77 vs:term_status "testing" .
79 smartapi:Notification a owl:Class ;
80 rdfs:label "Notification"@en ;
81 rdfs:comment "A message for sending a notice, announcement, or, e.g., warning."@en ;
82 rdfs:isDefinedBy smartapi:NetworkingOntology ;
83 rdfs:subClassOf smartapi:Message ;
84 vs:term_status "testing" .
86 smartapi:AliveRequest a owl:Class ;
87 rdfs:label "Alive request"@en ;
88 rdfs:comment "A message to communicate that the sender is still alive. Can be used to implement heartbeat."@en ;
89 rdfs:isDefinedBy smartapi:NetworkingOntology ;
90 rdfs:subClassOf smartapi:Request ;
91 vs:term_status "testing" .
93 smartapi:AliveResponse a owl:Class ;
94 rdfs:label "Alive response"@en ;
95 rdfs:comment "A response message for AliveRequest to acknowledge the reception."@en ;
96 rdfs:isDefinedBy smartapi:NetworkingOntology ;
97 rdfs:subClassOf smartapi:Response ;
98 vs:term_status "testing" .
100 smartapi:Acknowledgement a owl:Class ;
101 rdfs:label "Acknowledgement"@en ;
102 rdfs:comment "A message to signify acknowledgement or receipt of earlier message."@en ;
103 rdfs:isDefinedBy smartapi:NetworkingOntology ;
104 rdfs:subClassOf smartapi:Response ;
105 vs:term_status "testing" .
107 smartapi:OfferResponse a owl:Class ;
108 rdfs:label "Offer response"@en ;
109 rdfs:comment "A response that describes an offer."@en ;
110 rdfs:isDefinedBy smartapi:NetworkingOntology ;
111 rdfs:subClassOf smartapi:Response ;
112 vs:term_status "testing" .
114 # transaction, contract and account
116 smartapi:Transaction a owl:Class ;
117 rdfs:label "Transaction"@en ;
118 rdfs:comment "The exchange of something such as goods and services etc. "@en ;
119 vs:term_status "testing" ;
120 rdfs:isDefinedBy smartapi:NetworkingOntology.
122 smartapi:transaction a owl:ObjectProperty;
123 rdfs:range smartapi:Transaction ;
124 rdfs:label "Transaction"@en ;
125 rdfs:comment "The Property that links this resource to a Transaction."@en ;
126 rdfs:isDefinedBy smartapi:NetworkingOntology ;
127 vs:term_status "testing" .
129 smartapi:notarizedObject a owl:ObjectProperty;
130 rdfs:label "Notarized object"@en ;
131 rdfs:comment "The Property that links a resource that represents a notarized object to a Transaction."@en ;
132 rdfs:range smartapi:Object ;
133 rdfs:domain smartapi:Transaction ;
134 rdfs:isDefinedBy smartapi:NetworkingOntology ;
135 vs:term_status "testing" .
137 smartapi:AccountTransaction a owl:Class ;
138 rdfs:label "Account transaction"@en ;
139 rdfs:comment "A transaction that relates to an account."@en ;
140 vs:term_status "testing" ;
141 rdfs:isDefinedBy smartapi:NetworkingOntology.
143 smartapi:accountTransaction a owl:ObjectProperty;
144 rdfs:range smartapi:AccountTransaction ;
145 rdfs:label "Account transaction"@en ;
146 rdfs:comment "The property that links this resource to an account transaction."@en ;
147 rdfs:isDefinedBy smartapi:NetworkingOntology ;
148 vs:term_status "testing" .
150 smartapi:AccountAction a owl:Class ;
151 rdfs:label "Account action"@en ;
152 rdfs:comment "An action that relates to an account."@en ;
153 vs:term_status "testing" ;
154 rdfs:isDefinedBy smartapi:NetworkingOntology.
156 smartapi:accountAction a owl:ObjectProperty;
157 rdfs:range smartapi:AccountAction ;
158 rdfs:label "Account action"@en ;
159 rdfs:comment "The property that links this resource to an account action."@en ;
160 rdfs:isDefinedBy smartapi:NetworkingOntology ;
161 vs:term_status "testing" .
163 smartapi:Contract a owl:Class ;
164 rdfs:label "Contract"@en ;
165 rdfs:comment "An agreement for the exchange of something such as goods and services etc. between parties."@en ;
166 vs:term_status "testing" ;
167 rdfs:isDefinedBy smartapi:NetworkingOntology.
169 smartapi:contract a owl:ObjectProperty;
170 rdfs:range smartapi:Contract ;
171 rdfs:label "Contract"@en ;
172 rdfs:comment "The property that links this resource to a Contract."@en ;
173 rdfs:isDefinedBy smartapi:NetworkingOntology ;
174 vs:term_status "testing" .
176 smartapi:Account a owl:Class ;
177 rdfs:label "Account"@en ;
178 rdfs:comment "A record of financial expenditure and receipts relating to a transactions between two systems."@en ;
179 vs:term_status "testing" ;
180 rdfs:isDefinedBy smartapi:NetworkingOntology.
182 smartapi:account a owl:ObjectProperty;
183 rdfs:range smartapi:Account ;
184 rdfs:label "Account"@en ;
185 rdfs:comment "The property that links this resource to an Account."@en ;
186 rdfs:isDefinedBy smartapi:NetworkingOntology ;
187 vs:term_status "testing" .
191 smartapi:License a owl:Class ;
192 rdfs:label "License"@en ;
193 rdfs:comment "The authorization to use licensed material."@en ;
194 rdfs:isDefinedBy smartapi:NetworkingOntology ;
195 vs:term_status "testing" .
197 smartapi:license a owl:ObjectProperty;
198 rdfs:range smartapi:License ;
199 rdfs:label "License"@en ;
200 rdfs:comment "The Property that links this resource to a License."@en ;
201 rdfs:isDefinedBy smartapi:NetworkingOntology ;
202 vs:term_status "testing" .
204 smartapi:licenseKey a owl:DatatypeProperty ;
205 rdfs:label "License key"@en ;
206 rdfs:comment "A data string that verifies authorized software product access."@en ;
207 rdfs:isDefinedBy smartapi:NetworkingOntology ;
208 vs:term_status "testing" .
210 # general message properties
212 smartapi:id a owl:DatatypeProperty ;
213 rdfs:label "Identifier number"@en ;
214 rdfs:comment "A property which can be used to express the ID (of a message)."@en ;
215 rdfs:isDefinedBy smartapi:NetworkingOntology ;
217 vs:term_status "testing" .
219 smartapi:transactionID a owl:ObjectProperty ;
220 rdfs:label "Transaction ID"@en ;
221 rdfs:comment "A property used to express the ID of a transaction that, e.g., signs this resource."@en ;
222 rdfs:isDefinedBy smartapi:NetworkingOntology ;
223 vs:term_status "testing" .
225 smartapi:processID a owl:DatatypeProperty ;
226 rdfs:label "Process ID"@en ;
227 rdfs:comment "A property used to express the ID of a process."@en ;
228 rdfs:isDefinedBy smartapi:NetworkingOntology ;
229 rdfs:range xsd:integer ;
230 vs:term_status "testing" .
232 smartapi:freshness a owl:DatatypeProperty ;
233 rdfs:label "Freshness"@en ;
234 rdfs:comment "Freshness of the data calculated backward from now."@en ;
235 rdfs:isDefinedBy smartapi:NetworkingOntology ;
236 rdfs:range xsd:dateTime ;
237 vs:term_status "testing" .
239 smartapi:method a owl:ObjectProperty;
240 rdfs:label "Method"@en ;
241 rdfs:comment "The property that links this resource to a Method."@en ;
242 rdfs:isDefinedBy smartapi:NetworkingOntology ;
243 rdfs:range smartapi:Method ;
244 vs:term_status "testing" .
246 smartapi:operation a owl:ObjectProperty ;
247 rdfs:label "Operation"@en ;
248 rdfs:comment "The property that links this resource to an Operation."@en ;
249 rdfs:isDefinedBy smartapi:NetworkingOntology ;
250 rdfs:range smartapi:Operation ;
251 vs:term_status "testing" .
253 smartapi:traverseUntil a owl:DatatypeProperty;
254 rdfs:label "Traverse until"@en ;
255 rdfs:label "Maksimi läpikäyntisyvyys"@fi ;
256 rdfs:comment "The property that describes maximum traversal depth for the operation requested by the activity."@en ;
257 rdfs:isDefinedBy smartapi:NetworkingOntology ;
258 rdfs:domain smartapi:Activity ;
260 vs:term_status "testing" .
262 smartapi:traverseTo a owl:DatatypeProperty;
263 rdfs:label "Traverse to"@en ;
264 rdfs:label "Suoritussyvyys"@fi ;
265 rdfs:comment "The property that describes traversal depth to reach the level where the operation requested by the activity should be executed."@en ;
266 rdfs:isDefinedBy smartapi:NetworkingOntology ;
267 rdfs:domain smartapi:Activity ;
269 vs:term_status "testing" .
271 smartapi:recursionUntil a owl:DatatypeProperty;
272 rdfs:label "Recursion until"@en ;
273 rdfs:label "Maksimi rekursiosyvyys"@fi ;
274 rdfs:comment "The property that describes traversal depth for the recursion requested by the activity."@en ;
275 rdfs:isDefinedBy smartapi:NetworkingOntology ;
277 vs:term_status "testing" .
279 smartapi:recursionTo a owl:DatatypeProperty;
280 rdfs:label "Recursion to"@en ;
281 rdfs:label "Rekursiosyvyys"@fi ;
282 rdfs:comment "The property that describes recursion depth to reach the level where the operation requested by the activity should be executed."@en ;
283 rdfs:isDefinedBy smartapi:NetworkingOntology ;
285 vs:term_status "testing" .
287 smartapi:recursionProperty a owl:ObjectProperty ;
288 rdfs:label "Recursion property"@en ;
289 rdfs:label "Rekursiolinkki"@fi ;
290 rdfs:comment "The property that describes properties that recursion should follow."@en ;
291 rdfs:isDefinedBy smartapi:NetworkingOntology ;
292 rdfs:range rdf:Property ;
293 vs:term_status "testing" .
297 smartapi:hasDataResource a owl:ObjectProperty;
298 rdfs:label "Has data resource"@en ;
299 rdfs:comment "A data resource related to activity."@en ;
300 rdfs:domain smartapi:Activity ;
301 rdfs:range smartapi:Evaluation ;
302 vs:term_status "testing" ;
303 rdfs:isDefinedBy smartapi:NetworkingOntology .
305 smartapi:Input a owl:Class ;
306 rdfs:label "Input"@en ;
307 rdfs:comment "Input data for an activity."@en ;
308 rdfs:subClassOf smartapi:Evaluation ;
309 rdfs:isDefinedBy smartapi:NetworkingOntology ;
310 vs:term_status "testing" .
312 smartapi:Output a owl:Class ;
313 rdfs:label "Output"@en ;
314 rdfs:comment "Output data produced by an activity."@en ;
315 rdfs:subClassOf smartapi:Evaluation ;
316 rdfs:isDefinedBy smartapi:NetworkingOntology ;
317 vs:term_status "testing" .
319 # Input and output data resources for activities
321 smartapi:hasInput a owl:ObjectProperty;
322 rdfs:label "Has input"@en ;
323 rdfs:comment "An input that this activity has or takes."@en ;
324 rdfs:subPropertyOf smartapi:hasDataResource ;
325 vs:term_status "testing" ;
326 rdfs:range smartapi:Input ;
327 rdfs:isDefinedBy smartapi:NetworkingOntology .
329 smartapi:hasOutput a owl:ObjectProperty;
330 rdfs:label "Has output"@en ;
331 rdfs:comment "Output that this activity generates or has generated."@en ;
332 rdfs:subPropertyOf smartapi:hasDataResource ;
333 vs:term_status "testing" ;
334 rdfs:range smartapi:Output ;
335 rdfs:isDefinedBy smartapi:NetworkingOntology .
337 smartapi:hasRefInput a owl:ObjectProperty ;
338 rdfs:label "Has reference input"@en ;
339 rdfs:comment "A resource which is used to indicate where the input data can be fetched."@en ;
340 rdfs:isDefinedBy smartapi:NetworkingOntology ;
341 rdfs:range smartapi:Input ;
342 vs:term_status "testing" .
344 smartapi:hasRefOutput a owl:ObjectProperty ;
345 rdfs:label "Has reference output"@en ;
346 rdfs:comment "A resource which is used to indicate where the output data can be fetched."@en ;
347 rdfs:isDefinedBy smartapi:NetworkingOntology ;
348 rdfs:range smartapi:Output ;
349 vs:term_status "testing" .
353 smartapi:Error a owl:Class ;
354 rdfs:label "Error"@en ;
355 rdfs:comment "A class used to express an error."@en ;
356 rdfs:isDefinedBy smartapi:NetworkingOntology ;
357 vs:term_status "testing" .
359 smartapi:error a owl:ObjectProperty ;
360 rdfs:label "Error"@en ;
361 rdfs:comment "A property used to express an error."@en ;
362 rdfs:isDefinedBy smartapi:NetworkingOntology ;
363 rdfs:range smartapi:Error ;
364 vs:term_status "testing" .
366 smartapi:InvalidParams a owl:Class;
367 rdfs:label "Invalid params"@en ;
368 rdfs:comment "A resource used to express an error in parameters."@en ;
369 rdfs:isDefinedBy smartapi:NetworkingOntology ;
370 rdfs:subClassOf smartapi:Error;
371 vs:term_status "testing" .
373 smartapi:InvalidRequest a owl:Class ;
374 rdfs:label "Invalid request"@en ;
375 rdfs:comment "A resource used to express an error in the request."@en ;
376 rdfs:isDefinedBy smartapi:NetworkingOntology ;
377 rdfs:subClassOf smartapi:Error;
378 vs:term_status "testing" .
380 smartapi:ServerError a owl:Class ;
381 rdfs:label "Server error"@en ;
382 rdfs:comment "A resource used to express a server side error."@en ;
383 rdfs:isDefinedBy smartapi:NetworkingOntology ;
384 rdfs:subClassOf smartapi:Error;
385 vs:term_status "testing" .
387 smartapi:ParseError a owl:Class ;
388 rdfs:label "Parse error"@en ;
389 rdfs:comment "An error that is caused by an error while a parse operation."@en ;
390 rdfs:isDefinedBy smartapi:NetworkingOntology ;
391 rdfs:subClassOf smartapi:Error;
392 vs:term_status "testing" .
394 smartapi:Unauthorized a owl:Class ;
395 rdfs:label "Unauthorized"@en ;
396 rdfs:comment "An error indicating that the requested activity was not authorized."@en ;
397 rdfs:isDefinedBy smartapi:NetworkingOntology ;
398 rdfs:subClassOf smartapi:Error;
399 vs:term_status "testing" .
401 smartapi:SyntaxError a owl:Class ;
402 rdfs:label "Syntax error"@en ;
403 rdfs:comment "An error that is caused by an error in syntax of the provided data."@en ;
404 rdfs:isDefinedBy smartapi:NetworkingOntology ;
405 rdfs:subClassOf smartapi:Error;
406 vs:term_status "testing" .
408 smartapi:IllegalValueError a owl:Class ;
409 rdfs:label "Illegal value error"@en ;
410 rdfs:comment "An error that is caused by an erroneous value in the provided data."@en ;
411 rdfs:isDefinedBy smartapi:NetworkingOntology ;
412 rdfs:subClassOf smartapi:Error;
413 vs:term_status "testing" .
415 smartapi:UndefinedConceptError a owl:Class ;
416 rdfs:label "Undefined concept error"@en ;
417 rdfs:comment "An error that is caused by a concept which does not have a known definition."@en ;
418 rdfs:isDefinedBy smartapi:NetworkingOntology ;
419 rdfs:subClassOf smartapi:Error;
420 vs:term_status "testing" .
422 smartapi:errorCode a owl:DatatypeProperty ;
423 rdfs:label "Error code"@en ;
424 rdfs:comment "A numeric value used to express an error code."@en ;
425 rdfs:isDefinedBy smartapi:NetworkingOntology ;
426 rdfs:range xsd:integer ;
427 vs:term_status "testing" .
429 smartapi:errorMessage a owl:ObjectProperty ;
430 rdfs:label "Error message"@en ;
431 rdfs:comment "A resource used to express an error message."@en ;
432 rdfs:isDefinedBy smartapi:NetworkingOntology ;
433 rdfs:range xsd:string ;
434 rdfs:domain smartapi:Error ;
435 vs:term_status "testing" .
439 smartapi:Status a owl:Class ;
440 rdfs:label "Status"@en ;
441 rdfs:comment "A status of the requested operation."@en ;
442 rdfs:isDefinedBy smartapi:NetworkingOntology ;
443 vs:term_status "testing" .
445 smartapi:statusCode a owl:DatatypeProperty ;
446 rdfs:label "Status code"@en ;
447 rdfs:comment "A numeric value used to express an HTTP status code."@en ;
448 rdfs:isDefinedBy smartapi:NetworkingOntology ;
449 rdfs:range xsd:integer ;
450 vs:term_status "testing" .
452 smartapi:status a owl:ObjectProperty ;
453 rdfs:label "Status"@en ;
454 rdfs:comment "A status of the requested operation."@en ;
455 rdfs:isDefinedBy smartapi:NetworkingOntology ;
456 rdfs:range smartapi:Status, smartapi:Error ;
457 vs:term_status "testing" .
459 smartapi:Ready a owl:Class ;
460 rdfs:label "Ready"@en ;
461 rdfs:comment "A ready status to indicate that service is ready to start processing."@en ;
462 rdfs:isDefinedBy smartapi:NetworkingOntology ;
463 rdfs:subClassOf smartapi:Status;
464 vs:term_status "testing" .
466 smartapi:Busy a owl:Class ;
467 rdfs:label "Busy"@en ;
468 rdfs:comment "A busy status to indicate that service is busy from, for instance, processing something else."@en ;
469 rdfs:isDefinedBy smartapi:NetworkingOntology ;
470 rdfs:subClassOf smartapi:Status;
471 vs:term_status "testing" .
473 smartapi:Online a owl:Class ;
474 rdfs:label "Online"@en ;
475 rdfs:comment "A online status to indicate that service is online."@en ;
476 rdfs:isDefinedBy smartapi:NetworkingOntology ;
477 rdfs:subClassOf smartapi:Status;
478 vs:term_status "testing" .
480 smartapi:Pending a owl:Class ;
481 rdfs:label "Pending"@en ;
482 rdfs:comment "A pending status for an operation to indicate that is has been taken into queue and is waiting to get processed."@en ;
483 rdfs:isDefinedBy smartapi:NetworkingOntology ;
484 rdfs:subClassOf smartapi:Status;
485 vs:term_status "testing" .
487 smartapi:Processing a owl:Class ;
488 rdfs:label "Processing"@en ;
489 rdfs:comment "A processing status for an operation to indicate that it is executing but not finished yet."@en ;
490 rdfs:isDefinedBy smartapi:NetworkingOntology ;
491 rdfs:subClassOf smartapi:Status;
492 vs:term_status "testing" .
494 smartapi:Finished a owl:Class ;
495 rdfs:label "Finished"@en ;
496 rdfs:comment "A finished status for an operation to indicate that processing has finished successfully."@en ;
497 rdfs:isDefinedBy smartapi:NetworkingOntology ;
498 rdfs:subClassOf smartapi:Status;
499 vs:term_status "testing" .
501 smartapi:completed a owl:DatatypeProperty;
502 rdfs:label "Completed"@en ;
503 rdfs:comment "A count of completed items or completed amount of something out of total."@en ;
504 rdfs:isDefinedBy smartapi:NetworkingOntology ;
505 rdfs:range rdf:XMLLiteral ;
506 vs:term_status "testing" .
508 smartapi:total a owl:DatatypeProperty;
509 rdfs:label "Total"@en ;
510 rdfs:comment "A count of total items or total amount of something."@en ;
511 rdfs:isDefinedBy smartapi:NetworkingOntology ;
512 rdfs:range rdf:XMLLiteral ;
513 vs:term_status "testing" .