public class AggregatedResourceJena extends OREResourceJena implements AggregatedResource
model, res| Constructor and Description |
|---|
AggregatedResourceJena() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAggregation(URI aggregation)
Add an aggregation to the list of aggregations that this resource knows about
|
void |
addResourceMap(URI rem)
Add a URI to a resource map which describes this Aggregated Resource if it
is also to be treated as an Aggregation
|
void |
clearAggregations()
Remove all the aggregations that this resource knows about.
|
void |
clearResourceMaps()
Remove all references to any resource maps associated with this Aggregated
Resource
|
void |
clearTypes()
Remove all the types associated with this resource.
|
Proxy |
createProxy(URI proxyURI)
Create a proxy representing this AggregatedResource in the context of the
Aggregation it is currently part of.
|
void |
detach()
Detach the current object from the current model.
|
void |
empty()
Remove everyting inside the object, but leave the object itself
in existence.
|
Aggregation |
getAggregation()
Get the parent aggregation of this aggregated resource in the current model.
|
List<URI> |
getAggregations()
List all of the known aggregations that this aggregated resource is a part of.
|
Vocab |
getOREType()
Get the Vocab element which refers to the ORE type that this object
is.
|
Proxy |
getProxy()
Get a Proxy object representing the AggregatedResource in the context of
the Aggregation it is part of.
|
List<URI> |
getResourceMaps()
For AggregatedResources which are also Aggregations in another sense,
then we must be able to get hold of the resource map(s) describing it.
|
boolean |
hasProxy()
Does this AggregatedResource have a Proxy currently associated with
it in the graph?
|
void |
initialise(URI uri)
Initialise an Aggregated Resource with the given URI.
|
List<Triple> |
listTriples(TripleSelector selector)
List all the triples directly descended from the resource type which match
the selection criteria.
|
void |
setAggregations(List<URI> aggregations)
Set the list of aggregations that this resource is a part of, overwriting existing
data.
|
void |
setResourceMaps(List<URI> rems)
Specify the URIs of the resource maps whcih describe this Aggregated
Resource if it is also to be treated as an Aggregation
|
void |
setTypes(List<URI> types)
Set the list of types associated with this resource.
|
aboveInHierarchy, addAgent, addCreator, addModelToModel, addRDF, addResourceToModel, addTriple, addTriples, addType, clearAgents, clearCreators, createTriple, createTriple, createTriple, createTriple, createTriple, createTriple, getAgents, getCreators, getModel, getOREObjectOfPredicates, getORESubjectOfPredicates, getOREType, getResource, getTypes, getURI, isUsedElsewhere, listAllTriples, listAllTriples, listTriples, listTriples, prune, recursivelyRemovable, recursiveRemove, removeTriple, setAgents, setCreators, setModel, setModel, setResourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAgent, addCreator, addRDF, addTriple, addTriples, addType, clearAgents, clearCreators, createTriple, createTriple, createTriple, createTriple, createTriple, createTriple, getAgents, getCreators, getTypes, getURI, listAllTriples, listAllTriples, listTriples, removeTriple, setAgents, setCreatorspublic void empty()
OREResourceempty in interface OREResourceempty in class OREResourceJenapublic void detach()
throws OREException
OREResourcedetach in interface OREResourcedetach in class OREResourceJenaOREExceptionpublic List<Triple> listTriples(TripleSelector selector) throws OREException
OREResourcelistTriples in interface OREResourcelistTriples in class OREResourceJenaOREExceptionpublic void initialise(URI uri) throws OREException
AggregatedResourcehttp://, ftp://
and so on.initialise in interface AggregatedResourceuri - the URI to initialise on; must be protocol-basedOREExceptionpublic List<URI> getAggregations() throws OREException
AggregatedResourceAggregation to
which this resource belongs in the current model, use AggregatedResource.getAggregation()getAggregations in interface AggregatedResourceOREExceptionpublic void setAggregations(List<URI> aggregations)
AggregatedResourceAggregatedResource.getAggregation() and included
in the list of responses to AggregatedResource.getAggregations().setAggregations in interface AggregatedResourcepublic void addAggregation(URI aggregation)
AggregatedResourceaddAggregation in interface AggregatedResourcepublic void clearAggregations()
AggregatedResourceAggregatedResource.getAggregation() and included
in the list of responses to AggregatedResource.getAggregations().clearAggregations in interface AggregatedResourcepublic Aggregation getAggregation() throws OREException
AggregatedResource
AggregatedResource ar = OREFactory.createAggregatedResource(uri_ar);
Aggregation agg = OREFactory.createAggregation(uri_a);
agg.addAggregatedResource(ar);
Or by creating the resource directly from the parent:
Aggregation agg = OREFactory.createAggregation(uri_a);
AggregatedResource ar = agg.createAggregatedResource(uri_ar);
The resource is not limited to knowing about only one aggregation that it is
a member of. To see other aggregations that the resource knows about, use
AggregatedResource.getAggregations()getAggregation in interface AggregatedResourceOREExceptionpublic void setTypes(List<URI> types)
OREResourcesetTypes in interface OREResourcesetTypes in class OREResourceJenapublic void clearTypes()
OREResourceclearTypes in interface OREResourceclearTypes in class OREResourceJenapublic List<URI> getResourceMaps() throws OREException
AggregatedResourcegetResourceMaps in interface AggregatedResourceOREExceptionpublic void setResourceMaps(List<URI> rems) throws OREException
AggregatedResourcesetResourceMaps in interface AggregatedResourceOREExceptionpublic void addResourceMap(URI rem) throws OREException
AggregatedResourceaddResourceMap in interface AggregatedResourceOREExceptionpublic void clearResourceMaps()
throws OREException
AggregatedResourceclearResourceMaps in interface AggregatedResourceOREExceptionpublic boolean hasProxy()
throws OREException
AggregatedResourcehasProxy in interface AggregatedResourceOREExceptionpublic Proxy getProxy() throws OREException
AggregatedResourceAggregatedResource.hasProxy()).
If the AggregatedResource has not yet been added to an Aggregation, it
cannot have a proxy.getProxy in interface AggregatedResourceOREExceptionpublic Proxy createProxy(URI proxyURI) throws OREException
AggregatedResourcecreateProxy in interface AggregatedResourceOREExceptionpublic Vocab getOREType() throws OREException
OREResourcegetOREType in interface OREResourceOREExceptionCopyright © 2020. All rights reserved.