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, setResource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAgent, addCreator, addRDF, addTriple, addTriples, addType, clearAgents, clearCreators, createTriple, createTriple, createTriple, createTriple, createTriple, createTriple, getAgents, getCreators, getTypes, getURI, listAllTriples, listAllTriples, listTriples, removeTriple, setAgents, setCreators
public void empty()
OREResource
empty
in interface OREResource
empty
in class OREResourceJena
public void detach() throws OREException
OREResource
detach
in interface OREResource
detach
in class OREResourceJena
OREException
public List<Triple> listTriples(TripleSelector selector) throws OREException
OREResource
listTriples
in interface OREResource
listTriples
in class OREResourceJena
OREException
public void initialise(URI uri) throws OREException
AggregatedResource
http://
, ftp://
and so on.initialise
in interface AggregatedResource
uri
- the URI to initialise on; must be protocol-basedOREException
public List<URI> getAggregations() throws OREException
AggregatedResource
Aggregation
to
which this resource belongs in the current model, use AggregatedResource.getAggregation()
getAggregations
in interface AggregatedResource
OREException
public void setAggregations(List<URI> aggregations)
AggregatedResource
AggregatedResource.getAggregation()
and included
in the list of responses to AggregatedResource.getAggregations()
.setAggregations
in interface AggregatedResource
public void addAggregation(URI aggregation)
AggregatedResource
addAggregation
in interface AggregatedResource
public void clearAggregations()
AggregatedResource
AggregatedResource.getAggregation()
and included
in the list of responses to AggregatedResource.getAggregations()
.clearAggregations
in interface AggregatedResource
public 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 AggregatedResource
OREException
public void setTypes(List<URI> types)
OREResource
setTypes
in interface OREResource
setTypes
in class OREResourceJena
public void clearTypes()
OREResource
clearTypes
in interface OREResource
clearTypes
in class OREResourceJena
public List<URI> getResourceMaps() throws OREException
AggregatedResource
getResourceMaps
in interface AggregatedResource
OREException
public void setResourceMaps(List<URI> rems) throws OREException
AggregatedResource
setResourceMaps
in interface AggregatedResource
OREException
public void addResourceMap(URI rem) throws OREException
AggregatedResource
addResourceMap
in interface AggregatedResource
OREException
public void clearResourceMaps() throws OREException
AggregatedResource
clearResourceMaps
in interface AggregatedResource
OREException
public boolean hasProxy() throws OREException
AggregatedResource
hasProxy
in interface AggregatedResource
OREException
public Proxy getProxy() throws OREException
AggregatedResource
AggregatedResource.hasProxy()
).
If the AggregatedResource has not yet been added to an Aggregation, it
cannot have a proxy.getProxy
in interface AggregatedResource
OREException
public Proxy createProxy(URI proxyURI) throws OREException
AggregatedResource
createProxy
in interface AggregatedResource
OREException
public Vocab getOREType() throws OREException
OREResource
getOREType
in interface OREResource
OREException
Copyright © 2020. All rights reserved.