Class SSSOMTCreateAxiomFunction
- All Implemented Interfaces:
- IMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom>,- ISSSOMTFunction<IMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom>>
That function can create arbitrary OWL axiom from an expression in OWL Manchester syntax. It takes a single argument which is the OWL Manchester representation of the axiom to create. The argument may contain placeholders so that its value can be partially derived from the mapping the function is being applied to.
For example, to create an equivalence axiom between the subject and the object of the current mapping:
 create_axiom("<%{subject_id}> EquivalentTo: <%{object_id}>");
 
 
 Note that un-bracketed placeholders, if used, are automatically formatted with enclosing angled brackets, for convenience, so the following call is equivalent to the call above:
 create_axiom("%subject_id EquivalentTo: %object_id");
 
 
 
 The function also accepts an optional /annots=... parameter; if
 present, it should be a list of SSSOM metadata fields that should be used to
 annotate the generated axiom. When that parameter is present, another
 parameter, /annots_uris=... can be used to specify how metadata
 fields should be rendered into annotation properties (allowed values:
 direct, standard_map; default is
 direct).
- 
Constructor SummaryConstructorsConstructorDescriptionSSSOMTCreateAxiomFunction(SSSOMTOwlApplication application) Creates a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionIMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom> Executes the function.getName()Gets the name of the function, by which it can be called in a SSSOM/T ruleset.Gets the expected signature of the function.org.semanticweb.owlapi.model.OWLAxiomTransform a mapping into something else.
- 
Constructor Details- 
SSSOMTCreateAxiomFunctionCreates a new instance.- Parameters:
- application- The SSSOM/T-OWL application object.
 
 
- 
- 
Method Details- 
getNameDescription copied from interface:ISSSOMTFunctionGets the name of the function, by which it can be called in a SSSOM/T ruleset.- Specified by:
- getNamein interface- ISSSOMTFunction<IMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom>>
- Returns:
- The function name.
 
- 
getSignatureDescription copied from interface:ISSSOMTFunctionGets 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 singleScharacter 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: - SSSfor 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:
- getSignaturein interface- ISSSOMTFunction<IMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom>>
- Returns:
- The function signature.
 
- 
callpublic IMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom> call(List<String> arguments, Map<String, String> keyedArguments) throws SSSOMTransformErrorDescription copied from interface:ISSSOMTFunctionExecutes 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 argumentslist will contains two items).- Specified by:
- callin interface- ISSSOMTFunction<IMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom>>
- Parameters:
- arguments- The arguments to the function. May be empty, but not- null.
- keyedArguments- The keyed arguments to the function. May be empty, but- null.
- Returns:
- The result of executing the function.
- Throws:
- SSSOMTransformError- If any error occurred when executing the function (which may include the case where the number of arguments was correct but their contents was not).
 
- 
transformDescription copied from interface:IMappingTransformerTransform a mapping into something else.- Specified by:
- transformin interface- IMappingTransformer<org.semanticweb.owlapi.model.OWLAxiom>
- Parameters:
- mapping- The mapping to transform.
- Returns:
- The object generated from the mapping.
 
 
-