java.lang.Object
org.apache.jena.sparql.function.scripting.NV
- All Implemented Interfaces:
RDFJS
General representation of an
NodeValue
for JavaScript and other scripting
languages used to write SPARQL custom functions.
Class NV
provides access to all the details of a NodeValue
for cases where
translation to native types isn't enough.
Conversion is to native types where
possible, otherwise NV
. NV.toString
of a URI returns the uri as a
string so NV
works naturally in Java/JavaScript.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static Object
Map an ARQNodeValue
to java/GraalVM representation of a JavaScript object.getDT()
getLabel()
getLang()
getLex()
getUri()
getValue()
int
hashCode()
boolean
isBlank()
boolean
boolean
isNumber()
boolean
boolean
isURI()
nv()
static NodeValue
Map a java/GraalVM representation of a JavaScript object to an ARQNodeValue
.toString()
-
Constructor Details
-
NV
-
-
Method Details
-
fromNodeValue
-
toNodeValue
Map a java/GraalVM representation of a JavaScript object to an ARQNodeValue
. Identified types are null, string, number and boolean and alsoNV
returned by the JavaScript code. -
isURI
public boolean isURI() -
isBlank
public boolean isBlank() -
isNumber
public boolean isNumber() -
isLiteral
public boolean isLiteral() -
isTripleTerm
public boolean isTripleTerm() -
getTermType
- Specified by:
getTermType
in interfaceRDFJS
-
getValue
-
getLabel
-
getDT
-
getDatatype
-
getLanguage
-
getLang
-
getLex
-
getUri
-
nv
-
toString
-
hashCode
public int hashCode() -
equals
-