com.hp.hpl.jena.rdf.model
Interface ResourceFactory.Interface

Enclosing interface:
ResourceFactory

public static interface ResourceFactory.Interface

the interface to resource factory objects.


Method Summary
 Property createProperty(java.lang.String uriref)
          create a new property.
 Property createProperty(java.lang.String namespace, java.lang.String localName)
          create a new property.
 Resource createResource()
          create a new anonymous resource.
 Resource createResource(java.lang.String uriref)
          create a new resource.
 Statement createStatement(Resource subject, Property predicate, RDFNode object)
          create a new statement.
 

Method Detail

createResource

public Resource createResource()
create a new anonymous resource.

Returns:
a new anonymous resource

createResource

public Resource createResource(java.lang.String uriref)
create a new resource.

Parameters:
uriref - URIREF of the resource
Returns:
a new resource

createProperty

public Property createProperty(java.lang.String uriref)
create a new property.

Parameters:
uriref - URIREF of the property
Returns:
a new property

createProperty

public Property createProperty(java.lang.String namespace,
                               java.lang.String localName)
create a new property.

Parameters:
namespace - uriref of the namespace
localName - localname of the property
Returns:
a new property

createStatement

public Statement createStatement(Resource subject,
                                 Property predicate,
                                 RDFNode object)
create a new statement.

Parameters:
subject - subject of the new statement
predicate - predicate of the new statement
object - object of the new statement
Returns:
a new statement


Copyright © 2001-2003 Hewlett-Packard. All Rights Reserved.