All Packages Class Hierarchy This Package Previous Next Index
Interface org.ginf.SchemaRegistry
- public interface SchemaRegistry
Schema registry is used to manage run-time schema information.
It also defines the vocabulary used in the RDF schema specification.
-
add(String, Model)
- Adds the schema model to the schema registry.
-
addKnown(String)
- Adds a schema URI to the list of known URIs.
-
addLoader(SchemaLoader)
- Adds a new schema loader
-
contains(String)
- Tests if the registry contains schema located at the given URI.
-
containsLoader(SchemaLoader)
- Tests whether contains loader
-
fetch(InputSource)
- A default method to load schemas from an InputSource
source.getSystemId() = schema URI
-
fetch(String)
- A callback method which is supposed to be invoked
by RDFMS (parser/serializer) when it
encounteres an unknown schema.
-
get()
- Gets the complete schema information available
in a single model.
-
get(String)
- Gets the model of the schema located at URI.
-
isKnown(String)
- Tests if the URI of the schema is known.
-
knownSchemas()
- Lists all known schemas
-
loaders()
- Lists all registered loaders
-
remove(String)
- Removes a schema model out of the registry.
-
removeKnown(String)
- Removes schema URI from the list of known schemas.
-
removeLoader(SchemaLoader)
- Removes schema loader
isKnown
public abstract boolean isKnown(String uri)
- Tests if the URI of the schema is known.
"Known" = do not try to fetch
addKnown
public abstract void addKnown(String uri)
- Adds a schema URI to the list of known URIs.
If a schema URI is known no implicit attempt will be made
to fetch it. However, it still can be fetched on request.
removeKnown
public abstract void removeKnown(String uri)
- Removes schema URI from the list of known schemas.
knownSchemas
public abstract Enumeration knownSchemas()
- Lists all known schemas
contains
public abstract boolean contains(String uri)
- Tests if the registry contains schema located at the given URI.
add
public abstract void add(String uri,
Model schema)
- Adds the schema model to the schema registry.
addLoader
public abstract void addLoader(SchemaLoader loader)
- Adds a new schema loader
removeLoader
public abstract void removeLoader(SchemaLoader loader)
- Removes schema loader
containsLoader
public abstract boolean containsLoader(SchemaLoader loader)
- Tests whether contains loader
loaders
public abstract Enumeration loaders()
- Lists all registered loaders
remove
public abstract void remove(String uri)
- Removes a schema model out of the registry.
get
public abstract Model get(String uri)
- Gets the model of the schema located at URI.
get
public abstract Model get()
- Gets the complete schema information available
in a single model.
fetch
public abstract void fetch(String uri)
- A callback method which is supposed to be invoked
by RDFMS (parser/serializer) when it
encounteres an unknown schema.
fetch
public abstract void fetch(InputSource source)
- A default method to load schemas from an InputSource
source.getSystemId() = schema URI
All Packages Class Hierarchy This Package Previous Next Index