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.OREExceptionList<Triple> listTriples() throws OREException
OREExceptionList<Triple> listTriples(TripleSelector selector) throws OREException
selector - OREExceptionList<Triple> listAllTriples() throws OREException
OREExceptionList<Triple> listAllTriples(TripleSelector selector) throws OREException
selector - OREExceptionvoid addTriples(List<Triple> relationships) throws OREException
relationships - OREExceptionvoid addTriple(Triple relationship) throws OREException
relationship - OREExceptionvoid removeTriple(Triple triple) throws OREException
triple - OREExceptionTriple createTriple(Predicate pred, URI uri) throws OREException
pred - uri - OREExceptionTriple createTriple(Predicate pred, Object literal) throws OREException
.toString() method or another method
as per the implementation.pred - literal - OREExceptionTriple createTriple(URI pred, URI uri) throws OREException
pred - uri - OREExceptionTriple createTriple(URI pred, Object literal) throws OREException
pred - literal - OREExceptionTriple createTriple(Vocab pred, URI uri) throws OREException
pred - uri - OREExceptionTriple createTriple(Vocab pred, Object literal) throws OREException
pred - literal - OREExceptionVocab getOREType() throws OREException
OREExceptionList<URI> getTypes() throws OREException
OREExceptionvoid setTypes(List<URI> types) throws OREException
types - OREExceptionvoid addType(URI type) throws OREException
type - OREExceptionvoid clearTypes()
throws OREException
OREExceptionvoid empty()
throws OREException
OREExceptionvoid detach()
throws OREException
OREExceptionvoid addCreator(Agent creator)
void clearCreators()
List<Agent> getAgents(URI relationship) throws OREException
OREExceptionvoid setAgents(List<URI> relationship, Agent agent) throws OREException
OREExceptionvoid addAgent(URI relationship, Agent agent) throws OREException
OREExceptionvoid clearAgents(URI relationship) throws OREException
OREExceptionvoid addRDF(String rdf, String format) throws OREException
OREExceptionCopyright © 2020. All rights reserved.