|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.jastor.DatasetThingImpl
public class DatasetThingImpl
Implementation of DatasetThing
| Field Summary |
|---|
| Fields inherited from interface org.openanzo.jastor.CoreThing |
|---|
TYPE |
| Constructor Summary | |
|---|---|
DatasetThingImpl(org.openrdf.model.Resource resource,
org.openrdf.model.URI _namedGraphUri,
IDataset _dataset)
Create a new DatasetThingImple for given resource |
|
| Method Summary | ||
|---|---|---|
void |
clearCache()
Clear any property caches for this THING |
|
IDataset |
dataset()
Get the Dataset where this THING resides |
|
boolean |
equals(java.lang.Object obj)
|
|
org.openrdf.model.Literal |
getLiteral(java.lang.Object value,
java.lang.String returnType,
java.lang.String rangeUri)
Get the Literal value for the raw data |
|
|
getLiteralValue(org.openrdf.model.Literal literal,
java.lang.Class<T> expectedType)
Get the native value of a literal |
|
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> |
getProperties(org.openrdf.model.Resource... contexts)
Retrieve set of statements containing all properties for THING's resource |
|
org.openrdf.model.Value |
getPropertyValue(java.lang.String property,
org.openrdf.model.Resource... contexts)
Retrieve single DatasetProperty for the given property within set of provided contexts |
|
org.openrdf.model.Value |
getPropertyValue(org.openrdf.model.URI property,
org.openrdf.model.Resource... contexts)
Retrieve single DatasetProperty for the given property within set of provided contexts |
|
DatasetPropertyIterator<org.openrdf.model.Value> |
getPropertyValues(java.lang.String property,
org.openrdf.model.Resource... contexts)
Retrieve iterator of DatasetProperties for the given property within set of provided contexts |
|
DatasetPropertyIterator<org.openrdf.model.Value> |
getPropertyValues(org.openrdf.model.URI property,
org.openrdf.model.Resource... contexts)
Retrieve iterator of DatasetProperties for the given property within set of provided contexts |
|
boolean |
isRDFType(org.openrdf.model.Resource type)
Verify if this THING is of RDFType type |
|
java.util.Collection<org.openrdf.model.Statement> |
listStatements()
Get set of statements that makeup this THINGS's properties and types |
|
org.openrdf.model.URI |
namedGraphUri()
Get the URI of the NamedGraph where this THING resides |
|
void |
registerListener(ThingListener listener)
Register a ThingListener for this THING |
|
void |
removeStatements()
Remove set of statements that makeup this THINGS's properties and types |
|
org.openrdf.model.Resource |
resource()
Resource representation of this THING's resource |
|
void |
setPropertyValue(java.lang.String property,
org.openrdf.model.Value value,
org.openrdf.model.Resource context)
Set the property value for THING within given context |
|
void |
setPropertyValue(org.openrdf.model.URI property,
org.openrdf.model.Value value,
org.openrdf.model.Resource context)
Set the property value for THING within given context |
|
java.lang.String |
toString()
|
|
void |
unregisterListener(ThingListener listener)
Unregister a ThingListener for this THING |
|
java.lang.String |
uri()
String representation of this THING's resource |
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DatasetThingImpl(org.openrdf.model.Resource resource,
org.openrdf.model.URI _namedGraphUri,
IDataset _dataset)
throws JastorException
resource - Resource of Thing_namedGraphUri - URI of NamedGraph where this Thing resides_dataset - Dataset where data for this Thing resides
JastorException - if dataset is null| Method Detail |
|---|
public java.lang.String uri()
CoreThing
uri in interface CoreThingpublic IDataset dataset()
DatasetThing
dataset in interface DatasetThingpublic org.openrdf.model.Resource resource()
CoreThing
resource in interface CoreThingpublic java.util.Collection<org.openrdf.model.Statement> listStatements()
CoreThing
listStatements in interface CoreThingpublic void removeStatements()
CoreThing
removeStatements in interface CoreThingpublic void clearCache()
CoreThing
clearCache in interface CoreThingpublic void registerListener(ThingListener listener)
CoreThing
registerListener in interface CoreThinglistener - ThingListenerpublic void unregisterListener(ThingListener listener)
CoreThing
unregisterListener in interface CoreThinglistener - ThingListenerpublic boolean isRDFType(org.openrdf.model.Resource type)
CoreThing
isRDFType in interface CoreThingtype - type to verify
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
public <T> T getLiteralValue(org.openrdf.model.Literal literal,
java.lang.Class<T> expectedType)
T - Type of class for which to convertliteral - literal value to convertexpectedType - expected java type
public org.openrdf.model.Literal getLiteral(java.lang.Object value,
java.lang.String returnType,
java.lang.String rangeUri)
value - the native value to convertreturnType - the expected native typerangeUri - the range type
public info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> getProperties(org.openrdf.model.Resource... contexts)
DatasetThing
getProperties in interface DatasetThingcontexts - context to do search over
public DatasetPropertyIterator<org.openrdf.model.Value> getPropertyValues(java.lang.String property,
org.openrdf.model.Resource... contexts)
DatasetThing
getPropertyValues in interface DatasetThingproperty - property containing DatasetPropertycontexts - context to do search over
public DatasetPropertyIterator<org.openrdf.model.Value> getPropertyValues(org.openrdf.model.URI property,
org.openrdf.model.Resource... contexts)
DatasetThing
getPropertyValues in interface DatasetThingproperty - property containing DatasetPropertycontexts - context to do search over
public org.openrdf.model.Value getPropertyValue(java.lang.String property,
org.openrdf.model.Resource... contexts)
DatasetThing
getPropertyValue in interface DatasetThingproperty - property containing DatasetPropertycontexts - context to do search over
public void setPropertyValue(org.openrdf.model.URI property,
org.openrdf.model.Value value,
org.openrdf.model.Resource context)
DatasetThing
setPropertyValue in interface DatasetThingproperty - URI of property to setvalue - Value of property to setcontext - Context where statement should be created
public void setPropertyValue(java.lang.String property,
org.openrdf.model.Value value,
org.openrdf.model.Resource context)
DatasetThing
setPropertyValue in interface DatasetThingproperty - String representation of URI of property to setvalue - Value of property to setcontext - Context where statement should be created
public org.openrdf.model.Value getPropertyValue(org.openrdf.model.URI property,
org.openrdf.model.Resource... contexts)
DatasetThing
getPropertyValue in interface DatasetThingproperty - property containing DatasetPropertycontexts - context to do search over
public org.openrdf.model.URI namedGraphUri()
DatasetThing
namedGraphUri in interface DatasetThing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||