com.hp.hpl.jena.sparql.expr.nodevalue
Class NodeFunctions

java.lang.Object
  extended by com.hp.hpl.jena.sparql.expr.nodevalue.NodeFunctions

public class NodeFunctions
extends Object

Implementation of node-centric functions.


Field Summary
static boolean warningsForIRIs
           
 
Constructor Summary
NodeFunctions()
           
 
Method Summary
static com.hp.hpl.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 second arg (e.g.
static com.hp.hpl.jena.graph.Node datatype(com.hp.hpl.jena.graph.Node node)
           
static NodeValue datatype(NodeValue nv)
           
static com.hp.hpl.jena.graph.Node iri(com.hp.hpl.jena.graph.Node nv, String baseIRI)
           
static NodeValue iri(NodeValue nv, String baseIRI)
           
static boolean isBlank(com.hp.hpl.jena.graph.Node node)
           
static NodeValue isBlank(NodeValue nv)
           
static boolean isIRI(com.hp.hpl.jena.graph.Node node)
           
static NodeValue isIRI(NodeValue nv)
           
static boolean isLiteral(com.hp.hpl.jena.graph.Node node)
           
static NodeValue isLiteral(NodeValue nv)
           
static boolean isURI(com.hp.hpl.jena.graph.Node node)
           
static NodeValue isURI(NodeValue nv)
           
static String lang(com.hp.hpl.jena.graph.Node node)
           
static NodeValue lang(NodeValue nv)
           
static NodeValue langMatches(NodeValue nv, NodeValue nvPattern)
           
static NodeValue langMatches(NodeValue nv, String langPattern)
           
static boolean rdfTermEquals(com.hp.hpl.jena.graph.Node n1, com.hp.hpl.jena.graph.Node n2)
           
static NodeValue rdfTermEquals(NodeValue nv1, NodeValue nv2)
           
static boolean sameTerm(com.hp.hpl.jena.graph.Node n1, com.hp.hpl.jena.graph.Node n2)
           
static NodeValue sameTerm(NodeValue nv1, NodeValue nv2)
           
static String str(com.hp.hpl.jena.graph.Node node)
           
static NodeValue str(NodeValue nv)
           
static NodeValue strDatatype(NodeValue v1, NodeValue v2)
           
static NodeValue strLang(NodeValue v1, NodeValue v2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

warningsForIRIs

public static boolean warningsForIRIs
Constructor Detail

NodeFunctions

public NodeFunctions()
Method Detail

checkAndGetStringLiteral

public static com.hp.hpl.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 second arg (e.g. CONTAINS)


sameTerm

public static NodeValue sameTerm(NodeValue nv1,
                                 NodeValue nv2)

sameTerm

public static boolean sameTerm(com.hp.hpl.jena.graph.Node n1,
                               com.hp.hpl.jena.graph.Node n2)

rdfTermEquals

public static NodeValue rdfTermEquals(NodeValue nv1,
                                      NodeValue nv2)

rdfTermEquals

public static boolean rdfTermEquals(com.hp.hpl.jena.graph.Node n1,
                                    com.hp.hpl.jena.graph.Node n2)

str

public static NodeValue str(NodeValue nv)

str

public static String str(com.hp.hpl.jena.graph.Node node)

datatype

public static NodeValue datatype(NodeValue nv)

datatype

public static com.hp.hpl.jena.graph.Node datatype(com.hp.hpl.jena.graph.Node node)

lang

public static NodeValue lang(NodeValue nv)

lang

public static String lang(com.hp.hpl.jena.graph.Node node)

langMatches

public static NodeValue langMatches(NodeValue nv,
                                    NodeValue nvPattern)

langMatches

public static NodeValue langMatches(NodeValue nv,
                                    String langPattern)

isIRI

public static NodeValue isIRI(NodeValue nv)

isIRI

public static boolean isIRI(com.hp.hpl.jena.graph.Node node)

isURI

public static NodeValue isURI(NodeValue nv)

isURI

public static boolean isURI(com.hp.hpl.jena.graph.Node node)

isBlank

public static NodeValue isBlank(NodeValue nv)

isBlank

public static boolean isBlank(com.hp.hpl.jena.graph.Node node)

isLiteral

public static NodeValue isLiteral(NodeValue nv)

isLiteral

public static boolean isLiteral(com.hp.hpl.jena.graph.Node node)

iri

public static NodeValue iri(NodeValue nv,
                            String baseIRI)

iri

public static com.hp.hpl.jena.graph.Node iri(com.hp.hpl.jena.graph.Node nv,
                                             String baseIRI)

strDatatype

public static NodeValue strDatatype(NodeValue v1,
                                    NodeValue v2)

strLang

public static NodeValue strLang(NodeValue v1,
                                NodeValue v2)


Licenced under the Apache License, Version 2.0