Skip to content

Commit

Permalink
added return mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
bjdmeest committed May 29, 2019
1 parent 25ad4a7 commit 5596a0f
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 10 deletions.
39 changes: 34 additions & 5 deletions fno.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,22 @@

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

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

owl:versionIRI <https://w3id.org/function/ontology/0.5.1> ;
owl:versionInfo "0.5.1" ;
owl:priorVersion "https://w3id.org/function/ontology/0.5.0" ;
owl:versionIRI <https://w3id.org/function/ontology/0.6.0> ;
owl:versionInfo "0.6.0" ;
owl:priorVersion "https://w3id.org/function/ontology/0.5.1" ;

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

dct:modified "2019-05-21"^^xsd:date ;
dct:modified "2019-05-29"^^xsd:date ;

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

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

rdfs:range :ParameterMapping .

### https://w3id.org/function/ontology#returnMapping

:returnMapping rdf:type owl:ObjectProperty ;

rdfs:label "return mapping"@en ;

rdfs:comment "Connects a return mapping to a mapping definition"@en ;

rdfs:isDefinedBy <https://w3id.org/function/ontology#> ;

vs:term_status "testing" ;

rdfs:domain :Mapping ;

rdfs:range :ReturnMapping .

### https://w3id.org/function/ontology#uses

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

rdfs:isDefinedBy <https://w3id.org/function/ontology#> .

### https://w3id.org/function/ontology#ReturnMapping

:ReturnMapping rdf:type owl:Class ;

rdfs:label "Return mapping"@en ;

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 ;

vs:term_status "testing" ;

rdfs:isDefinedBy <https://w3id.org/function/ontology#> .
53 changes: 48 additions & 5 deletions fnom.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,18 @@

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;

rdfs:comment """-Version 0.1.0: creation."""@en ;
rdfs:comment """-Version 0.2.0: ReturnMapping
-Version 0.1.0: creation."""@en ;

owl:versionIRI <https://w3id.org/function/vocabulary/mapping/0.1.0> ;
owl:versionInfo "0.1.0" ;
# owl:priorVersion "https://w3id.org/function/vocabulary/mapping/0.0.0" ;
owl:versionIRI <https://w3id.org/function/vocabulary/mapping/0.2.0> ;

owl:versionInfo "0.2.0" ;

owl:priorVersion "https://w3id.org/function/vocabulary/mapping/0.1.0" ;

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

dct:modified "2019-05-21"^^xsd:date ;
dct:modified "2019-05-29"^^xsd:date ;

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

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

rdfs:range xsd:string .

### https://w3id.org/function/vocabulary/mapping#implementationProperty

:functionOutput rdf:type rdf:Property ;

rdfs:label "function output"@en ;

rdfs:comment "Connects a function output to a return mapping."@en ;

rdfs:isDefinedBy <https://w3id.org/vocabulary/mapping#> ;

vs:term_status "testing" ;

rdfs:domain :ReturnMapping ;

rdfs:range fno:Output .

#################################################################
#
# Classes
Expand Down Expand Up @@ -173,3 +192,27 @@ owl:versionIRI <https://w3id.org/function/vocabulary/mapping/0.1.0> ;
rdfs:isDefinedBy <https://w3id.org/function/vocabulary/mapping#> ;

rdfs:subClassOf fno:ParameterMapping .

:DefaultReturnMapping rdf:type owl:Class ;

rdfs:label "Default Return Mapping"@en ;

rdfs:comment "A default return mapping links the return value of the method to a fno:Output"@en ;

vs:term_status "testing" ;

rdfs:isDefinedBy <https://w3id.org/function/vocabulary/mapping#> ;

rdfs:subClassOf fno:ReturnMapping .

:ExceptionReturnMapping rdf:type owl:Class ;

rdfs:label "Exception Return Mapping"@en ;

rdfs:comment "An exception return mapping links the thrown exception of the method to a fno:Output"@en ;

vs:term_status "testing" ;

rdfs:isDefinedBy <https://w3id.org/function/vocabulary/mapping#> ;

rdfs:subClassOf fno:ReturnMapping .

0 comments on commit 5596a0f

Please sign in to comment.