|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.semanticdesktop.aperture.rdf.impl.RDFContainerImpl
public class RDFContainerImpl
A default RDFContainer implementation, wrapping and editing a RDF2Go Model.
RDFContainerImpl can wrap a dedicated Model or can alternatively wrap a Model shared with other RDFContainerImpls. Depending on this mode, the dispose method will or will not close the underlying Model.
| Constructor Summary | |
|---|---|
RDFContainerImpl(Model model,
String describedUri)
Create a new RDFContainerImpl that will manage statements concerning the specified URI. |
|
RDFContainerImpl(Model model,
String describedUri,
boolean modelShared)
Create a new RDFContainerImpl that will manage statements concerning the specified URI. |
|
RDFContainerImpl(Model model,
URI describedUri)
Create a new RDFContainerImpl that will manage statements concerning the specified URI. |
|
RDFContainerImpl(Model model,
URI describedUri,
boolean modelShared)
Create a new RDFContainerImpl that will manage statements concerning the specified URI. |
|
| Method Summary | |
|---|---|
void |
add(Statement statement)
|
void |
add(URI property,
boolean value)
|
void |
add(URI property,
Calendar value)
|
void |
add(URI property,
Date value)
|
void |
add(URI property,
int value)
|
void |
add(URI property,
long value)
|
void |
add(URI property,
Node node)
|
void |
add(URI property,
String value)
|
void |
dispose()
Disposes this RDFContainerImpl. |
Collection |
getAll(URI property)
|
Boolean |
getBoolean(URI property)
|
Calendar |
getCalendar(URI property)
|
Date |
getDate(URI property)
|
URI |
getDescribedUri()
Get the identifier of the resource that is described by the contents of this RDFContainer. |
Integer |
getInteger(URI property)
|
Long |
getLong(URI property)
|
Model |
getModel()
Get the underlying RDF2Go model holding the RDF statements. |
Node |
getNode(URI property)
|
String |
getString(URI property)
|
URI |
getURI(URI property)
|
ValueFactory |
getValueFactory()
Get a ValueFactory with which RDF2Go datatype instances can be made. |
boolean |
isDisposed()
Returns whether this RDFContainerImpl has been disposed. |
boolean |
isModelShared()
Returns whether the wrapped Model is shared with other RDFContainerImpls. |
void |
put(URI property,
boolean value)
|
void |
put(URI property,
Calendar value)
|
void |
put(URI property,
Date value)
|
void |
put(URI property,
int value)
|
void |
put(URI property,
long value)
|
void |
put(URI property,
Node value)
|
void |
put(URI property,
String value)
|
void |
remove(Statement statement)
|
void |
remove(URI property)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RDFContainerImpl(Model model,
String describedUri)
model - A non-shared Model to store statements in and retrieve statements from.describedUri - The URI that typically will serve as subject in most statements.
public RDFContainerImpl(Model model,
URI describedUri)
model - A non-shared Model to store statements in and retrieve statements from.describedUri - The URI that typically will serve as subject in most statements.
public RDFContainerImpl(Model model,
URI describedUri,
boolean modelShared)
model - A Model to store statements in and retrieve statements from.describedUri - The URI that typically will serve as subject in most statements.modelShared - Indicates if the specified Model is shared with other RDFContainerImpls. When set to
'false', the model will be closed when this container is disposed.
public RDFContainerImpl(Model model,
String describedUri,
boolean modelShared)
model - A Model to store statements in and retrieve statements from.describedUri - The URI that typically will serve as subject in most statements.modelShared - Indicates if the specified Model is shared with other RDFContainerImpls. When set to
'false', the model will be closed when this container is disposed.| Method Detail |
|---|
public URI getDescribedUri()
RDFContainer
getDescribedUri in interface RDFContainerpublic Model getModel()
RDFContainer
getModel in interface RDFContainer
public void put(URI property,
String value)
put in interface RDFContainer
public void put(URI property,
Date value)
put in interface RDFContainer
public void put(URI property,
Calendar value)
put in interface RDFContainer
public void put(URI property,
boolean value)
put in interface RDFContainer
public void put(URI property,
int value)
put in interface RDFContainer
public void put(URI property,
long value)
put in interface RDFContainer
public void put(URI property,
Node value)
put in interface RDFContainer
public void add(URI property,
String value)
add in interface RDFContainer
public void add(URI property,
Date value)
add in interface RDFContainer
public void add(URI property,
Calendar value)
add in interface RDFContainer
public void add(URI property,
boolean value)
add in interface RDFContainer
public void add(URI property,
int value)
add in interface RDFContainer
public void add(URI property,
long value)
add in interface RDFContainer
public void add(URI property,
Node node)
add in interface RDFContainerpublic String getString(URI property)
getString in interface RDFContainerpublic Date getDate(URI property)
getDate in interface RDFContainerpublic Calendar getCalendar(URI property)
getCalendar in interface RDFContainerpublic Boolean getBoolean(URI property)
getBoolean in interface RDFContainerpublic Integer getInteger(URI property)
getInteger in interface RDFContainerpublic Long getLong(URI property)
getLong in interface RDFContainerpublic URI getURI(URI property)
getURI in interface RDFContainerpublic Node getNode(URI property)
getNode in interface RDFContainerpublic void remove(URI property)
remove in interface RDFContainerpublic Collection getAll(URI property)
getAll in interface RDFContainerpublic void add(Statement statement)
add in interface RDFContainerpublic void remove(Statement statement)
remove in interface RDFContainerpublic ValueFactory getValueFactory()
RDFContainer
getValueFactory in interface RDFContainerpublic void dispose()
dispose in interface RDFContainerpublic boolean isDisposed()
public boolean isModelShared()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||