com.hp.hpl.jena.sparql.util
Class NodeUtils

java.lang.Object
  extended by com.hp.hpl.jena.sparql.util.NodeUtils

public class NodeUtils
extends Object

Node utilities


Nested Class Summary
static interface NodeUtils.EqualityTest
           
 
Field Summary
static NodeUtils.EqualityTest sameTerm
           
static NodeUtils.EqualityTest sameValue
           
 
Constructor Summary
NodeUtils()
           
 
Method Summary
static com.hp.hpl.jena.graph.Node asNode(com.hp.hpl.jena.iri.IRI iri)
           
static com.hp.hpl.jena.graph.Node asNode(String iri)
           
static int compareRDFTerms(com.hp.hpl.jena.graph.Node node1, com.hp.hpl.jena.graph.Node node2)
          Compare two Nodes, based on their RDF terms forms, not value
static Set<com.hp.hpl.jena.graph.Node> convertToNodes(Collection<String> uris)
           
static boolean hasLang(com.hp.hpl.jena.graph.Node node)
           
static boolean isStringLiteral(com.hp.hpl.jena.graph.Node literal)
           
static Iterator<String> nodesToURIs(Iterator<com.hp.hpl.jena.graph.Node> iter)
           
static String stringLiteral(com.hp.hpl.jena.graph.Node literal)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sameTerm

public static NodeUtils.EqualityTest sameTerm

sameValue

public static NodeUtils.EqualityTest sameValue
Constructor Detail

NodeUtils

public NodeUtils()
Method Detail

asNode

public static com.hp.hpl.jena.graph.Node asNode(com.hp.hpl.jena.iri.IRI iri)

asNode

public static com.hp.hpl.jena.graph.Node asNode(String iri)

isStringLiteral

public static boolean isStringLiteral(com.hp.hpl.jena.graph.Node literal)

hasLang

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

stringLiteral

public static String stringLiteral(com.hp.hpl.jena.graph.Node literal)

nodesToURIs

public static Iterator<String> nodesToURIs(Iterator<com.hp.hpl.jena.graph.Node> iter)

convertToNodes

public static Set<com.hp.hpl.jena.graph.Node> convertToNodes(Collection<String> uris)

compareRDFTerms

public static int compareRDFTerms(com.hp.hpl.jena.graph.Node node1,
                                  com.hp.hpl.jena.graph.Node node2)
Compare two Nodes, based on their RDF terms forms, not value



Licenced under the Apache License, Version 2.0