Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration


* Date: 14-Nov-2006<br><br>
*/
public class OWLFunctionalSyntaxOWLParser extends AbstractOWLParser {

    public OWLOntologyFormat parse(OWLOntologyDocumentSource documentSource, OWLOntology ontology) throws OWLParserException, IOException, UnloadableImportException {
        return parse(documentSource, ontology, new OWLOntologyLoaderConfiguration());
    }
View Full Code Here


* Date: 23-Feb-2008<br><br>
*/
public class TurtleOntologyParser extends AbstractOWLParser {

    public OWLOntologyFormat parse(OWLOntologyDocumentSource documentSource, OWLOntology ontology) throws OWLParserException, UnloadableImportException, IOException {
        return parse(documentSource, ontology, new OWLOntologyLoaderConfiguration());
    }
View Full Code Here

        // that we have tried.
        throw new UnparsableOntologyException(documentSource.getDocumentIRI(), exceptions);
    }

    public OWLOntology loadOWLOntology(OWLOntologyDocumentSource documentSource, final OWLOntologyCreationHandler mediator) throws OWLOntologyCreationException {
        return loadOWLOntology(documentSource, mediator, new OWLOntologyLoaderConfiguration());
    }
View Full Code Here

*/
public class KRSS2OWLParser extends AbstractOWLParser {


    public OWLOntologyFormat parse(OWLOntologyDocumentSource documentSource, OWLOntology ontology) throws OWLParserException, IOException, UnloadableImportException {
        return parse(documentSource, ontology, new OWLOntologyLoaderConfiguration());
    }
View Full Code Here

        autoGeneratedURICounter = autoGeneratedURICounter + 1;
        return IRI.create("owlapi:ontology:ont" + autoGeneratedURICounter);
    }

    public OWLOntology loadOntology(IRI ontologyIRI) throws OWLOntologyCreationException {
        return loadOntology(ontologyIRI, false, new OWLOntologyLoaderConfiguration());
    }
View Full Code Here

    }


    public OWLOntology loadOntologyFromOntologyDocument(IRI documentIRI) throws OWLOntologyCreationException {
        // Ontology URI not known in advance
        return loadOntology(null, new IRIDocumentSource(documentIRI), new OWLOntologyLoaderConfiguration());
    }
View Full Code Here

        return loadOntology(null, new IRIDocumentSource(documentIRI), new OWLOntologyLoaderConfiguration());
    }

    public OWLOntology loadOntologyFromOntologyDocument(OWLOntologyDocumentSource documentSource) throws OWLOntologyCreationException {
        // Ontology URI not known in advance
        return loadOntology(null, documentSource,new OWLOntologyLoaderConfiguration());
    }
View Full Code Here

        return ont;
    }

    @SuppressWarnings("deprecation")
    public void makeLoadImportRequest(OWLImportsDeclaration declaration) throws UnloadableImportException {
        makeLoadImportRequest(declaration, new OWLOntologyLoaderConfiguration());
    }
View Full Code Here

        // There's no offline configuration at all.
        else offlineResources = new IRI[0];

        // Used only for creating the registry model, do not use for caching.
        OWLOntologyManager mgr = OWLOntologyManagerFactory.createOWLOntologyManager(offlineResources);
        OWLOntologyLoaderConfiguration conf = new OWLOntologyLoaderConfiguration();
        // If we are retaining incomplete registries, do not throw exceptions if imports fail.
        conf.setSilentMissingImportsHandling(retainIncomplete);
        // Load registries
        Set<OWLOntology> regOnts = new HashSet<OWLOntology>();
        for (String loc : locations) {
            try {
                IRI iri = IRI.create(loc);
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.