edu.stanford.db.rdf.model.i
Class Registry

java.lang.Object
  |
  +--edu.stanford.db.rdf.model.i.Registry
All Implemented Interfaces:
NodeFactory

public class Registry
extends java.lang.Object
implements NodeFactory

We can have two equal RDFNodeImpl with two different IDs


Constructor Summary
Registry()
           
 
Method Summary
 java.lang.String create(java.lang.String str)
           
 Literal createLiteral(boolean b)
          Creates a literal from a boolean
 Literal createLiteral(byte b)
          Creates a literal from a byte
 Literal createLiteral(char b)
          Creates a literal from a char
 Literal createLiteral(double b)
          Creates a literal from a double
 Literal createLiteral(float b)
          Creates a literal from a float
 Literal createLiteral(int b)
          Creates a literal from an int
 Literal createLiteral(long b)
          Creates a literal from a long
 Literal createLiteral(short b)
          Creates a literal from a short
 Literal createLiteral(java.lang.String str)
          Creates a literal out of a string
 Resource createOrdinal(int i)
          Creates an ordinal property (rdf:li, rdf:_N)
 Resource createResource(QName str)
          Creates a resource out of a string
 Resource createResource(java.lang.String str)
          Creates a resource out of a URI
 Resource createResource(java.lang.String ns, java.lang.String str)
          Creates a resource out of a string
 Statement createStatement(Resource subject, Resource predicate, RDFNode object)
          Creates a triple
 Resource createUniqueResource()
          Creates a resource with a unique ID
 int getUnusedNodeID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Registry

public Registry()
Method Detail

create

public java.lang.String create(java.lang.String str)

createResource

public Resource createResource(java.lang.String str)
                        throws ModelException
Description copied from interface: NodeFactory
Creates a resource out of a URI
Specified by:
createResource in interface NodeFactory

createResource

public Resource createResource(java.lang.String ns,
                               java.lang.String str)
                        throws ModelException
Description copied from interface: NodeFactory
Creates a resource out of a string
Specified by:
createResource in interface NodeFactory

createResource

public Resource createResource(QName str)
                        throws ModelException
Creates a resource out of a string

createLiteral

public Literal createLiteral(java.lang.String str)
Creates a literal out of a string
Specified by:
createLiteral in interface NodeFactory

getUnusedNodeID

public int getUnusedNodeID()

createStatement

public Statement createStatement(Resource subject,
                                 Resource predicate,
                                 RDFNode object)
                          throws ModelException
Creates a triple
Specified by:
createStatement in interface NodeFactory

createUniqueResource

public Resource createUniqueResource()
                              throws ModelException
Creates a resource with a unique ID
Specified by:
createUniqueResource in interface NodeFactory

createOrdinal

public Resource createOrdinal(int i)
                       throws ModelException
Creates an ordinal property (rdf:li, rdf:_N)
Specified by:
createOrdinal in interface NodeFactory

createLiteral

public Literal createLiteral(boolean b)
                      throws ModelException
Creates a literal from a boolean
Specified by:
createLiteral in interface NodeFactory

createLiteral

public Literal createLiteral(byte b)
                      throws ModelException
Creates a literal from a byte
Specified by:
createLiteral in interface NodeFactory

createLiteral

public Literal createLiteral(char b)
                      throws ModelException
Creates a literal from a char
Specified by:
createLiteral in interface NodeFactory

createLiteral

public Literal createLiteral(short b)
                      throws ModelException
Creates a literal from a short
Specified by:
createLiteral in interface NodeFactory

createLiteral

public Literal createLiteral(int b)
                      throws ModelException
Creates a literal from an int
Specified by:
createLiteral in interface NodeFactory

createLiteral

public Literal createLiteral(long b)
                      throws ModelException
Creates a literal from a long
Specified by:
createLiteral in interface NodeFactory

createLiteral

public Literal createLiteral(float b)
                      throws ModelException
Creates a literal from a float
Specified by:
createLiteral in interface NodeFactory

createLiteral

public Literal createLiteral(double b)
                      throws ModelException
Creates a literal from a double
Specified by:
createLiteral in interface NodeFactory