Skip to content

Commit 5596a0f

Browse files
committed
added return mapping
1 parent 25ad4a7 commit 5596a0f

2 files changed

Lines changed: 82 additions & 10 deletions

File tree

fno.ttl

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,22 @@
2828

2929
dct:description "The Function Ontology allows to declare and describe functions. The specification is online at https://w3id.org/function/spec"@en;
3030

31-
rdfs:comment """-Version 0.5.1: fno:type a ObjectProperty
31+
rdfs:comment """-Version 0.6.0: fno:ReturnMapping
32+
-Version 0.5.1: fno:type a ObjectProperty
3233
-Version 0.5.0: added Mapping and Implementation classes.
3334
-Version 0.4.1: wrong range definition, updated descriptions.
3435
-Version 0.4: added some properties
3536
-Version 0.3: improved comments.
3637
-Version 0.2: added extra metadata.
3738
-Version 0.1: creation."""@en ;
3839

39-
owl:versionIRI <https://w3id.org/function/ontology/0.5.1> ;
40-
owl:versionInfo "0.5.1" ;
41-
owl:priorVersion "https://w3id.org/function/ontology/0.5.0" ;
40+
owl:versionIRI <https://w3id.org/function/ontology/0.6.0> ;
41+
owl:versionInfo "0.6.0" ;
42+
owl:priorVersion "https://w3id.org/function/ontology/0.5.1" ;
4243

4344
rdfs:seeAlso <https://w3id.org/function/spec> ;
4445

45-
dct:modified "2019-05-21"^^xsd:date ;
46+
dct:modified "2019-05-29"^^xsd:date ;
4647

4748
dct:issued "2016-03-08"^^xsd:date ;
4849

@@ -328,6 +329,22 @@ xsd:date rdf:type rdfs:Datatype .
328329

329330
rdfs:range :ParameterMapping .
330331

332+
### https://w3id.org/function/ontology#returnMapping
333+
334+
:returnMapping rdf:type owl:ObjectProperty ;
335+
336+
rdfs:label "return mapping"@en ;
337+
338+
rdfs:comment "Connects a return mapping to a mapping definition"@en ;
339+
340+
rdfs:isDefinedBy <https://w3id.org/function/ontology#> ;
341+
342+
vs:term_status "testing" ;
343+
344+
rdfs:domain :Mapping ;
345+
346+
rdfs:range :ReturnMapping .
347+
331348
### https://w3id.org/function/ontology#uses
332349

333350
:uses rdf:type owl:ObjectProperty ;
@@ -469,3 +486,15 @@ xsd:date rdf:type rdfs:Datatype .
469486
vs:term_status "testing" ;
470487

471488
rdfs:isDefinedBy <https://w3id.org/function/ontology#> .
489+
490+
### https://w3id.org/function/ontology#ReturnMapping
491+
492+
:ReturnMapping rdf:type owl:Class ;
493+
494+
rdfs:label "Return mapping"@en ;
495+
496+
rdfs:comment "A return mapping unambiguously specifies how the abstract output can be mapped to the implemented method's return value. For example: the return value of the method, or the thrown error of a the method"@en ;
497+
498+
vs:term_status "testing" ;
499+
500+
rdfs:isDefinedBy <https://w3id.org/function/ontology#> .

fnom.ttl

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,18 @@
2828

2929
dct:description "The Function Ontology Implementation Mapping vocabulary specifies terms relevant to link FnO models to implementations. The specification is online at https://w3id.org/function/spec"@en;
3030

31-
rdfs:comment """-Version 0.1.0: creation."""@en ;
31+
rdfs:comment """-Version 0.2.0: ReturnMapping
32+
-Version 0.1.0: creation."""@en ;
3233

33-
owl:versionIRI <https://w3id.org/function/vocabulary/mapping/0.1.0> ;
34-
owl:versionInfo "0.1.0" ;
35-
# owl:priorVersion "https://w3id.org/function/vocabulary/mapping/0.0.0" ;
34+
owl:versionIRI <https://w3id.org/function/vocabulary/mapping/0.2.0> ;
35+
36+
owl:versionInfo "0.2.0" ;
37+
38+
owl:priorVersion "https://w3id.org/function/vocabulary/mapping/0.1.0" ;
3639

3740
rdfs:seeAlso <https://w3id.org/function/spec> ;
3841

39-
dct:modified "2019-05-21"^^xsd:date ;
42+
dct:modified "2019-05-29"^^xsd:date ;
4043

4144
dct:issued "2019-05-21"^^xsd:date ;
4245

@@ -128,6 +131,22 @@ owl:versionIRI <https://w3id.org/function/vocabulary/mapping/0.1.0> ;
128131

129132
rdfs:range xsd:string .
130133

134+
### https://w3id.org/function/vocabulary/mapping#implementationProperty
135+
136+
:functionOutput rdf:type rdf:Property ;
137+
138+
rdfs:label "function output"@en ;
139+
140+
rdfs:comment "Connects a function output to a return mapping."@en ;
141+
142+
rdfs:isDefinedBy <https://w3id.org/vocabulary/mapping#> ;
143+
144+
vs:term_status "testing" ;
145+
146+
rdfs:domain :ReturnMapping ;
147+
148+
rdfs:range fno:Output .
149+
131150
#################################################################
132151
#
133152
# Classes
@@ -173,3 +192,27 @@ owl:versionIRI <https://w3id.org/function/vocabulary/mapping/0.1.0> ;
173192
rdfs:isDefinedBy <https://w3id.org/function/vocabulary/mapping#> ;
174193

175194
rdfs:subClassOf fno:ParameterMapping .
195+
196+
:DefaultReturnMapping rdf:type owl:Class ;
197+
198+
rdfs:label "Default Return Mapping"@en ;
199+
200+
rdfs:comment "A default return mapping links the return value of the method to a fno:Output"@en ;
201+
202+
vs:term_status "testing" ;
203+
204+
rdfs:isDefinedBy <https://w3id.org/function/vocabulary/mapping#> ;
205+
206+
rdfs:subClassOf fno:ReturnMapping .
207+
208+
:ExceptionReturnMapping rdf:type owl:Class ;
209+
210+
rdfs:label "Exception Return Mapping"@en ;
211+
212+
rdfs:comment "An exception return mapping links the thrown exception of the method to a fno:Output"@en ;
213+
214+
vs:term_status "testing" ;
215+
216+
rdfs:isDefinedBy <https://w3id.org/function/vocabulary/mapping#> ;
217+
218+
rdfs:subClassOf fno:ReturnMapping .

0 commit comments

Comments
 (0)