# Copyright (c) 2024 T-Systems International GmbH # Copyright (c) 2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) # Copyright (c) 2024 ZF Friedrichshafen AG # Copyright (c) 2024 Mercedes-Benz AG # Copyright (c) 2024 Contributors to the Catena-X Association # # See the NOTICE file(s) distributed with this work for additional # information regarding copyright ownership. # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at # https://www.apache.org/licenses/LICENSE-2.0. # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. # # SPDX-License-Identifier: Apache-2.0 @prefix : . @prefix dc: . @prefix owl: . @prefix rdf: . @prefix xsd: . @prefix json: . @prefix rdfs: . @prefix cx-fx: . @prefix cx-core: . @prefix cx-common: . @base . rdf:type owl:Ontology ; owl:imports , ; dc:contributor "[@obalandi](https://github.com/obalandi)" ; dc:creator "[@drcgjung](https://github.com/drcgjung)" ; dc:date "2023-06-29"^^xsd:date ; dc:description "Ontology for function invocations." ; dc:title "Function Ontology" ; owl:versionInfo "1.11.0" . ################################################################# # Annotation properties ################################################################# ### http://purl.org/dc/elements/1.1/contributor dc:contributor rdf:type owl:AnnotationProperty . ### http://purl.org/dc/elements/1.1/creator dc:creator rdf:type owl:AnnotationProperty . ### http://purl.org/dc/elements/1.1/date dc:date rdf:type owl:AnnotationProperty . ### http://purl.org/dc/elements/1.1/description dc:description rdf:type owl:AnnotationProperty . ### http://purl.org/dc/elements/1.1/title dc:title rdf:type owl:AnnotationProperty . ### https://w3id.org/catenax/ontology/function#argumentConfigurationProperty cx-fx:argumentConfigurationProperty rdf:type owl:AnnotationProperty ; rdfs:comment "API configuration property for arguments."@en ; rdfs:label "Argument Configuration Property"@en ; rdfs:domain cx-fx:argument. ### https://w3id.org/catenax/ontology/function#argumentName cx-fx:argumentName rdf:type owl:AnnotationProperty ; rdfs:comment "Determines the name or index of the function argument."@en ; rdfs:label "argument name"@en ; rdfs:subPropertyOf cx-fx:argumentConfigurationProperty ; rdfs:range xsd:string ; rdfs:domain cx-fx:argument. ### https://w3id.org/catenax/ontology/function#dataType cx-fx:dataType rdf:type owl:AnnotationProperty ; rdfs:comment "Determines the data type of an argument or return value."@en ; rdfs:label "Argument or Result Data Type"@en ; rdfs:subPropertyOf cx-fx:argumentConfigurationProperty ; rdfs:range xsd:anyType; rdfs:domain cx-fx:argument. ### https://w3id.org/catenax/ontology/function#default cx-fx:default rdf:type owl:AnnotationProperty ; rdfs:comment "Determines a default for the given argument which is taken if this is a mandatory argument"@en ; rdfs:label "Default"@en ; rdfs:subPropertyOf cx-fx:argumentConfigurationProperty ; rdfs:range xsd:anyType ; rdfs:domain cx-fx:argument. ### https://w3id.org/catenax/ontology/function#inputProperty cx-fx:inputProperty rdf:type owl:AnnotationProperty ; rdfs:comment "Determines a path/name in the input document under which all input arguments are encoded. Default is '.'"@en ; rdfs:label "Input Property"@en ; rdfs:subPropertyOf cx-fx:argumentConfigurationProperty ; rdfs:range xsd:string ; rdfs:domain cx-fx:argument. ### https://w3id.org/catenax/ontology/function#priority cx-fx:priority rdf:type owl:AnnotationProperty ; rdfs:comment "Determines the priority with which the argument is processed. Default is '10'"@en ; rdfs:label "Priority"@en ; rdfs:subPropertyOf cx-fx:argumentConfigurationProperty ; rdfs:range xsd:integer ; rdfs:domain cx-fx:argument. ### https://w3id.org/catenax/ontology/function#valuePath cx-fx:valuePath rdf:type owl:AnnotationProperty ; rdfs:comment "Determines a path in the output response under which a return value is transmitted."@en ; rdfs:label "Value Path"@en ; rdfs:subPropertyOf cx-fx:argumentConfigurationProperty ; rdfs:range xsd:string ; rdfs:domain cx-fx:argument. ### https://w3id.org/catenax/ontology/function#functionConfigurationProperty cx-fx:functionConfigurationProperty rdf:type owl:AnnotationProperty ; rdfs:comment "API configuration property for Function."@en ; rdfs:label "Function Configuration Property"@en ; rdfs:domain cx-fx:Function. ### https://w3id.org/catenax/ontology/function#batch cx-fx:batch rdf:type owl:AnnotationProperty ; rdfs:comment "Determines maximal batch size for function invocations. Default is '1' which means that each invocation is done separately"@en ; rdfs:label "Batch Size"@en ; rdfs:subPropertyOf cx-fx:functionConfigurationProperty ; rdfs:range xsd:long ; rdfs:domain cx-fx:Function . ### https://w3id.org/catenax/ontology/function#callbackProperty cx-fx:callbackProperty rdf:type owl:AnnotationProperty ; rdfs:comment "Determines a (set of) paths in the input document and the output response under which the callback address (see ) and the referring callback id will be transmitted."@en ; rdfs:label "Callback Address"@en ; rdfs:subPropertyOf cx-fx:functionConfigurationProperty ; rdfs:range xsd:string ; rdfs:domain cx-fx:Function . ### https://w3id.org/catenax/ontology/function#invocationIdProperty cx-fx:invocationIdProperty rdf:type owl:AnnotationProperty ; rdfs:comment "Determines a (set of) paths in the input document under which the IRI of the invocation (instance of Function) will be transmitted."@en ; rdfs:label "Invocation ID Property"@en ; rdfs:subPropertyOf cx-fx:functionConfigurationProperty ; rdfs:range xsd:string ; rdfs:domain cx-fx:Function . ### https://w3id.org/catenax/ontology/function#invocationMethod cx-fx:invocationMethod rdf:type owl:AnnotationProperty ; rdfs:comment "Determines the invocation method of the function in case that the target service provides several possibilities (DEFAULT, GET, POST-JSON , POST-JSON-MF , POST-XML , POST-XML-MF). "@en ; rdfs:label "Invocation Method"@en ; rdfs:subPropertyOf cx-fx:functionConfigurationProperty ; rdfs:range xsd:string ; rdfs:domain cx-fx:Function . ### https://w3id.org/catenax/ontology/function#targetUri cx-fx:targetUri rdf:type owl:AnnotationProperty ; rdfs:comment "The target URI of the function should resolve to some existing service (URL)."@en ; rdfs:label "Target URI"@en ; rdfs:subPropertyOf cx-fx:functionConfigurationProperty ; rdfs:range xsd:string . ### https://w3id.org/catenax/ontology/function#resultConfigurationProperty cx-fx:resultConfigurationProperty rdf:type owl:AnnotationProperty ; rdfs:comment "API configuration property for Result."@en ; rdfs:label "Result Configuration Property" ; rdfs:domain cx-fx:Result. ### https://w3id.org/catenax/ontology/function#outputProperty cx-fx:outputProperty rdf:type owl:AnnotationProperty ; rdfs:comment "Determines a path/name in the output response under which all output arguments are encoded. Default is '.'"@en ; rdfs:label "Output of Function"@en ; rdfs:subPropertyOf cx-fx:resultConfigurationProperty ; rdfs:range xsd:string ; rdfs:domain cx-fx:Result . ### https://w3id.org/catenax/ontology/function#resultIdProperty cx-fx:resultIdProperty rdf:type owl:AnnotationProperty ; rdfs:comment "Determines a path in the output response under which the IRI of the result component will be transmitted."@en ; rdfs:label "Result ID Property"@en ; rdfs:subPropertyOf cx-fx:resultConfigurationProperty ; rdfs:range xsd:string ; rdfs:domain cx-fx:Result . ################################################################# # Datatypes ################################################################# ### http://www.w3.org/2001/XMLSchema#anyType xsd:anyType rdf:type rdfs:Datatype . ### http://www.w3.org/2001/XMLSchema#date xsd:date rdf:type rdfs:Datatype . ################################################################# # Object Properties ################################################################# ### https://w3id.org/catenax/ontology/function#output cx-fx:output rdf:type owl:ObjectProperty ; rdfs:domain cx-fx:Function ; rdfs:range cx-fx:Result ; rdfs:comment "Refers to the result of a function."@en ; rdfs:label "Output Result"@en . ################################################################# # Data properties ################################################################# ### https://w3id.org/catenax/ontology/function#argument cx-fx:argument rdf:type owl:DatatypeProperty ; rdfs:subPropertyOf owl:topDataProperty ; rdfs:domain cx-fx:Function ; rdfs:range xsd:string; rdfs:comment "Argument defines the input parameters of a function, and a function can have zero or more arguments."@en ; rdfs:label "Function Argument"@en . ### https://w3id.org/catenax/ontology/function#returnValue cx-fx:returnValue rdf:type owl:DatatypeProperty ; rdfs:domain cx-fx:Result ; rdfs:range xsd:string; rdfs:comment "Return value describes the type of values returned by a function."@en ; rdfs:label "Return value of a function."@en . ################################################################# # Classes ################################################################# ### https://w3id.org/catenax/ontology/core#ConceptualObject cx-core:ConceptualObject rdf:type owl:Class . ### https://w3id.org/catenax/ontology/common#Application cx-common:Application rdf:type owl:Class . ### https://w3id.org/catenax/ontology/function#Function cx-fx:Function rdf:type owl:Class ; rdfs:subClassOf cx-common:Application ; rdfs:comment "A function defines a calculation that is called through an API. For example, a prediction function for entered engine data."@en ; rdfs:label "Function"@en . ### https://w3id.org/catenax/ontology/function#Result cx-fx:Result rdf:type owl:Class ; rdfs:subClassOf cx-core:ConceptualObject ; rdfs:comment "Result describes the expected result of a function."@en ; rdfs:label "Result"@en .