org.rddl
Interface Container
- All Superinterfaces:
- Namespace
- All Known Implementing Classes:
- AbstractContainer
- public interface Container
- extends Namespace
A Container extends the Namespace interface adding methods to contain
URIs and to add resources to the collection.
getResourceFromURI
public Resource getResourceFromURI(java.lang.String uri)
- Lookup resource given URI.
- Parameters:
uri - The URI reference associated with a resource in the collection.- Returns:
- A resource.
getResourcesFromURIRange
public java.util.SortedMap getResourcesFromURIRange(java.lang.String uri0,
java.lang.String uri1)
- Resources in a collection are ordered. This method selects a set of resources associated with a given range of URI references.
- Parameters:
uri0 - The starting URI of the rangeuri1 - The ending URI of the range- Returns:
- A collection of resources
addResource
public void addResource(Resource r)
- Add a resource to the collection
- Parameters:
r - The resource to add