15.154 SEM_APIS.UNESCAPE_RDF_TERM

Format

SEM_APIS.UNESCAPE_RDF_TERM(
     term       IN VARCHAR2 CHARACTER SET ANY_CS,
     options    IN VARCHAR2 DEFAULT NULL,
     max_vc_len IN NUMBER DEFAULT 4000 
     ) RETURN VARCHAR2 CHARACTER SET val%CHARSET;

Description

Returns the input RDF term with special characters and non-ASCII characters unescaped as specified by the W3C N-Triples format (http://www.w3.org/TR/rdf-testcases/#ntriples).

Parameters

term

The RDF term to unescape.

options

Reserved for future use.

max_vc_len

The maximum allowed length of a VARCHAR RDF term - 32767 or 4000 (the default).

Usage Notes

For information about using the DO_UNESCAPE keyword in the options parameter of the SEM_MATCH table function, see Using the SEM_MATCH Table Function to Query Semantic Data.

Examples

The following example unescapes an input RDF term containing TAB and NEWLINE characters.

SELECT SEM_APIS.UNESCAPE_RDF_TERM('"abc\tdef\nhij"^^<http://www.w3.org/2001/XMLSchema#string>')
  FROM DUAL;