private OWLSAtomicService buildOWLSServiceFromLocalOrRemoteURI(URI serviceURI, List<URI> modelURIs) throws ModelException
    {
        BSDFLogger.getLogger().info("Builds OWL service (BSDF functionality) from: " + serviceURI.toString());
        OWLContainer owlSyntaxTranslator = new OWLContainer();
        OWLKnowledgeBase kb = KBWithReasonerBuilder.newKB();
        if (null != modelURIs)
        {
            for (URI uri : modelURIs)
            {
                owlSyntaxTranslator.loadOntologyIfNotLoaded(uri);
            }
        }
        owlSyntaxTranslator.loadAsServiceIntoKB(kb, serviceURI);
        OWLSAtomicService service = new OWLSAtomicService(kb.getServices(false).iterator().next());

        return completeOWLSServiceIfNeeded(service);
    }
private OWLSAtomicService buildOWLSServiceFromLocalOrRemoteURI ( URI serviceURI , List < URI > modelURIs ) throws ModelException { BSDFLogger . getLogger ( ) . info ( "Builds OWL service (BSDF functionality) from: " + serviceURI . toString ( ) ) ; OWLContainer owlSyntaxTranslator = new OWLContainer ( ) ; OWLKnowledgeBase kb = KBWithReasonerBuilder . newKB ( ) ; if ( null != modelURIs ) { for ( URI uri : modelURIs ) { owlSyntaxTranslator . loadOntologyIfNotLoaded ( uri ) ; } } owlSyntaxTranslator . loadAsServiceIntoKB ( kb , serviceURI ) ; OWLSAtomicService service = new OWLSAtomicService ( kb . getServices ( false ) . iterator ( ) . next ( ) ) ; return completeOWLSServiceIfNeeded ( service ) ; }
Builds an OWLSAtomicService, from a given URI that has to be a local file
or an http URL

@param serviceURI the URI for the service location
@param modelURIs a List of URIs for ontologies that may be used by the
service to be loaded (currently needed when the service is written in
functional or turtle syntax)
@return
@throws ModelException