Class ExtnFct_ToLiteral

java.lang.Object
se.liu.ida.hefquin.mappings.algebra.exprs.fcts.ExtnFct_ToLiteral
All Implemented Interfaces:
ExtensionFunction

public class ExtnFct_ToLiteral extends Object implements 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 Details

  • Constructor Details

    • ExtnFct_ToLiteral

      protected ExtnFct_ToLiteral()
  • Method Details