Examples of extractAsOntology()


Examples of uk.ac.manchester.cs.owlapi.modularity.SyntacticLocalityModuleExtractor.extractAsOntology()

        // module. In easier words, the module preserves all knowledge of the
        // ontology about the terms in the seed signature or the module.
        SyntacticLocalityModuleExtractor sme = new SyntacticLocalityModuleExtractor(
                man, ont, ModuleType.STAR);
        IRI moduleIRI = IRI.create("file:/tmp/PizzaToppingModule.owl");
        OWLOntology mod = sme.extractAsOntology(seedSig, moduleIRI);
        // Output for debugging purposes
        // System.out.println("Some statistics of the module:");
        // System.out.println("  " + mod.getSignature(true).size() +
        // " entities");
        // System.out.println("  " + mod.getLogicalAxiomCount()
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.