public interface AggregatedResource extends OREResource
OREResource interface, so also
includes all general ORE graph functionality.OREResource| 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
|
Proxy |
createProxy(URI proxyURI)
Create a proxy representing this AggregatedResource in the context of the
Aggregation it is currently part of.
|
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.
|
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.
|
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
|
addAgent, addCreator, addRDF, addTriple, addTriples, addType, clearAgents, clearCreators, clearTypes, createTriple, createTriple, createTriple, createTriple, createTriple, createTriple, detach, empty, getAgents, getCreators, getOREType, getTypes, getURI, listAllTriples, listAllTriples, listTriples, listTriples, removeTriple, setAgents, setCreators, setTypesvoid initialise(URI uri) throws OREException
http://, ftp://
and so on.uri - the URI to initialise on; must be protocol-basedOREExceptionList<URI> getAggregations() throws OREException
Aggregation to
which this resource belongs in the current model, use getAggregation()OREExceptionvoid setAggregations(List<URI> aggregations) throws OREException
getAggregation() and included
in the list of responses to getAggregations().aggregations - OREExceptionvoid addAggregation(URI aggregation) throws OREException
aggregation - OREExceptionvoid clearAggregations()
throws OREException
getAggregation() and included
in the list of responses to getAggregations().OREExceptionAggregation getAggregation() throws OREException
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
getAggregations()OREExceptionList<URI> getResourceMaps() throws OREException
OREExceptionvoid setResourceMaps(List<URI> rems) throws OREException
rems - OREExceptionvoid addResourceMap(URI rem) throws OREException
rem - OREExceptionvoid clearResourceMaps()
throws OREException
OREExceptionboolean hasProxy()
throws OREException
OREExceptionProxy getProxy() throws OREException
hasProxy()).
If the AggregatedResource has not yet been added to an Aggregation, it
cannot have a proxy.OREExceptionProxy createProxy(URI proxyURI) throws OREException
proxyURI - OREExceptionCopyright © 2020. All rights reserved.