2ronwalf// The MIT License
2ronwalf//
2ronwalf// Copyright (c) 2004 Evren Sirin
2ronwalf//
2ronwalf// Permission is hereby granted, free of charge, to any person obtaining a copy
2ronwalf// of this software and associated documentation files (the "Software"), to
2ronwalf// deal in the Software without restriction, including without limitation the
2ronwalf// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
2ronwalf// sell copies of the Software, and to permit persons to whom the Software is
2ronwalf// furnished to do so, subject to the following conditions:
2ronwalf//
2ronwalf// The above copyright notice and this permission notice shall be included in
2ronwalf// all copies or substantial portions of the Software.
2ronwalf//
2ronwalf// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2ronwalf// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2ronwalf// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2ronwalf// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2ronwalf// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2ronwalf// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2ronwalf// IN THE SOFTWARE.
2ronwalf
2ronwalfpackage org.mindswap.owls;
2ronwalf
2ronwalfimport impl.owls.OWLSFactoryImpl;
2ronwalf
2ronwalfimport java.net.URI;
2ronwalfimport java.util.Map;
2ronwalf
2ronwalfimport org.mindswap.owl.OWLFactory;
2ronwalfimport org.mindswap.owls.process.execution.ProcessExecutionEngine;
2ronwalfimport org.mindswap.owls.process.execution.ThreadedProcessExecutionEngine;
2ronwalfimport org.mindswap.query.ValueMap;
2ronwalf
2ronwalf/**
2ronwalf * @author Evren Sirin
2ronwalf *
2ronwalf */
2ronwalfpublic class OWLSFactory extends OWLSListFactory {
2ronwalf public interface Interface {
2ronwalf public String getVersion();
2ronwalf
2ronwalf public Map getDefaultConverters();
2ronwalf
2ronwalf public ProcessExecutionEngine createExecutionEngine();
2ronwalf
2ronwalf // added by Michael Daenzer
2ronwalf public ThreadedProcessExecutionEngine createThreadedExecutionEngine();
2ronwalf // end added by Michael Daenzer
2ronwalf
2ronwalf public OWLSVersionTranslator createVersionTranslator();
2ronwalf
2ronwalf public OWLSVersionTranslator createVersionTranslator(String version);
2ronwalf }
2ronwalf
2ronwalf private static OWLSFactory.Interface factory = new OWLSFactoryImpl();
2ronwalf
2ronwalf public static String getVersion() {
2ronwalf return factory.getVersion();
2ronwalf }
2ronwalf
2ronwalf public static ProcessExecutionEngine createExecutionEngine() {
2ronwalf return factory.createExecutionEngine();
2ronwalf }
2ronwalf
2ronwalf // added by Michael Daenzer
2ronwalf /**
2ronwalf * Returns an instance of the <code>ThreadedProcessExecutionEngine</code> to perform multiple
2ronwalf * process executions multithreaded.
2ronwalf */
2ronwalf public static ThreadedProcessExecutionEngine createThreadedExecutionEngine() {
2ronwalf return factory.createThreadedExecutionEngine();
2ronwalf }
2ronwalf // end added by Michael Daenzer
2ronwalf
2ronwalf /**
2ronwalf * @return
2ronwalf */
2ronwalf public static OWLSVersionTranslator createVersionTranslator() {
2ronwalf return factory.createVersionTranslator();
2ronwalf }
2ronwalf
2ronwalf /**
2ronwalf * @param version
2ronwalf * @return
2ronwalf */
2ronwalf public static OWLSVersionTranslator createVersionTranslator(String version) {
2ronwalf return factory.createVersionTranslator(version);
2ronwalf }
2ronwalf
2ronwalf /**
2ronwalf * @deprecated Use OWLFactory.createKB() instead
2ronwalf */
2ronwalf public static OWLSKnowledgeBase createKB() {
2ronwalf return (OWLSKnowledgeBase) OWLFactory.createKB();
2ronwalf }
2ronwalf
2ronwalf /**
2ronwalf * @deprecated Use OWLFactory.createOntology() instead
2ronwalf */
2ronwalf public static OWLSOntology createOntology() {
2ronwalf return (OWLSOntology) OWLFactory.createOntology();
2ronwalf }
2ronwalf
2ronwalf /**
2ronwalf * @deprecated Use OWLFactory.createOntology(URI) instead
2ronwalf */
2ronwalf public static OWLSOntology createOntology(URI uri) {
2ronwalf return (OWLSOntology) OWLFactory.createOntology(uri);
2ronwalf }
2ronwalf
2ronwalf public static Map getDefaultConverters() {
2ronwalf return factory.getDefaultConverters();
2ronwalf }
2ronwalf
2ronwalf /**
2ronwalf * @deprecated Use new ValueMap() to create a ValueMap
2ronwalf */
2ronwalf public static ValueMap createValueMap() {
2ronwalf return new ValueMap();
2ronwalf }
2ronwalf}