incubator-stanbol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From enrid...@apache.org
Subject svn commit: r1087671 [1/13] - in /incubator/stanbol/trunk/ontologymanager: ./ ontonet/ ontonet/.settings/ ontonet/src/ ontonet/src/main/ ontonet/src/main/java/ ontonet/src/main/java/org/ ontonet/src/main/java/org/apache/ ontonet/src/main/java/org/apach...
Date Fri, 01 Apr 2011 12:08:31 GMT
Author: enridaga
Date: Fri Apr  1 12:08:25 2011
New Revision: 1087671

URL: http://svn.apache.org/viewvc?rev=1087671&view=rev
Log:
STANBOL-137 \Adding the ontologymanager module

Added:
    incubator/stanbol/trunk/ontologymanager/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/.classpath
    incubator/stanbol/trunk/ontologymanager/ontonet/.project
    incubator/stanbol/trunk/ontologymanager/ontonet/.settings/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/.settings/org.eclipse.jdt.core.prefs
    incubator/stanbol/trunk/ontologymanager/ontonet/.settings/org.eclipse.m2e.core.prefs
    incubator/stanbol/trunk/ontologymanager/ontonet/.settings/org.maven.ide.eclipse.prefs
    incubator/stanbol/trunk/ontologymanager/ontonet/pom.xml
    incubator/stanbol/trunk/ontologymanager/ontonet/src/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/DuplicateIDException.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ONManager.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/OWLDuplicateSafeLoader.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/AbstractOntologyInputSource.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/BlankOntologySource.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/OntologyInputSource.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/RootOntologyIRISource.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/RootOntologySource.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/ScopeOntologySource.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/CoreOntologySpace.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/CustomOntologySpace.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/IrremovableOntologyException.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/MissingOntologyException.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/NoSuchScopeException.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/OntologyIndex.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/OntologyScope.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/OntologyScopeFactory.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/OntologySpace.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/OntologySpaceEvent.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/OntologySpaceFactory.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/OntologySpaceListener.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/OntologySpaceModificationException.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/ScopeEventListenable.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/ScopeEventListener.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/ScopeOntologyListenable.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/ScopeOntologyListener.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/ScopeRegistry.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/SessionOntologySpace.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/SpaceType.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/UnmodifiableOntologySpaceException.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/registry/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/registry/RegistryLoader.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/registry/io/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/registry/io/IRIRegistrySource.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/registry/io/XDRegistrySource.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/registry/models/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/registry/models/AbstractRegistryItem.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/registry/models/Registry.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/registry/models/RegistryContentException.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/registry/models/RegistryItem.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/registry/models/RegistryLibrary.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/registry/models/RegistryOntology.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/session/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/session/DuplicateSessionIDException.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/session/NonReferenceableSessionException.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/session/Session.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/session/SessionEvent.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/session/SessionIDGenerator.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/session/SessionListenable.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/session/SessionListener.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/session/SessionManager.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/Activator.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/ConfigurationManagement.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/ONManagerImpl.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/io/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/io/ClerezzaOntologyStorage.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/io/InMemoryOntologyStorage.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/io/OntologyRegistryIRISource.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/ontology/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/ontology/AbstractOntologySpaceImpl.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/ontology/CoreOntologySpaceImpl.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/ontology/CustomOntologySpaceImpl.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/ontology/NoSuchStoreException.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/ontology/OntologyIndexImpl.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/ontology/OntologyScopeFactoryImpl.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/ontology/OntologyScopeImpl.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/ontology/OntologySpaceFactoryImpl.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/ontology/ScopeRegistryImpl.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/ontology/SessionOntologySpaceImpl.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/registry/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/registry/cache/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/registry/cache/ODPRegistryCacheException.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/registry/cache/ODPRegistryCacheManager.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/registry/cache/URIUnresolvableException.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/registry/model/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/registry/model/impl/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/registry/model/impl/RegistryLoaderImpl.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/renderers/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/renderers/ScopeSetRenderer.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/renderers/SessionRenderer.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/session/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/session/ScopeSessionSynchronizer.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/session/SessionImpl.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/session/SessionManagerImpl.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/session/TimestampedSessionIDGenerator.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/util/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/util/OntologyConstants.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/util/OntologyLoaderPrinter.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/util/OntologyUtils.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/impl/util/StringUtils.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/xd/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/xd/lang/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/xd/lang/Language.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/xd/utils/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/xd/utils/RDFSLabelGetter.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/xd/utils/XDAction.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/xd/vocabulary/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/xd/vocabulary/CODOVocabulary.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/xd/vocabulary/Vocabulary.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/resources/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/resources/META-INF/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/resources/META-INF/conf/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/resources/META-INF/conf/catalog.xml
    incubator/stanbol/trunk/ontologymanager/ontonet/src/main/resources/META-INF/conf/onm.owl
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/apache/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/apache/stanbol/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/apache/stanbol/ontologymanager/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/apache/stanbol/ontologymanager/ontonet/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/apache/stanbol/ontologymanager/ontonet/Constants.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/apache/stanbol/ontologymanager/ontonet/Namespace.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/apache/stanbol/ontologymanager/ontonet/StructureTest.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/apache/stanbol/ontologymanager/ontonet/ontology/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/apache/stanbol/ontologymanager/ontonet/ontology/TestIndexing.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/apache/stanbol/ontologymanager/ontonet/ontology/TestOntologyScope.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/apache/stanbol/ontologymanager/ontonet/ontology/TestOntologySpaces.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/apache/stanbol/ontologymanager/ontonet/registry/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/apache/stanbol/ontologymanager/ontonet/registry/TestRegistry.java
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/apache/stanbol/ontologymanager/ontonet/session/   (with props)
    incubator/stanbol/trunk/ontologymanager/ontonet/src/test/java/org/apache/stanbol/ontologymanager/ontonet/session/TestSessions.java
    incubator/stanbol/trunk/ontologymanager/pom.xml
    incubator/stanbol/trunk/ontologymanager/web/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/.classpath
    incubator/stanbol/trunk/ontologymanager/web/.project
    incubator/stanbol/trunk/ontologymanager/web/pom.xml
    incubator/stanbol/trunk/ontologymanager/web/src/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/web/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/web/JerseyEndpoint.java
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/web/JerseyEndpointApplication.java
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/web/JettyServer.java
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/web/resources/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/web/resources/GraphsResource.java
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/web/resources/ONMOntResource.java
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/web/resources/ONMRootResource.java
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/web/resources/ONMScopeOntologyResource.java
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/web/resources/ONMScopeResource.java
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/web/resources/SessionIDResource.java
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/web/resources/SessionResource.java
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/web/util/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/java/org/apache/stanbol/ontologymanager/web/util/OntologyRenderUtils.java
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/add.gif   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/addRule.gif   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/ajax-loader.gif   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/anonymous_48.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/black_gear_128.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/black_gear_16.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/caos_puzzle.jpg   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/compass_48.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/compass_map_48.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/configure.gif   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/delete.gif   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/download.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/download_rdf.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/external.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/favicon-black.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/favicon-sw.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/favicon.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/fise_logo_cropped.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/fise_logo_white.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/fise_logo_white_small.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/foldable_folded.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/foldable_unfolded.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/header_bg.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/iks_project_logo.jpg   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/kresLogo.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/kresLogoExtended.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/loading.gif   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/next.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/organization_48.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/previous.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/rdf.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/rdf_flyer.64.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/rdf_flyer_16.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/rdf_flyer_24.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/rules.gif   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/stlabLogo.jpg   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/stlabLogo.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/sw-cube.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/user_48.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/user_group_48.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/images/wikipedia_w_16.png   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/jit-yc.js
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/jit.js
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/jquery-1.4.2.js
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/jquery.rdfquery.core-1.0.js
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/json2.js
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/jsonToTurtle.js
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/kres.js
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/prettify/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/prettify/kres.css
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/prettify/prettify.css
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/prettify/prettify.js
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/scout.js
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/tinybox.js
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/style/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/style/fise.css
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/style/images/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/style/images/date-bottom.gif   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/style/images/date-top.gif   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/style/images/footer.jpg   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/style/images/frontphoto.jpg   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/style/images/header.jpg   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/style/images/wrapbg.gif   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/style/kres.css
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/style/kress.css
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/ajax/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/ajax/contentitem.ftl
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/imports/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/imports/common.ftl
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/imports/contentitem.ftl
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/imports/entities.ftl
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/imports/kres.ftl
    incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/imports/sparql.ftl
    incubator/stanbol/trunk/ontologymanager/web/src/test/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/test/java/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/test/java/org/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/test/java/org/apache/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/test/java/org/apache/stanbol/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/test/java/org/apache/stanbol/ontologymanager/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/test/java/org/apache/stanbol/ontologymanager/web/   (with props)
    incubator/stanbol/trunk/ontologymanager/web/src/test/java/org/apache/stanbol/ontologymanager/web/JettyServerTest.java

Propchange: incubator/stanbol/trunk/ontologymanager/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  1 12:08:25 2011
@@ -0,0 +1 @@
+target

Propchange: incubator/stanbol/trunk/ontologymanager/ontonet/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  1 12:08:25 2011
@@ -0,0 +1 @@
+target

Added: incubator/stanbol/trunk/ontologymanager/ontonet/.classpath
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/.classpath?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/.classpath (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/.classpath Fri Apr  1 12:08:25 2011
@@ -0,0 +1,39 @@
+<classpath>
+  <classpathentry kind="src" path="src/test/java" output="target/test-classes" including="**/*.java"/>
+  <classpathentry kind="src" path="src/main/java" including="**/*.java"/>
+  <classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
+  <classpathentry kind="output" path="target/classes"/>
+  <classpathentry kind="var" path="M2_REPO/javax/activation/activation/1.1/activation-1.1.jar" sourcepath="M2_REPO/javax/activation/activation/1.1/activation-1.1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/httpcomponents/httpcore/4.0/httpcore-4.0.jar" sourcepath="M2_REPO/org/apache/httpcomponents/httpcore/4.0/httpcore-4.0-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/com/ibm/icu/icu4j/3.4.4/icu4j-3.4.4.jar" sourcepath="M2_REPO/com/ibm/icu/icu4j/3.4.4/icu4j-3.4.4-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/com/hp/hpl/jena/iri/0.7/iri-0.7.jar" sourcepath="M2_REPO/com/hp/hpl/jena/iri/0.7/iri-0.7-sources.jar">
+    <attributes>
+      <attribute value="jar:file:/home/x-marley/.m2/repository/com/hp/hpl/jena/iri/0.7/iri-0.7-javadoc.jar!/" name="javadoc_location"/>
+    </attributes>
+  </classpathentry>
+  <classpathentry kind="var" path="M2_REPO/com/hp/hpl/jena/jena/2.6.2/jena-2.6.2.jar" sourcepath="M2_REPO/com/hp/hpl/jena/jena/2.6.2/jena-2.6.2-sources.jar">
+    <attributes>
+      <attribute value="jar:file:/home/x-marley/.m2/repository/com/hp/hpl/jena/jena/2.6.2/jena-2.6.2-javadoc.jar!/" name="javadoc_location"/>
+    </attributes>
+  </classpathentry>
+  <classpathentry kind="var" path="M2_REPO/junit/junit/4.4/junit-4.4.jar" sourcepath="M2_REPO/junit/junit/4.4/junit-4.4-sources.jar">
+    <attributes>
+      <attribute value="jar:file:/home/x-marley/.m2/repository/junit/junit/4.4/junit-4.4-javadoc.jar!/" name="javadoc_location"/>
+    </attributes>
+  </classpathentry>
+  <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13.jar" sourcepath="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/clerezza/org.apache.clerezza.rdf.core/0.12-incubating-SNAPSHOT/org.apache.clerezza.rdf.core-0.12-incubating-SNAPSHOT.jar" sourcepath="M2_REPO/org/apache/clerezza/org.apache.clerezza.rdf.core/0.12-incubating-SNAPSHOT/org.apache.clerezza.rdf.core-0.12-incubating-SNAPSHOT-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/clerezza/org.apache.clerezza.utils/0.1-incubating-SNAPSHOT/org.apache.clerezza.utils-0.1-incubating-SNAPSHOT.jar" sourcepath="M2_REPO/org/apache/clerezza/org.apache.clerezza.utils/0.1-incubating-SNAPSHOT/org.apache.clerezza.utils-0.1-incubating-SNAPSHOT-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/felix/org.apache.felix.scr.annotations/1.2.0/org.apache.felix.scr.annotations-1.2.0.jar" sourcepath="M2_REPO/org/apache/felix/org.apache.felix.scr.annotations/1.2.0/org.apache.felix.scr.annotations-1.2.0-sources.jar"/>
+  <classpathentry kind="src" path="/org.apache.stanbol.owlapi"/>
+  <classpathentry kind="var" path="M2_REPO/org/osgi/org.osgi.compendium/4.1.0/org.osgi.compendium-4.1.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/felix/org.osgi.core/1.4.0/org.osgi.core-1.4.0.jar" sourcepath="M2_REPO/org/apache/felix/org.osgi.core/1.4.0/org.osgi.core-1.4.0-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/owlapi/owlapi/3.0.0/owlapi-3.0.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.5.2/slf4j-api-1.5.2.jar" sourcepath="M2_REPO/org/slf4j/slf4j-api/1.5.2/slf4j-api-1.5.2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.5.2/slf4j-log4j12-1.5.2.jar" sourcepath="M2_REPO/org/slf4j/slf4j-log4j12/1.5.2/slf4j-log4j12-1.5.2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/wymiwyg/wymiwyg-commons-core/0.7.5/wymiwyg-commons-core-0.7.5.jar" sourcepath="M2_REPO/org/wymiwyg/wymiwyg-commons-core/0.7.5/wymiwyg-commons-core-0.7.5-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/xerces/xercesImpl/2.7.1/xercesImpl-2.7.1.jar"/>
+  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+</classpath>
\ No newline at end of file

Added: incubator/stanbol/trunk/ontologymanager/ontonet/.project
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/.project?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/.project (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/.project Fri Apr  1 12:08:25 2011
@@ -0,0 +1,25 @@
+<projectDescription>
+  <name>org.apache.stanbol.ontologymanager.ontonet</name>
+  <comment>A controlled environment for managing ontologies and ontology
+	    networks and user sessions managing them. NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>
+  <projects>
+    <project>org.apache.stanbol.owlapi</project>
+  </projects>
+  <buildSpec>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+    </buildCommand>
+    <buildCommand>
+      <name>org.maven.ide.eclipse.maven2Builder</name>
+    </buildCommand>
+    <buildCommand>
+      <name>org.eclipse.m2e.core.maven2Builder</name>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>org.eclipse.pde.PluginNature</nature>
+    <nature>org.eclipse.m2e.core.maven2Nature</nature>
+    <nature>org.maven.ide.eclipse.maven2Nature</nature>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+  </natures>
+</projectDescription>
\ No newline at end of file

Propchange: incubator/stanbol/trunk/ontologymanager/ontonet/.settings/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  1 12:08:25 2011
@@ -0,0 +1 @@
+target

Added: incubator/stanbol/trunk/ontologymanager/ontonet/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/.settings/org.eclipse.jdt.core.prefs?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/.settings/org.eclipse.jdt.core.prefs (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/.settings/org.eclipse.jdt.core.prefs Fri Apr  1 12:08:25 2011
@@ -0,0 +1,6 @@
+#Fri Mar 18 11:28:57 CET 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.6

Added: incubator/stanbol/trunk/ontologymanager/ontonet/.settings/org.eclipse.m2e.core.prefs
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/.settings/org.eclipse.m2e.core.prefs?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/.settings/org.eclipse.m2e.core.prefs (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/.settings/org.eclipse.m2e.core.prefs Fri Apr  1 12:08:25 2011
@@ -0,0 +1,5 @@
+#Wed Mar 23 17:37:15 GMT 2011
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1

Added: incubator/stanbol/trunk/ontologymanager/ontonet/.settings/org.maven.ide.eclipse.prefs
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/.settings/org.maven.ide.eclipse.prefs?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/.settings/org.maven.ide.eclipse.prefs (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/.settings/org.maven.ide.eclipse.prefs Fri Apr  1 12:08:25 2011
@@ -0,0 +1,9 @@
+#Thu Mar 17 16:08:38 CET 2011
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+includeModules=false
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1

Added: incubator/stanbol/trunk/ontologymanager/ontonet/pom.xml
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/pom.xml?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/pom.xml (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/pom.xml Fri Apr  1 12:08:25 2011
@@ -0,0 +1,210 @@
+<?xml version="1.0" encoding="UTF-8"?>
+	<!--
+		Licensed to the Apache Software Foundation (ASF) under one or more
+		contributor license agreements. See the NOTICE file distributed with
+		this work for additional information regarding copyright ownership.
+		The ASF licenses this file to You under the Apache License, Version
+		2.0 (the "License"); you may not use this file except in compliance
+		with the License. You may obtain a copy of the License at
+
+		http://www.apache.org/licenses/LICENSE-2.0 Unless required by
+		applicable law or agreed to in writing, software distributed under the
+		License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+		CONDITIONS OF ANY KIND, either express or implied. See the License for
+		the specific language governing permissions and limitations under the
+		License.
+	-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<groupId>org.apache.stanbol</groupId>
+		<artifactId>stanbol-parent</artifactId>
+		<version>${stanbol-version}</version>
+		<relativePath>../../parent</relativePath>
+	</parent>
+
+	<groupId>org.apache.stanbol</groupId>
+	<artifactId>org.apache.stanbol.ontologymanager.ontonet</artifactId>
+	<packaging>bundle</packaging>
+	<version>${stanbol-version}</version>
+
+	<name>Apache Stanbol Ontology Network Manager</name>
+	<description>
+		A controlled environment for managing ontologies and ontology
+	    networks and user sessions managing them.
+	</description>
+
+	<inceptionYear>2010</inceptionYear>
+
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.felix</groupId>
+				<artifactId>maven-bundle-plugin</artifactId>
+				<extensions>true</extensions>
+				<configuration>
+					<instructions>
+						<Bundle-ClassPath>
+							.,
+							OSGI-INF
+						</Bundle-ClassPath>
+						<Bundle-Activator>
+							org.apache.stanbol.ontologymanager.ontonet.impl.Activator
+						</Bundle-Activator>
+						<Export-Package>
+							org.apache.stanbol.ontologymanager.ontonet.*;version=${stanbol-version}
+	          			</Export-Package>
+						<Import-Package>
+							com.hp.hpl.jena.ontology,
+							com.hp.hpl.jena.util,
+							com.hp.hpl.jena.rdf.model,
+							javax.xml.namespace,
+							javax.xml.parsers,
+							javax.xml.xpath,
+							org.apache.clerezza.rdf.core.*,
+							org.slf4j,
+							org.w3c.dom,
+							org.xml.sax,
+							org.osgi.*,
+							org.semanticweb.owlapi.*,
+							org.slf4j.*;version=1.5.2,
+							*
+            			</Import-Package>
+						<Private-Package>
+							org.apache.stanbol.ontologymanager.ontonet.xd.*
+						</Private-Package>
+						<_nouses>true</_nouses>
+					</instructions>
+				</configuration>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.felix</groupId>
+				<artifactId>maven-scr-plugin</artifactId>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<configuration>
+					<source>1.6</source>
+					<target>1.6</target>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+
+
+	<dependencies>
+
+		<!-- OSGi deps -->
+		<dependency>
+			<groupId>org.osgi</groupId>
+			<artifactId>org.osgi.core</artifactId>
+			<version>4.1.0</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.osgi</groupId>
+			<artifactId>org.osgi.compendium</artifactId>
+			<version>4.1.0</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.felix</groupId>
+			<artifactId>org.apache.felix.scr.annotations</artifactId>
+			<version>1.2.0</version>
+			<scope>provided</scope>
+		</dependency>
+
+		<!-- OWL deps -->
+		<dependency>
+			<groupId>owlapi</groupId>
+			<artifactId>owlapi</artifactId>
+			<version>3.0.0</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>com.hp.hpl.jena</groupId>
+			<artifactId>jena</artifactId>
+			<version>2.6.2</version>
+			<scope>provided</scope>
+			<!--
+			<exclusions>
+				<exclusion>
+					<artifactId>slf4j-log4j12</artifactId>
+					<groupId>org.slf4j</groupId>
+				</exclusion>
+			</exclusions>
+			-->
+		</dependency>
+
+		<!-- Stanbol deps -->
+		<dependency>
+			<groupId>org.apache.stanbol</groupId>
+			<artifactId>org.apache.stanbol.owl</artifactId>
+			<version>${stanbol-version}</version>
+		</dependency>
+		<!--
+			<dependency> <groupId>org.apache.stanbol</groupId>
+			<artifactId>org.apache.stanbol.ontologymanager.store</artifactId>
+			<version>${stanbol-version}</version> </dependency>
+		-->
+
+		<!-- Persistence deps -->
+		<dependency>
+			<groupId>org.apache.clerezza</groupId>
+			<artifactId>org.apache.clerezza.rdf.core</artifactId>
+			<version>0.12-incubating-SNAPSHOT</version>
+			<scope>provided</scope>
+		</dependency>
+
+		<!-- Diagnostics deps -->
+		<dependency>
+			<groupId>org.slf4j</groupId>
+			<artifactId>slf4j-api</artifactId>
+			<version>1.5.2</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.slf4j</groupId>
+			<artifactId>slf4j-log4j12</artifactId>
+			<version>1.5.2</version>
+			<scope>provided</scope>
+		</dependency>
+
+		<!-- Testing deps -->
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>4.4</version>
+			<scope>test</scope>
+		</dependency>
+
+	</dependencies>
+
+	<repositories>
+		<repository>
+			<id>stlab-cnr-repo</id>
+			<url>http://stlab.istc.cnr.it/software/maven/repo</url>
+		</repository>
+		<repository>
+			<id>com.hp.hpl.jena</id>
+			<name>jena maven repository</name>
+			<releases>
+				<updatePolicy>interval:60</updatePolicy>
+				<checksumPolicy>warn</checksumPolicy>
+			</releases>
+			<url>http://openjena.org/repo</url>
+			<layout>default</layout>
+		</repository>
+		<!-- needed for jersey -->
+		<repository>
+			<id>maven2-repository.dev.java.net</id>
+			<name>Java.net Repository for Maven</name>
+			<url>http://download.java.net/maven/2/</url>
+		</repository>
+	</repositories>
+
+</project>

Propchange: incubator/stanbol/trunk/ontologymanager/ontonet/src/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  1 12:08:25 2011
@@ -0,0 +1 @@
+target

Propchange: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  1 12:08:25 2011
@@ -0,0 +1 @@
+target

Propchange: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  1 12:08:25 2011
@@ -0,0 +1 @@
+target

Propchange: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  1 12:08:25 2011
@@ -0,0 +1 @@
+target

Propchange: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  1 12:08:25 2011
@@ -0,0 +1 @@
+target

Propchange: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  1 12:08:25 2011
@@ -0,0 +1 @@
+target

Propchange: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  1 12:08:25 2011
@@ -0,0 +1 @@
+target

Propchange: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  1 12:08:25 2011
@@ -0,0 +1 @@
+target

Propchange: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  1 12:08:25 2011
@@ -0,0 +1 @@
+target

Added: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/DuplicateIDException.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/DuplicateIDException.java?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/DuplicateIDException.java (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/DuplicateIDException.java Fri Apr  1 12:08:25 2011
@@ -0,0 +1,71 @@
+package org.apache.stanbol.ontologymanager.ontonet.api;
+
+import org.semanticweb.owlapi.model.IRI;
+
+/**
+ * Indicates an attempt to illegally create a resource by assigning it an IRI
+ * that already identifies another known resource. This exception typically
+ * results in the new resource not being created at all.<br>
+ * <br>
+ * This exception can be subclassed for managing specific resource type-based
+ * behaviour (e.g. scopes, spaces or sessions).
+ * 
+ * @author alessandro
+ * 
+ */
+public class DuplicateIDException extends Exception {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 802959772682427494L;
+
+	protected IRI dupe;
+
+	/**
+	 * Returns the IRI that identifies the existing resource. This can be use to
+	 * obtain the resource itself by passing it onto appropriate managers.
+	 * 
+	 * @return the duplicate identifier
+	 */
+	public IRI getDulicateID() {
+		return dupe;
+	}
+
+	/**
+	 * Creates a new instance of DuplicateIDException.
+	 * 
+	 * @param dupe
+	 *            the duplicate ID.
+	 */
+	public DuplicateIDException(IRI dupe) {
+		this.dupe = dupe;
+	}
+
+	/**
+	 * Creates a new instance of DuplicateIDException.
+	 * 
+	 * @param dupe
+	 *            the duplicate ID.
+	 * @param message
+	 *            the detail message.
+	 */
+	public DuplicateIDException(IRI dupe, String message) {
+		super(message);
+		this.dupe = dupe;
+	}
+
+	/**
+	 * Creates a new instance of DuplicateIDException.
+	 * 
+	 * @param dupe
+	 *            the duplicate ID.
+	 * @param cause
+	 *            the throwable that caused this exception to be thrown.
+	 */
+	public DuplicateIDException(IRI dupe, Throwable cause) {
+		this(dupe);
+		initCause(cause);
+	}
+
+}

Added: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ONManager.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ONManager.java?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ONManager.java (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ONManager.java Fri Apr  1 12:08:25 2011
@@ -0,0 +1,107 @@
+package org.apache.stanbol.ontologymanager.ontonet.api;
+
+import org.apache.stanbol.ontologymanager.ontonet.api.ontology.OntologyIndex;
+import org.apache.stanbol.ontologymanager.ontonet.api.ontology.OntologyScopeFactory;
+import org.apache.stanbol.ontologymanager.ontonet.api.ontology.OntologySpaceFactory;
+import org.apache.stanbol.ontologymanager.ontonet.api.ontology.ScopeRegistry;
+import org.apache.stanbol.ontologymanager.ontonet.api.registry.RegistryLoader;
+import org.apache.stanbol.ontologymanager.ontonet.api.session.SessionManager;
+import org.apache.stanbol.ontologymanager.ontonet.impl.io.ClerezzaOntologyStorage;
+import org.semanticweb.owlapi.model.OWLDataFactory;
+import org.semanticweb.owlapi.model.OWLOntologyAlreadyExistsException;
+import org.semanticweb.owlapi.model.OWLOntologyManager;
+
+
+/**
+ * A KReS Ontology Network Manager.
+ * 
+ * @author andrea.nuzzolese
+ * 
+ */
+public interface ONManager {
+
+	/**
+	 * Returns the default object that automatically indexes ontologies as they
+	 * are loaded within scopes.
+	 * 
+	 * @return the default ontology index.
+	 */
+	public OntologyIndex getOntologyIndex();
+
+	/**
+	 * Returns the ontology scope factory that was created along with the
+	 * manager context.
+	 * 
+	 * @return the default ontology scope factory
+	 */
+	public OntologyScopeFactory getOntologyScopeFactory();
+
+	/**
+	 * Returns the ontology space factory that was created along with the
+	 * manager context.
+	 * 
+	 * @return the default ontology space factory.
+	 */
+	public OntologySpaceFactory getOntologySpaceFactory();
+
+	/**
+	 * Returns the default ontology storage system for this KReS instance.
+	 * 
+	 * @return the default ontology store.
+	 */
+	public ClerezzaOntologyStorage getOntologyStore();
+
+	/**
+	 * Returns an OWL Ontology Manager that is never cleared of its ontologies,
+	 * so it can be used for caching ontologies without having to reload them
+	 * using other managers. It is sufficient to catch
+	 * {@link OWLOntologyAlreadyExistsException}s and obtain the ontology with
+	 * that same ID from this manager.
+	 * 
+	 * @return the OWL Ontology Manager used for caching ontologies.
+	 */
+	public OWLOntologyManager getOwlCacheManager();
+
+	/**
+	 * Returns a factory object that can be used for obtaining OWL API objects.
+	 * 
+	 * @return the default OWL data factory
+	 */
+	public OWLDataFactory getOwlFactory();
+
+	/**
+	 * Returns the default ontology registry loader.
+	 * 
+	 * @return the default ontology registry loader.
+	 */
+	public RegistryLoader getRegistryLoader();
+
+	/**
+	 * Returns the unique ontology scope registry for this context.
+	 * 
+	 * @return the ontology scope registry.
+	 */
+	public ScopeRegistry getScopeRegistry();
+
+	/**
+	 * Returns the unique KReS session manager for this context.
+	 * 
+	 * @return the KreS session manager.
+	 */
+	public SessionManager getSessionManager();
+
+	/**
+	 * Returns the list of IRIs that identify scopes that should be activated on
+	 * startup, <i>if they exist</i>.
+	 * 
+	 * @return the list of scope IDs to activate.
+	 */
+	public String[] getUrisToActivate();
+	
+	/**
+	 * Returns the String that represent the namespace used by KReS for its ontologies
+	 * 
+	 * @return the namespace of KReS.
+	 */
+	public String getKReSNamespace();
+}

Added: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/OWLDuplicateSafeLoader.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/OWLDuplicateSafeLoader.java?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/OWLDuplicateSafeLoader.java (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/OWLDuplicateSafeLoader.java Fri Apr  1 12:08:25 2011
@@ -0,0 +1,132 @@
+package org.apache.stanbol.ontologymanager.ontonet.api;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
+import org.semanticweb.owlapi.model.IRI;
+import org.semanticweb.owlapi.model.MissingImportEvent;
+import org.semanticweb.owlapi.model.MissingImportListener;
+import org.semanticweb.owlapi.model.OWLOntology;
+import org.semanticweb.owlapi.model.OWLOntologyCreationException;
+import org.semanticweb.owlapi.model.OWLOntologyDocumentAlreadyExistsException;
+import org.semanticweb.owlapi.model.OWLOntologyManager;
+
+/**
+ * <p>
+ * This class is intended to manage the OWLOntologyAlreadyExistsException when it is thrown
+ * by the OWLOntologyManager as a missing import event.</p>
+ * 
+ * <p>The OWLOntologyAlreadyExistsException sometimes 
+ * occurs while loading ontologies from the owl:import statement. In some
+ * cases, duplicate import statements in the ontology network will fail when you want to
+ * do not tolerate missing imports. </p>
+ * 
+ * <p>See this scenario: if you set silent missing
+ * import handling to true in the OWLOntologyManager, then the manager will
+ * tolerate this unsuccesful tries, but you will not be sure that you have all
+ * the ontologies you need. If you set silent missing import handling to false,
+ * then the loading of the network will fail if there are duplicate owl:import
+ * statements in different places.</p>
+ * 
+ * @author enrico daga
+ * 
+ */
+public class OWLDuplicateSafeLoader {
+	/**
+	 * <p>
+	 * This is the central method that execute the loading.
+	 * The OWLOntologyManager method internally used is loadOntology().
+	 * The original state of the manager (silent missing import handling) is restored
+	 * after the operation.
+	 * If the operation fails, an exception is thrown.
+	 * Elsewhere, the OWLOntology instance is returned.
+	 * </p>
+	 * 
+	 * @param manager - an OWLOntologyManager
+	 * @param location - a string uri to load from  
+	 * @return ontology - the OWLOntology object
+	 */
+	public synchronized OWLOntology load(OWLOntologyManager manager,
+			String location) throws OWLOntologyCreationException {
+		/**
+		 * We save the state of the passed manager
+		 */
+		boolean stateImportsHandling = manager.isSilentMissingImportsHandling();
+
+		/**
+		 * We set the silent missing imports handling to true. (We want to
+		 * manage this without considering duplicated import statements)
+		 */
+		manager.setSilentMissingImportsHandling(true);
+		
+		/**
+		 * we first create a set to save any missing uri as string
+		 */
+		final Set<String> missing = new HashSet<String>();
+		/**
+		 * We setup our missing import listener
+		 */
+		MissingImportListener missingImportListener = new MissingImportListener() {
+			@Override
+			public void importMissing(MissingImportEvent arg0) {
+				if (arg0.getCreationException() instanceof OWLOntologyDocumentAlreadyExistsException) {
+					// Simply do not consider already existent ontologies as
+					// missing imports
+				} else
+					missing.add(arg0.getImportedOntologyURI().toString());
+			}
+		};
+		/**
+		 * Then we add the import listener, which will remember all the missed
+		 * uris
+		 */
+		manager.addMissingImportListener(missingImportListener);
+		
+		OWLOntology owlontology=null;
+		
+		/**
+		 * We do the actual loading. Now, if some exception occurs we return it,
+		 * since the missing import is the one we are interested to control.
+		 */
+		try {
+			owlontology=manager.loadOntology(IRI.create(location));
+		} catch (OWLOntologyCreationException e) {
+			throw e;
+		}
+		
+		/**
+		 * Now we re-set the original state of the manager
+		 */
+		manager.setSilentMissingImportsHandling(stateImportsHandling);
+		manager.removeMissingImportListener(missingImportListener);
+		
+		/**
+		 * Now - this is the key part - we remove from the list of not available
+		 * ontologies the document uris which have been alredy loaded (of course
+		 * after this method clients can overwrite such ontology document
+		 * location)
+		 */
+		for (OWLOntology o : manager.getOntologies()) {
+			String miss = manager.getOntologyDocumentIRI(o).toString();
+			missing.remove(miss);
+		}
+		/**
+		 * Are there any missing imports?
+		 */
+		int missingImports = missing.size();
+		
+		/**
+		 * If yes, throw an exception!
+		 */
+		if (missingImports != 0) {
+			String[] missuris = new String[missing.size()];
+			missuris = missing.toArray(missuris);
+			throw new OWLOntologyCreationException(
+					"There are missing imports: " + Arrays.toString(missuris));
+		}
+		/**
+		 * If no, just return the filled ontology manager.
+		 */
+		return owlontology;
+	}
+}

Propchange: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  1 12:08:25 2011
@@ -0,0 +1 @@
+target

Added: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/AbstractOntologyInputSource.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/AbstractOntologyInputSource.java?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/AbstractOntologyInputSource.java (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/AbstractOntologyInputSource.java Fri Apr  1 12:08:25 2011
@@ -0,0 +1,77 @@
+package org.apache.stanbol.ontologymanager.ontonet.api.io;
+
+import org.semanticweb.owlapi.model.IRI;
+import org.semanticweb.owlapi.model.OWLOntology;
+
+
+/**
+ * Abstract implementation of {@link OntologyInputSource} with the basic methods
+ * for obtaining root ontologies and their physical IRIs where applicable.
+ * 
+ * @author alessandro
+ * 
+ */
+public abstract class AbstractOntologyInputSource implements
+		OntologyInputSource {
+
+	protected IRI physicalIri = null;
+
+	protected OWLOntology rootOntology = null;
+
+	/*
+	 * (non-Javadoc)
+	 * @see java.lang.Object#equals(java.lang.Object)
+	 */
+	@Override
+	public boolean equals(Object obj) {
+		if (!(obj instanceof OntologyInputSource))
+			return false;
+		OntologyInputSource src = (OntologyInputSource) obj;
+		return this.physicalIri.equals(src.getPhysicalIRI())
+				&& this.rootOntology.equals(src.getRootOntology());
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see eu.iksproject.kres.api.manager.ontology.OntologyInputSource#getPhysicalIRI()
+	 */
+	@Override
+	public IRI getPhysicalIRI() {
+		return physicalIri;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see eu.iksproject.kres.api.manager.ontology.OntologyInputSource#getRootOntology()
+	 */
+	@Override
+	public OWLOntology getRootOntology() {
+		return rootOntology;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see eu.iksproject.kres.api.manager.ontology.OntologyInputSource#hasPhysicalIRI()
+	 */
+	@Override
+	public boolean hasPhysicalIRI() {
+		return physicalIri != null;
+	}
+	
+	/*
+	 * (non-Javadoc)
+	 * @see eu.iksproject.kres.api.manager.ontology.OntologyInputSource#hasRootOntology()
+	 */
+	@Override
+	public boolean hasRootOntology() {
+		return rootOntology != null;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see java.lang.Object#toString()
+	 */
+	@Override
+	public abstract String toString();
+
+}

Added: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/BlankOntologySource.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/BlankOntologySource.java?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/BlankOntologySource.java (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/BlankOntologySource.java Fri Apr  1 12:08:25 2011
@@ -0,0 +1,29 @@
+package org.apache.stanbol.ontologymanager.ontonet.api.io;
+
+import org.semanticweb.owlapi.apibinding.OWLManager;
+import org.semanticweb.owlapi.model.OWLOntologyCreationException;
+import org.semanticweb.owlapi.model.OWLOntologyManager;
+
+/**
+ * A utility input source that contains an unnamed, empty ontology.
+ * 
+ * @author alessandro
+ *
+ */
+public class BlankOntologySource extends AbstractOntologyInputSource {
+
+	public BlankOntologySource() {
+		OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
+		try {
+			this.rootOntology = manager.createOntology();
+		} catch (OWLOntologyCreationException e) {
+			this.rootOntology = null;
+		}
+	}
+
+	@Override
+	public String toString() {
+		return "";
+	}
+
+}

Added: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/OntologyInputSource.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/OntologyInputSource.java?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/OntologyInputSource.java (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/OntologyInputSource.java Fri Apr  1 12:08:25 2011
@@ -0,0 +1,63 @@
+package org.apache.stanbol.ontologymanager.ontonet.api.io;
+
+import org.semanticweb.owlapi.model.IRI;
+import org.semanticweb.owlapi.model.OWLOntology;
+
+/**
+ * An ontology input source provides a point for loading an ontology. Currently
+ * it provides two ways of obtaining an ontology document:
+ * 
+ * <ol>
+ * <li>From an OWLOntology.
+ * <li>By dereferencing an physical IRI.
+ * </ol>
+ * 
+ * Consumers that use an ontology input source will attempt to obtain a concrete
+ * representation of an ontology in the above order. Implementations of this
+ * interface may try to dereference the IRI internally and just provide the
+ * OWLOntology, or directly provide the physical IRI for other classes to
+ * dereference. Implementations should allow multiple attempts at loading an
+ * ontology.
+ * 
+ * @author alessandro
+ * 
+ */
+public interface OntologyInputSource {
+
+	/**
+	 * Returns the IRI by dereferencing which it should be possible to obtain
+	 * the ontology. This method is supposed to return null if the ontology
+	 * lives in-memory and was not or is not going to be stored publicly.
+	 * 
+	 * @return the physical location for this ontology source, or null if
+	 *         unknown.
+	 */
+	public IRI getPhysicalIRI();
+
+	/**
+	 * Returns the OWL Ontology that imports the whole ontology network
+	 * addressed by this input source.
+	 * 
+	 * @return the ontology network root.
+	 */
+	public OWLOntology getRootOntology();
+
+	/**
+	 * Determines if a physical IRI is known for this ontology source. Note that
+	 * an anonymous ontology may have been fetched from a physical location,
+	 * just as a named ontology may have been stored in memory and have no
+	 * physical location.
+	 * 
+	 * @return true if a physical location is known for this ontology source.
+	 */
+	public boolean hasPhysicalIRI();
+
+	/**
+	 * Determines if a root ontology that imports the entire network is
+	 * available.
+	 * 
+	 * @return true if a root ontology is available, false otherwise.
+	 */
+	public boolean hasRootOntology();
+
+}

Added: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/RootOntologyIRISource.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/RootOntologyIRISource.java?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/RootOntologyIRISource.java (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/RootOntologyIRISource.java Fri Apr  1 12:08:25 2011
@@ -0,0 +1,42 @@
+package org.apache.stanbol.ontologymanager.ontonet.api.io;
+
+import org.semanticweb.owlapi.apibinding.OWLManager;
+import org.semanticweb.owlapi.model.IRI;
+import org.semanticweb.owlapi.model.OWLOntologyCreationException;
+import org.semanticweb.owlapi.model.OWLOntologyManager;
+
+/**
+ * An input source that provides the OWL Ontology loaded from the supplied
+ * physical IRI, as well as the physical IRI itself for consumers that need to
+ * load the ontology themselves.<br>
+ * <br>
+ * For convenience, an existing OWL ontology manager can be supplied for loading
+ * the ontology.
+ * 
+ * @author alessandro
+ * 
+ */
+public class RootOntologyIRISource extends AbstractOntologyInputSource {
+
+	public RootOntologyIRISource(IRI rootPhysicalIri)
+			throws OWLOntologyCreationException {
+		this(rootPhysicalIri, OWLManager.createOWLOntologyManager());
+	}
+
+	public RootOntologyIRISource(IRI rootPhysicalIri, OWLOntologyManager manager)
+			throws OWLOntologyCreationException {
+		physicalIri = rootPhysicalIri;
+		rootOntology = manager
+				.loadOntologyFromOntologyDocument(rootPhysicalIri);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see eu.iksproject.kres.manager.io.AbstractOntologyInputSource#toString()
+	 */
+	@Override
+	public String toString() {
+		return "ROOT_ONT_IRI<" + getPhysicalIRI() + ">";
+	}
+
+}

Added: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/RootOntologySource.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/RootOntologySource.java?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/RootOntologySource.java (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/RootOntologySource.java Fri Apr  1 12:08:25 2011
@@ -0,0 +1,41 @@
+package org.apache.stanbol.ontologymanager.ontonet.api.io;
+
+import org.semanticweb.owlapi.model.IRI;
+import org.semanticweb.owlapi.model.OWLOntology;
+
+/**
+ * An input source that provides the supplied OWL ontology straight away. The
+ * physical IRI is either obtained from the default document IRI in the
+ * ontology, or supplied manually using the appropriate constructor (e.g.
+ * retrieved from the ontology manager that actually loaded the ontology).
+ * 
+ * @author alessandro
+ * 
+ */
+public class RootOntologySource extends AbstractOntologyInputSource {
+
+	public RootOntologySource(OWLOntology rootOntology) {
+		this.rootOntology = rootOntology;
+		try {
+			physicalIri = rootOntology.getOntologyID().getDefaultDocumentIRI();
+		} catch (Exception e) {
+			// Ontology might be anonymous, no physical IRI then...
+		}
+
+	}
+
+	public RootOntologySource(OWLOntology rootOntology, IRI phyicalIRI) {
+		this.rootOntology = rootOntology;
+		this.physicalIri = phyicalIRI;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see eu.iksproject.kres.manager.io.AbstractOntologyInputSource#toString()
+	 */
+	@Override
+	public String toString() {
+		return "ROOT_ONT<" + rootOntology.getOntologyID() + ">";
+	}
+
+}

Added: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/ScopeOntologySource.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/ScopeOntologySource.java?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/ScopeOntologySource.java (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/io/ScopeOntologySource.java Fri Apr  1 12:08:25 2011
@@ -0,0 +1,31 @@
+package org.apache.stanbol.ontologymanager.ontonet.api.io;
+
+import org.semanticweb.owlapi.model.IRI;
+import org.semanticweb.owlapi.model.OWLOntology;
+import org.slf4j.LoggerFactory;
+
+/**
+ * An ontology source that rewrites the physical IRI by appending the logical
+ * one to the scope ID. If the ontology is anonymous, the original physical IRI
+ * is retained.
+ * 
+ * @author alessandro
+ * 
+ */
+public class ScopeOntologySource extends AbstractOntologyInputSource {
+
+	public ScopeOntologySource(IRI scopeIri, OWLOntology ontology, IRI origin) {
+		rootOntology = ontology;
+		LoggerFactory.getLogger(ScopeOntologySource.class).debug(
+				"[KReS] :: REWRITING " + origin + " TO " + scopeIri + "/"
+						+ ontology.getOntologyID().getOntologyIRI());
+		physicalIri = !ontology.isAnonymous() ? IRI.create(scopeIri + "/"
+				+ ontology.getOntologyID().getOntologyIRI()) : origin;
+	}
+
+	@Override
+	public String toString() {
+		return "SCOPE_ONT_IRI<" + getPhysicalIRI() + ">";
+	}
+
+}

Propchange: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  1 12:08:25 2011
@@ -0,0 +1 @@
+target

Added: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/CoreOntologySpace.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/CoreOntologySpace.java?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/CoreOntologySpace.java (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/CoreOntologySpace.java Fri Apr  1 12:08:25 2011
@@ -0,0 +1,13 @@
+package org.apache.stanbol.ontologymanager.ontonet.api.ontology;
+
+/**
+ * A core space represents a minimal set of readonly, immutable ontologies for
+ * modeling a given scope. For example, it may define metamodels or essential
+ * concepts and rules in a domain.
+ * 
+ * @author alessandro
+ * 
+ */
+public interface CoreOntologySpace extends OntologySpace {
+
+}

Added: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/CustomOntologySpace.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/CustomOntologySpace.java?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/CustomOntologySpace.java (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/CustomOntologySpace.java Fri Apr  1 12:08:25 2011
@@ -0,0 +1,39 @@
+package org.apache.stanbol.ontologymanager.ontonet.api.ontology;
+
+/**
+ * An ontology space that wraps the components that can be customized by CMS
+ * developers, IKS customizers and the like. The custom ontology space becomes
+ * read-only after bootstrapping (i.e. after a call to <code>setUp()</code>).
+ * 
+ * The ontologies in a custom space typically depend on those in the core space.
+ * However, a custom space does <i>not</i> know which is the core space, it only
+ * imports its ontologies. The core-custom-session relationship between spaces
+ * is a scope is handled by external objects.
+ * 
+ * @author alessandro
+ * 
+ */
+public interface CustomOntologySpace extends OntologySpace {
+
+	/**
+	 * Logically links this custom space with the supplied core ontology space,
+	 * so that the top ontology in the former will import those in the latter.<br>
+	 * <br>
+	 * This relationship is expected to hold at all times once the space is
+	 * active, however the method to set it is available in case implementations
+	 * require to perform other operations between the creation of ontology
+	 * spaces and their linking.
+	 * 
+	 * @param coreSpace
+	 *            the core ontology space to be linked
+	 * @param skipRoot
+	 *            if true, the custom root ontology will not import the core
+	 *            root ontology straight away, but instead all of its axioms and
+	 *            import statements will be copied. Useful for implementations
+	 *            that construct root ontologies in memory but do not store
+	 *            them.
+	 */
+	public void attachCoreSpace(CoreOntologySpace coreSpace, boolean skipRoot)
+			throws UnmodifiableOntologySpaceException;
+
+}

Added: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/IrremovableOntologyException.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/IrremovableOntologyException.java?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/IrremovableOntologyException.java (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/IrremovableOntologyException.java Fri Apr  1 12:08:25 2011
@@ -0,0 +1,45 @@
+package org.apache.stanbol.ontologymanager.ontonet.api.ontology;
+
+import org.semanticweb.owlapi.model.IRI;
+
+/**
+ * Thrown whenever an illegal attempt at removing an ontology from an ontology
+ * space is detected. This can happen e.g. if the ontology is the space root or
+ * not a direct child thereof.
+ * 
+ * @author alessandro
+ * 
+ */
+public class IrremovableOntologyException extends
+		OntologySpaceModificationException {
+
+	protected IRI ontologyId;
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = -3301398666369788964L;
+
+	/**
+	 * Constructs a new instance of <code>IrremovableOntologyException</code>.
+	 * 
+	 * @param space
+	 *            the space that holds the ontology.
+	 * @param ontologyId
+	 *            the logical IRI of the ontology whose removal was denied.
+	 */
+	public IrremovableOntologyException(OntologySpace space, IRI ontologyId) {
+		super(space);
+		this.ontologyId = ontologyId;
+	}
+
+	/**
+	 * Returns the unique identifier of the ontology whose removal was denied.
+	 * 
+	 * @return the ID of the ontology that was not removed.
+	 */
+	public IRI getOntologyId() {
+		return ontologyId;
+	}
+
+}

Added: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/MissingOntologyException.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/MissingOntologyException.java?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/MissingOntologyException.java (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/MissingOntologyException.java Fri Apr  1 12:08:25 2011
@@ -0,0 +1,36 @@
+package org.apache.stanbol.ontologymanager.ontonet.api.ontology;
+
+import org.semanticweb.owlapi.model.IRI;
+
+/**
+ * Thrown whenever an attempt to modify an ontology within an ontology space
+ * that does not contain it is detected.
+ * 
+ * @author alessandro
+ * 
+ */
+public class MissingOntologyException extends
+		OntologySpaceModificationException {
+
+	public MissingOntologyException(OntologySpace space, IRI ontologyId) {
+		super(space);
+		this.ontologyId = ontologyId;
+	}
+
+	/**
+	 * Returns the unique identifier of the ontology whose removal was denied.
+	 * 
+	 * @return the ID of the ontology that was not removed.
+	 */
+	public IRI getOntologyId() {
+		return ontologyId;
+	}
+
+	protected IRI ontologyId;
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = -3449667155191079302L;
+
+}

Added: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/NoSuchScopeException.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/NoSuchScopeException.java?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/NoSuchScopeException.java (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/NoSuchScopeException.java Fri Apr  1 12:08:25 2011
@@ -0,0 +1,29 @@
+package org.apache.stanbol.ontologymanager.ontonet.api.ontology;
+
+import org.semanticweb.owlapi.model.IRI;
+
+/**
+ * Thrown whenever an operation on a scope that has not been registered is
+ * thrown.
+ * 
+ * @author alessandro
+ * 
+ */
+public class NoSuchScopeException extends RuntimeException {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 6339531579406287445L;
+
+	private IRI scopeID = null;
+
+	public NoSuchScopeException(IRI scopeID) {
+		this.scopeID = scopeID;
+	}
+
+	public IRI getScopeId() {
+		return scopeID;
+	}
+
+}

Added: incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/OntologyIndex.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/OntologyIndex.java?rev=1087671&view=auto
==============================================================================
--- incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/OntologyIndex.java (added)
+++ incubator/stanbol/trunk/ontologymanager/ontonet/src/main/java/org/apache/stanbol/ontologymanager/ontonet/api/ontology/OntologyIndex.java Fri Apr  1 12:08:25 2011
@@ -0,0 +1,61 @@
+package org.apache.stanbol.ontologymanager.ontonet.api.ontology;
+
+import java.util.Set;
+
+import org.semanticweb.owlapi.model.IRI;
+import org.semanticweb.owlapi.model.OWLOntology;
+
+/**
+ * Provides an interface to the ontologies provided by registered scopes in the
+ * ontology manager.
+ * 
+ * @author alessandro
+ * 
+ */
+public interface OntologyIndex extends ScopeOntologyListener,
+		ScopeEventListener {
+
+	/**
+	 * Returns an ontology having the specified IRI as its identifier, or null
+	 * if no such ontology is indexed.<br>
+	 * <br>
+	 * Which ontology is returned in case more ontologies with this IRI are
+	 * registered in different scopes is at the discretion of implementors.
+	 * 
+	 * @param ontologyIri
+	 * @return
+	 */
+	public OWLOntology getOntology(IRI ontologyIri);
+
+	/**
+	 * Returns the ontology loaded within an ontology scope having the specified
+	 * IRI as its identifier, or null if no such ontology is loaded in that
+	 * scope.
+	 * 
+	 * @param ontologyIri
+	 * @return
+	 */
+	public OWLOntology getOntology(IRI ontologyIri, IRI scopeId);
+
+	/**
+	 * Returns the set of ontology scopes where an ontology with the specified
+	 * IRI is registered in either their core spaces or their custom spaces.
+	 * Optionally, session spaces can be queried as well.
+	 * 
+	 * @param ontologyIri
+	 * @param includingSessionSpaces
+	 * @return
+	 */
+	public Set<IRI> getReferencingScopes(IRI ontologyIri,
+			boolean includingSessionSpaces);
+
+	/**
+	 * Determines if an ontology with the specified identifier is loaded within
+	 * some registered ontology scope.
+	 * 
+	 * @param ontologyIri
+	 * @return
+	 */
+	public boolean isOntologyLoaded(IRI ontologyIri);
+
+}



Mime
View raw message