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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ObjectMap an ARQNodeValueto java/GraalVM representation of a JavaScript object.getDT()getLabel()getLang()getLex()getUri()getValue()inthashCode()booleanisBlank()booleanbooleanisNumber()booleanbooleanisURI()nv()static NodeValueMap 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 alsoNVreturned 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:
getTermTypein interfaceRDFJS
-
getValue
-
getLabel
-
getDT
-
getDatatype
-
getLanguage
-
getLang
-
getLex
-
getUri
-
nv
-
toString
-
hashCode
public int hashCode() -
equals
-