public interface OREResource
Agent
,
AggregatedResource
,
Aggregation
,
Proxy
,
ResourceMap
Modifier and Type | Method and Description |
---|---|
void |
addAgent(URI relationship,
Agent agent) |
void |
addCreator(Agent creator) |
void |
addRDF(String rdf,
String format) |
void |
addTriple(Triple relationship)
Add the given triple to the current graph.
|
void |
addTriples(List<Triple> relationships)
Add the list of triples to the current graph.
|
void |
addType(URI type)
Add the given type URI to the resource
|
void |
clearAgents(URI relationship) |
void |
clearCreators() |
void |
clearTypes()
Remove all the types associated with this resource.
|
Triple |
createTriple(Predicate pred,
Object literal)
Create a triple with the given predicate on the given literal.
|
Triple |
createTriple(Predicate pred,
URI uri)
Create a triple with the given predicate on the given URI
|
Triple |
createTriple(URI pred,
Object literal)
Create a triple using the given URI for the predicate and the given
literal for the subject.
|
Triple |
createTriple(URI pred,
URI uri)
Create a triple using the given URI for the predicate and the given
URI for the subject.
|
Triple |
createTriple(Vocab pred,
Object literal)
Create a triple using the given Vocab enum element as the source of the
prdicate, and the given Object as a literal.
|
Triple |
createTriple(Vocab pred,
URI uri)
Create a triple using the given Vocab enum element as the source of the
predicate, and the given URI for the subject.
|
void |
detach()
Detach the current object from the current model.
|
void |
empty()
Remove everyting inside the object, but leave the object itself
in existence.
|
List<Agent> |
getAgents(URI relationship) |
List<Agent> |
getCreators() |
Vocab |
getOREType()
Get the Vocab element which refers to the ORE type that this object
is.
|
List<URI> |
getTypes()
Get a list of the types associated with this resource.
|
URI |
getURI()
Get the URI representing the resource
|
List<Triple> |
listAllTriples()
List all triples associated with the whole ORE graph as known about by
the resource in its current environment.
|
List<Triple> |
listAllTriples(TripleSelector selector)
List all triples associated with the whole ORE graph as known about by
the resource in its current environment, which match the selection
criteria
|
List<Triple> |
listTriples()
List all of the triples directly descended from the resource type.
|
List<Triple> |
listTriples(TripleSelector selector)
List all the triples directly descended from the resource type which match
the selection criteria.
|
void |
removeTriple(Triple triple)
Remove the given triple from the current graph.
|
void |
setAgents(List<URI> relationship,
Agent agent) |
void |
setCreators(List<Agent> creators) |
void |
setTypes(List<URI> types)
Set the list of types associated with this resource.
|
URI getURI() throws OREException
null
if not.OREException
List<Triple> listTriples() throws OREException
OREException
List<Triple> listTriples(TripleSelector selector) throws OREException
selector
- OREException
List<Triple> listAllTriples() throws OREException
OREException
List<Triple> listAllTriples(TripleSelector selector) throws OREException
selector
- OREException
void addTriples(List<Triple> relationships) throws OREException
relationships
- OREException
void addTriple(Triple relationship) throws OREException
relationship
- OREException
void removeTriple(Triple triple) throws OREException
triple
- OREException
Triple createTriple(Predicate pred, URI uri) throws OREException
pred
- uri
- OREException
Triple createTriple(Predicate pred, Object literal) throws OREException
.toString()
method or another method
as per the implementation.pred
- literal
- OREException
Triple createTriple(URI pred, URI uri) throws OREException
pred
- uri
- OREException
Triple createTriple(URI pred, Object literal) throws OREException
pred
- literal
- OREException
Triple createTriple(Vocab pred, URI uri) throws OREException
pred
- uri
- OREException
Triple createTriple(Vocab pred, Object literal) throws OREException
pred
- literal
- OREException
Vocab getOREType() throws OREException
OREException
List<URI> getTypes() throws OREException
OREException
void setTypes(List<URI> types) throws OREException
types
- OREException
void addType(URI type) throws OREException
type
- OREException
void clearTypes() throws OREException
OREException
void empty() throws OREException
OREException
void detach() throws OREException
OREException
void addCreator(Agent creator)
void clearCreators()
List<Agent> getAgents(URI relationship) throws OREException
OREException
void setAgents(List<URI> relationship, Agent agent) throws OREException
OREException
void addAgent(URI relationship, Agent agent) throws OREException
OREException
void clearAgents(URI relationship) throws OREException
OREException
void addRDF(String rdf, String format) throws OREException
OREException
Copyright © 2020. All rights reserved.