|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.semanticweb.owl.util.OWLManager
A manager for factories of OWL Ontologies. This is the central class for getting access to OWLOntology implementations and thereby to OWLOntologies.
| Field Summary | |
static int |
CAPABILITY_ALWAYS_SAVED
Capability specifying that model is always saved. |
static int |
CAPABILITY_SUPPORTS_NOTIFICATIONS
Capability specifying that model supports notifications. |
static int |
CAPABILITY_SUPPORTS_OPTIMIZED_LOADING
Capability specifying that model supports optimized loading. |
static String |
OWL_CONNECTION
Parameter specifying the OI-model connection class. |
protected static Class[] |
OWL_CONNECTION_PARAMETERS
Type specifier for our constructors. |
protected static List |
s_logicalURIResolvers
The list of registered logical URI resolvers. |
static Map |
s_parametersAPIOnRDF
The parameters for the RDF connections. |
protected static Map |
s_physicalURIToDefaultParametersResolvers
The map of registered physical URI resolvers. |
| Constructor Summary | |
OWLManager()
|
|
| Method Summary | |
static boolean |
canUseConnectionForParameters(OWLConnection connection,
Map parameters)
Checks if supplied connection can be used for opening a model with given parameters. |
static Map |
getDefaultParametersForPhysicalURI(String physicalURI,
Map contextParameters)
Returns the default parameters for given physical URI. |
static OWLConnection |
getOWLConnection()
Returns a default implementation of connection which is determined at run time by the following methods: 1. |
static OWLConnection |
getOWLConnection(Map parameters)
Returns a factory to use for given parameters. |
static void |
registerLogicalURIResolver(LogicalURIResolver resolver)
Registers a logical URI resolver. |
static void |
registerPhysicalURIToDefaultParametersResolver(PhysicalURIToDefaultParametersResolver resolver)
Registers a resolver from physical URI to default parameters. |
static void |
registerPhysicalURIToDefaultParametersResolver(String resolverClassName)
Registers a resolver from physical URI to default parameters by its class name. |
static void |
registerWellKnownRDFOntology(URI wellKnownOIModelPhysicalURI)
Reegisters a well-known RDF OI-model. |
protected static void |
registerWellKnownRDFOntologyEx(URI wellKnownOIModelPhysicalURI)
A private version of the method that ignores the exception. |
static OWLOntology |
resolveLogicalURI(OWLConnection OWLConnection,
URI logicalURI)
Tries to resolve a logical URI for the connection. |
static void |
startOWLImplementation(String connectionClassName)
Starts the OWL API implementation with given name. |
static void |
unregisterLogicalURIResolver(LogicalURIResolver resolver)
Unregisters a logical URI resolver. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CAPABILITY_ALWAYS_SAVED
public static final int CAPABILITY_SUPPORTS_OPTIMIZED_LOADING
public static final int CAPABILITY_SUPPORTS_NOTIFICATIONS
public static final String OWL_CONNECTION
protected static final Class[] OWL_CONNECTION_PARAMETERS
public static final Map s_parametersAPIOnRDF
protected static final Map s_physicalURIToDefaultParametersResolvers
protected static final List s_logicalURIResolvers
| Constructor Detail |
public OWLManager()
| Method Detail |
public static void startOWLImplementation(String connectionClassName)
throws OWLException
connectionClassName - the name of the KAON Connection class
OWLException - thrown if the implementation cannot be started
public static OWLConnection getOWLConnection(Map parameters)
throws OWLException
parameters - parameters specifying the class
OWLException - thrown if parameters are incorrect
public static OWLConnection getOWLConnection()
throws OWLException
org.semanticweb.owl.impl.model.OWLConnectionImpl.
OWLException
public static Map getDefaultParametersForPhysicalURI(String physicalURI,
Map contextParameters)
throws OWLException
physicalURI - the physical URIcontextParameters - the parameters that are used for missing elements (may be null)
null)
OWLException - thrown if givan physical URI cannot be accessedpublic static void registerPhysicalURIToDefaultParametersResolver(PhysicalURIToDefaultParametersResolver resolver)
resolver - the resolver
public static void registerPhysicalURIToDefaultParametersResolver(String resolverClassName)
throws OWLException
resolverClassName - the name of the resolver class
OWLException - thrown if resolver cannot be registered
public static OWLOntology resolveLogicalURI(OWLConnection OWLConnection,
URI logicalURI)
throws OWLException
OWLConnection - the connectionlogicalURI - the logical URI
null if logical URI cannot be resolved)
OWLException - thrown if there is an errorpublic static void registerLogicalURIResolver(LogicalURIResolver resolver)
resolver - the resolverpublic static void unregisterLogicalURIResolver(LogicalURIResolver resolver)
resolver - the resolver
public static void registerWellKnownRDFOntology(URI wellKnownOIModelPhysicalURI)
throws OWLException
wellKnownOIModelPhysicalURI - the physical URI of the well-known model
OWLException - thrown if there is an error
public static boolean canUseConnectionForParameters(OWLConnection connection,
Map parameters)
connection - the connection that is checked if it can be reusedparameters - the parameters that are checked
true if the supplied connection can be reused for given parametersprotected static void registerWellKnownRDFOntologyEx(URI wellKnownOIModelPhysicalURI)
wellKnownOIModelPhysicalURI - the physical URI of the well-known model
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||