Class ExtnFct_ToLiteral
java.lang.Object
se.liu.ida.hefquin.mappings.algebra.exprs.fcts.ExtnFct_ToLiteral
- All Implemented Interfaces:
ExtensionFunction
Given a string literal and a datatype IRI, returns a literal whose
lexical form is the lexical form of the given string literal and
whose datatype IRI is the IRI given as second argument. Additionally,
for the sake of robustness, the function also works for the following
two types of cases:
First, if the given literal is not a string literal but of the same type as the given datatype IRI, then simply return that literal.
Second, if the given literal is not a string literal but the given datatype IRI is xsd:string, then simply use the lexical form of the given literal to create an xsd:string literal.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.graph.Nodeapply(org.apache.jena.graph.Node... args) booleanisCorrectNumberOfArgument(int n) toString()
-
Field Details
-
instance
-
-
Constructor Details
-
ExtnFct_ToLiteral
protected ExtnFct_ToLiteral()
-
-
Method Details
-
isCorrectNumberOfArgument
public boolean isCorrectNumberOfArgument(int n) - Specified by:
isCorrectNumberOfArgumentin interfaceExtensionFunction
-
apply
public org.apache.jena.graph.Node apply(org.apache.jena.graph.Node... args) - Specified by:
applyin interfaceExtensionFunction
-
toString
-