Examples of OWLOntologyLoaderConfiguration


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

Examples of org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration

* 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

Examples of org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration

        // 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

Examples of org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration

*/
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

Examples of org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration

        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

Examples of org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration

    }


    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

Examples of org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration

        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

Examples of org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration

        return ont;
    }

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

Examples of org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration

        // 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
Copyright © 2018 www.massapi.com. 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.