Class NodeValueOps

java.lang.Object
org.apache.jena.sparql.expr.nodevalue.NodeValueOps

public class NodeValueOps extends Object
Operations relating to NodeValues.
  • The code parts of arithmetic operations on NodeValues.
  • Library code such as Argument testing

This class is not considered to be part of the ARQ API.

  • Constructor Details

    • NodeValueOps

      public NodeValueOps()
  • Method Details

    • additionNV

      public static NodeValue additionNV(NodeValue nv1, NodeValue nv2)
      Add two NodeValues, with all the extra datatypes and extensions supported.
    • subtractionNV

      public static NodeValue subtractionNV(NodeValue nv1, NodeValue nv2)
      Subtract two NodeValues, with all the extra datatypes and extensions supported.
    • multiplicationNV

      public static NodeValue multiplicationNV(NodeValue nv1, NodeValue nv2)
      Multiple two NodeValues, with all the extra datatypes and extensions supported.
    • divisionNV

      public static NodeValue divisionNV(NodeValue nv1, NodeValue nv2)
      Divide two NodeValues, with all the extra datatypes and extensions supported.
    • checkAndGetStringLiteral

      public 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).
    • checkTwoArgumentStringLiterals

      public static void checkTwoArgumentStringLiterals(String label, NodeValue arg1, NodeValue arg2)
      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