org.trippi
Class TripleMaker

java.lang.Object
  extended by org.trippi.TripleMaker

public class TripleMaker
extends java.lang.Object


Nested Class Summary
 class TripleMaker.FreeBlankNode
           
 
Constructor Summary
TripleMaker()
           
 
Method Summary
static org.jrdf.graph.Triple create(java.lang.String subject, java.lang.String predicate, java.lang.String object)
           
static org.jrdf.graph.Triple create(org.jrdf.graph.SubjectNode subject, org.jrdf.graph.PredicateNode predicate, org.jrdf.graph.ObjectNode object)
           
static org.jrdf.graph.Literal createLiteral(java.lang.String lexicalValue)
           
static org.jrdf.graph.Literal createLiteral(java.lang.String lexicalValue, java.lang.String languageType)
           
static org.jrdf.graph.Literal createLiteral(java.lang.String lexicalValue, java.net.URI datatypeURI)
           
static org.jrdf.graph.Triple createLocal(java.lang.String subject, java.lang.String predicate, java.lang.String object, java.lang.String language)
           
static org.jrdf.graph.Triple createPlain(java.lang.String subject, java.lang.String predicate, java.lang.String object)
           
static org.jrdf.graph.BlankNode createResource()
           
 org.jrdf.graph.BlankNode createResource(int hashCode)
          Create a BlankNode given a unique id.
static org.jrdf.graph.URIReference createResource(java.lang.String uri)
          Convenience method
static org.jrdf.graph.URIReference createResource(java.net.URI uri)
           
static org.jrdf.graph.URIReference createResource(java.net.URI uri, boolean validate)
           
static org.jrdf.graph.Triple createTyped(java.lang.String subject, java.lang.String predicate, java.lang.String object, java.lang.String datatype)
           
static org.jrdf.graph.GraphElementFactory getGraphElementFactory()
           
static org.jrdf.graph.Node parse(java.lang.String n)
           
static void setAliasMap(java.util.Map aliasMap)
           
static java.lang.String toString(org.jrdf.graph.Node node)
           
static java.lang.String toString(org.jrdf.graph.Triple triple)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TripleMaker

public TripleMaker()
            throws TrippiException
Throws:
TrippiException
Method Detail

createResource

public org.jrdf.graph.BlankNode createResource(int hashCode)
Create a BlankNode given a unique id.


createLiteral

public static org.jrdf.graph.Literal createLiteral(java.lang.String lexicalValue)
                                            throws TrippiException
Throws:
TrippiException

createLiteral

public static org.jrdf.graph.Literal createLiteral(java.lang.String lexicalValue,
                                                   java.lang.String languageType)
                                            throws TrippiException
Throws:
TrippiException

createLiteral

public static org.jrdf.graph.Literal createLiteral(java.lang.String lexicalValue,
                                                   java.net.URI datatypeURI)
                                            throws TrippiException
Throws:
TrippiException

createResource

public static org.jrdf.graph.BlankNode createResource()
                                               throws TrippiException
Throws:
TrippiException

createResource

public static org.jrdf.graph.URIReference createResource(java.lang.String uri)
                                                  throws TrippiException
Convenience method

Parameters:
uri -
Returns:
URIReference
Throws:
TrippiException

createResource

public static org.jrdf.graph.URIReference createResource(java.net.URI uri)
                                                  throws TrippiException
Throws:
TrippiException

createResource

public static org.jrdf.graph.URIReference createResource(java.net.URI uri,
                                                         boolean validate)
                                                  throws TrippiException
Throws:
TrippiException

create

public static org.jrdf.graph.Triple create(org.jrdf.graph.SubjectNode subject,
                                           org.jrdf.graph.PredicateNode predicate,
                                           org.jrdf.graph.ObjectNode object)
                                    throws TrippiException
Throws:
TrippiException

create

public static org.jrdf.graph.Triple create(java.lang.String subject,
                                           java.lang.String predicate,
                                           java.lang.String object)
                                    throws TrippiException
Throws:
TrippiException

createPlain

public static org.jrdf.graph.Triple createPlain(java.lang.String subject,
                                                java.lang.String predicate,
                                                java.lang.String object)
                                         throws TrippiException
Throws:
TrippiException

createLocal

public static org.jrdf.graph.Triple createLocal(java.lang.String subject,
                                                java.lang.String predicate,
                                                java.lang.String object,
                                                java.lang.String language)
                                         throws TrippiException
Throws:
TrippiException

createTyped

public static org.jrdf.graph.Triple createTyped(java.lang.String subject,
                                                java.lang.String predicate,
                                                java.lang.String object,
                                                java.lang.String datatype)
                                         throws TrippiException
Throws:
TrippiException

getGraphElementFactory

public static org.jrdf.graph.GraphElementFactory getGraphElementFactory()

setAliasMap

public static void setAliasMap(java.util.Map aliasMap)

parse

public static org.jrdf.graph.Node parse(java.lang.String n)
                                 throws TrippiException
Throws:
TrippiException

toString

public static java.lang.String toString(org.jrdf.graph.Node node)

toString

public static java.lang.String toString(org.jrdf.graph.Triple triple)