Package org.incenp.obofoundry.sssom.owl
Class SSSOMTAnnotateObjectFunction
java.lang.Object
org.incenp.obofoundry.sssom.owl.SSSOMTAnnotateFunction
org.incenp.obofoundry.sssom.owl.SSSOMTAnnotateObjectFunction
- All Implemented Interfaces:
IMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom>
,ISSSOMTFunction<IMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom>>
Deprecated.
Represents the SSSOM/T-OWL generator function "annotate_object".
That function creates a OWL annotation assertion axiom on the object of the mapping. It takes two arguments:
- the name of the annotation property;
- the annotation value.
-
Field Summary
Fields inherited from class org.incenp.obofoundry.sssom.owl.SSSOMTAnnotateFunction
app
-
Constructor Summary
ConstructorsConstructorDescriptionSSSOMTAnnotateObjectFunction
(SSSOMTOwlApplication application) Deprecated.Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionIMappingTransformer
<org.semanticweb.owlapi.model.OWLAxiom> Deprecated.Executes the function.getName()
Deprecated.Gets the name of the function, by which it can be called in a SSSOM/T ruleset.Deprecated.Gets the expected signature of the function.Methods inherited from class org.incenp.obofoundry.sssom.owl.SSSOMTAnnotateFunction
transform
-
Constructor Details
-
SSSOMTAnnotateObjectFunction
Deprecated.Creates a new instance.- Parameters:
application
- The SSSOM/T-OWL application object.
-
-
Method Details
-
getName
Deprecated.Description copied from interface:ISSSOMTFunction
Gets the name of the function, by which it can be called in a SSSOM/T ruleset.- Specified by:
getName
in interfaceISSSOMTFunction<IMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom>>
- Overrides:
getName
in classSSSOMTAnnotateFunction
- Returns:
- The function name.
-
getSignature
Deprecated.Description copied from interface:ISSSOMTFunction
Gets the expected signature of the function. It should be a string that represents how many arguments (excluding keyed arguments) the function is expecting, where a singleS
character represents an argument.Regular expression syntax may be used to represent arguments that are optional or represent other kinds of constraints about the arguments list.
Examples:
SSS
for a function that expects exactly 3 arguments;S+
for a function that expects at least one argument, possibly more;(SS)+
for a function that one or more pairs of arguments (e.g. 2, 4, 6, but not 3 or 5).
- Specified by:
getSignature
in interfaceISSSOMTFunction<IMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom>>
- Overrides:
getSignature
in classSSSOMTAnnotateFunction
- Returns:
- The function signature.
-
call
public IMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom> call(List<String> arguments, Map<String, String> keyedArguments) Deprecated.Description copied from interface:ISSSOMTFunction
Executes the function.Before this method is called, the arguments list will have been checked against the signature and will be guaranteed to be correct (e.g. if the function declared to expects two arguments, it is guaranteed the
arguments
list will contains two items).- Specified by:
call
in interfaceISSSOMTFunction<IMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom>>
- Overrides:
call
in classSSSOMTAnnotateFunction
- Parameters:
arguments
- The arguments to the function. May be empty, but notnull
.keyedArguments
- The keyed arguments to the function. May be empty, butnull
.- Returns:
- The result of executing the function.
-
annotate(%{object_id}, ...);
instead.