Package uk.ac.manchester.cs.owlapi.modularity

Examples of uk.ac.manchester.cs.owlapi.modularity.SyntacticLocalityModuleExtractor$OntologyAxiomSet


                seedSig.addAll(subClasses.getFlattened());
            }
        }
        // We now extract a locality-based module. STAR provides the smallest
        // ones
        SyntacticLocalityModuleExtractor sme = new SyntacticLocalityModuleExtractor(
                m, o, ModuleType.STAR);
        Set<OWLAxiom> mod = sme.extract(seedSig);
        assertNotNull(mod);
    }
View Full Code Here


        // locality-based module. These modules guarantee that all entailments
        // of the original ontology that can be formulated using only terms from
        // the seed signature or the module will also be entailments of the
        // 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

 
  private void modularityTest(OWLOntology ontology, Set<OWLEntity> signature, ModuleType moduleType) throws OWLException {
    Set<OWLAxiom> computed = ModularityUtils.extractModule( ontology, signature, moduleType );
   
    OntologySegmenter segmenter =
      new SyntacticLocalityModuleExtractor( manager, ontology, moduleType );
    Set<OWLAxiom> expected = segmenter.extract( signature );
     
    // prune declarations to avoid mismatches related to declarations
    for( OWLEntity entity : signature ) {
      OWLDeclarationAxiom declaration = OWL.declaration( entity );
      computed.remove( declaration );
View Full Code Here

 
  private void modularityTest(OWLOntology ontology, Set<OWLEntity> signature, ModuleType moduleType) throws OWLException {
    Set<OWLAxiom> computed = ModularityUtils.extractModule( ontology, signature, moduleType );
   
    OntologySegmenter segmenter =
      new SyntacticLocalityModuleExtractor( OWL.manager, ontology, moduleType );
    Set<OWLAxiom> expected = segmenter.extract( signature );
     
    // prune declarations to avoid mismatches related to declarations
    for( OWLEntity entity : signature ) {
      OWLDeclarationAxiom declaration = OWL.declaration( entity );
      computed.remove( declaration );
View Full Code Here

TOP

Related Classes of uk.ac.manchester.cs.owlapi.modularity.SyntacticLocalityModuleExtractor$OntologyAxiomSet

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.