java.lang.Object
org.apache.jena.sparql.expr.nodevalue.NodeValueOps
Operations relating to
NodeValues
.
- The code parts of arithmetic operations on
NodeValue
s. - Library code such as Argument testing
This class is not considered to be part of the ARQ API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeValue
additionNV
(NodeValue nv1, NodeValue nv2) Add twoNodeValues
, with all the extra datatypes and extensions supported.static org.apache.jena.graph.Node
checkAndGetStringLiteral
(String label, NodeValue nv) check and get a string (may be a simple literal, literal with language tag or an XSD string).static void
checkTwoArgumentStringLiterals
(String label, NodeValue arg1, NodeValue arg2) Check for string operations with primary first arg and second arg (e.g.static NodeValue
divisionNV
(NodeValue nv1, NodeValue nv2) Divide twoNodeValues
, with all the extra datatypes and extensions supported.static NodeValue
multiplicationNV
(NodeValue nv1, NodeValue nv2) Multiple twoNodeValues
, with all the extra datatypes and extensions supported.static NodeValue
subtractionNV
(NodeValue nv1, NodeValue nv2) Subtract twoNodeValues
, with all the extra datatypes and extensions supported.
-
Constructor Details
-
NodeValueOps
public NodeValueOps()
-
-
Method Details
-
additionNV
Add twoNodeValues
, with all the extra datatypes and extensions supported. -
subtractionNV
Subtract twoNodeValues
, with all the extra datatypes and extensions supported. -
multiplicationNV
Multiple twoNodeValues
, with all the extra datatypes and extensions supported. -
divisionNV
Divide twoNodeValues
, with all the extra datatypes and extensions supported. -
checkAndGetStringLiteral
check and get a string (may be a simple literal, literal with language tag or an XSD string). -
checkTwoArgumentStringLiterals
Check for string operations with primary first arg and second arg (e.g. CONTAINS). The arguments are not used in the same way and the check operation is not symmetric.- "abc"@en is compatible with "abc"
- "abc" is NOT compatible with "abc"@en
-