org.w3c.rdf.model
Interface NodeFactory

All Known Implementing Classes:
NodeFactoryImpl

public abstract interface NodeFactory

Provides methods for creating resources, literals and statements.


Method Summary
 Literal createLiteral(java.lang.String str)
          Creates a literal out of a string
 Resource createOrdinal(int i)
          Creates an ordinal
 Resource createResource(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
 

Method Detail

createResource

public Resource createResource(java.lang.String str)
                        throws ModelException
Creates a resource out of a string

createLiteral

public Literal createLiteral(java.lang.String str)
                      throws ModelException
Creates a literal out of a string

createStatement

public Statement createStatement(Resource subject,
                                 Resource predicate,
                                 RDFNode object)
                          throws ModelException
Creates a triple

createUniqueResource

public Resource createUniqueResource()
                              throws ModelException
Creates a resource with a unique ID

createOrdinal

public Resource createOrdinal(int i)
                       throws ModelException
Creates an ordinal