|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GraphElementFactory
A Graph Element Factory is a class which creates the various components of a graph including: resources, literals and blank nodes. It is generally tied to a specific graph (in the case of blank nodes it must be).
| Method Summary | |
|---|---|
BlankNode |
createBlankNode()
Create a blank node that is associated with a specific graph. |
Resource |
createResource()
Create a resource, wrapping a blank node that is associated with a specific graph. |
Resource |
createResource(BlankNode node)
Wrap a blank node in a resource. |
Resource |
createResource(Node node)
|
Resource |
createResource(URI uri)
Create a URI reference wrapped in a Resource. |
Resource |
createResource(URI uri,
boolean validate)
Create a URI reference wrapped in a Resource without checking if the URI given is a valid RDF URI, currently if the URI is absolute. |
Resource |
createResource(URIReference node)
Wrap a URIReference in a resource. |
| Methods inherited from interface org.jrdf.graph.GraphValueFactory |
|---|
createLiteral, createLiteral, createLiteral, createLiteral, createURIReference, createURIReference |
| Method Detail |
|---|
Resource createResource()
throws GraphElementFactoryException
GraphElementFactoryException - if adding a blank node fails.
Resource createResource(BlankNode node)
throws GraphElementFactoryException
node - the node to wrap.
GraphElementFactoryException - if the blank node does not exist.
Resource createResource(URIReference node)
throws GraphElementFactoryException
node - the node to wrap.
GraphElementFactoryException - if the URIReference does not exist.
BlankNode createBlankNode()
throws GraphElementFactoryException
GraphElementFactoryException - if adding a blank node fails.
Resource createResource(URI uri)
throws GraphElementFactoryException
uri - The URI of the resource.
GraphElementFactoryException - If the resource failed to be created.
Resource createResource(URI uri,
boolean validate)
throws GraphElementFactoryException
uri - The URI of the resource.validate - true if we disbale checking to see if the URI is valid.
GraphElementFactoryException - If the resource failed to be created.
Resource createResource(Node node)
throws GraphElementFactoryException
GraphElementFactoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||