/** * Adds the. * * @param axioms the axioms */ protected void add(@Nullable Set<OWLAxiom> axioms) { if (axioms == null || axioms.isEmpty()) { LOG.error("no axiom"); return; } getOwlOntology().add(axioms); }
/** * Adds the. * * @param axioms the axioms */ protected void add(@Nullable Set<OWLAxiom> axioms) { if (axioms == null || axioms.isEmpty()) { LOG.error("no axiom"); return; } getOwlOntology().add(axioms); }
/** * Adds the. * * @param axioms the axioms */ protected void add(@Nullable Set<OWLAxiom> axioms) { if (axioms == null || axioms.isEmpty()) { LOG.error("no axiom"); return; } getOwlOntology().add(axioms); }
/** * @param axiom to change * @return true changes list * @since 2.5.1 */ default public ChangeApplied addAxiom(final OWLAxiom axiom) { return getOntology().add(axiom); }
@SuppressWarnings("unused") protected void addAxiom(final OWLAxiom axiom) throws OWLException { _ontology.add(axiom); } }
/** * @param axiom to change * @return true changes list * @since 2.5.1 */ default public ChangeApplied addAxiom(final OWLAxiom axiom) { return getOntology().add(axiom); }
/** * @param axiom to change * @return true changes list * @since 2.5.1 */ default public ChangeApplied addAxiom(final OWLAxiom axiom) { return getOntology().add(axiom); }
/** * Adds the. * * @param axioms the axioms */ protected void add(@Nullable Set<OWLAxiom> axioms) { if (axioms == null || axioms.isEmpty()) { LOG.error("no axiom"); return; } getOwlOntology().add(axioms); }
/** * Add the axiom to all the given ontologies. * * @param axiom the axiom to add * @param ontologies the ontologies to add the axiom to */ public static void addAxiom(OWLAxiom axiom, Stream<OWLOntology> ontologies) { checkNotNull(axiom, AXIOM_CANNOT_BE_NULL); checkNotNull(ontologies, ONTOLOGIES_CANNOT_BE_NULL); ontologies.forEach(o -> o.add(axiom)); } }
/** * Add the axiom to all the given ontologies. * * @param axiom the axiom to add * @param ontologies the ontologies to add the axiom to */ public static void addAxiom(OWLAxiom axiom, Stream<OWLOntology> ontologies) { checkNotNull(axiom, AXIOM_CANNOT_BE_NULL); checkNotNull(ontologies, ONTOLOGIES_CANNOT_BE_NULL); ontologies.forEach(o -> o.add(axiom)); } }
/** * Add the axiom to all the given ontologies. * * @param axiom the axiom to add * @param ontologies the ontologies to add the axiom to */ public static void addAxiom(OWLAxiom axiom, Stream<OWLOntology> ontologies) { checkNotNull(axiom, AXIOM_CANNOT_BE_NULL); checkNotNull(ontologies, ONTOLOGIES_CANNOT_BE_NULL); ontologies.forEach(o -> o.add(axiom)); } }
/** * Add the axiom to all the given ontologies. * * @param axiom the axiom to add * @param ontologies the ontologies to add the axiom to */ public static void addAxiom(OWLAxiom axiom, Stream<OWLOntology> ontologies) { checkNotNull(axiom, AXIOM_CANNOT_BE_NULL); checkNotNull(ontologies, ONTOLOGIES_CANNOT_BE_NULL); ontologies.forEach(o -> o.add(axiom)); } }
private static void generateChanges(OWLOntologyManager ontologyManager, OWLOntology o, ShortFormProvider provider, IRI annotationIRI, @Nullable String lang) { OWLDataFactory df = ontologyManager.getOWLDataFactory(); OWLAnnotationProperty ap = df.getOWLAnnotationProperty(annotationIRI); new ImportsStructureEntitySorter(o).getObjects().forEach((ont, ent) -> ent.forEach(e -> { if (o.containsEntityInSignature(e)) { ont.add(df.getOWLAnnotationAssertionAxiom(ap, e.getIRI(), action(e, lang, provider, df))); } })); }
private static void generateChanges(OWLOntologyManager ontologyManager, OWLOntology o, ShortFormProvider provider, IRI annotationIRI, @Nullable String lang) { OWLDataFactory df = ontologyManager.getOWLDataFactory(); OWLAnnotationProperty ap = df.getOWLAnnotationProperty(annotationIRI); new ImportsStructureEntitySorter(o).getObjects().forEach((ont, ent) -> ent.forEach(e -> { if (o.containsEntityInSignature(e)) { ont.add(df.getOWLAnnotationAssertionAxiom(ap, e.getIRI(), action(e, lang, provider, df))); } })); }
/** * @return ontology for gci */ public OWLOntology createGCIOntology() { MacroExpansions expansions = new MacroExpansions(); outputOntology.add(expansions.getNewAxioms()); outputOntology.remove(expansions.getRmAxioms()); return outputOntology; }
/** * @return ontology with expanded macros */ public OWLOntology expandAll() { MacroExpansions macroExpansions = new MacroExpansions(); Set<OWLAxiom> newAxioms = macroExpansions.getNewAxioms(); Set<OWLAxiom> rmAxioms = macroExpansions.getRmAxioms(); inputOntology.add(newAxioms); inputOntology.remove(rmAxioms); return inputOntology; }
/** * @return ontology for gci */ public OWLOntology createGCIOntology() { MacroExpansions expansions = new MacroExpansions(); outputOntology.add(expansions.getNewAxioms()); outputOntology.remove(expansions.getRmAxioms()); return outputOntology; }
/** * @return ontology for gci */ public OWLOntology createGCIOntology() { MacroExpansions expansions = new MacroExpansions(); outputOntology.add(expansions.getNewAxioms()); outputOntology.remove(expansions.getRmAxioms()); return outputOntology; }
/** * @return ontology for gci */ public OWLOntology createGCIOntology() { MacroExpansions expansions = new MacroExpansions(); outputOntology.add(expansions.getNewAxioms()); outputOntology.remove(expansions.getRmAxioms()); return outputOntology; }
/** * @return ontology with expanded macros */ public OWLOntology expandAll() { MacroExpansions macroExpansions = new MacroExpansions(); Set<OWLAxiom> newAxioms = macroExpansions.getNewAxioms(); Set<OWLAxiom> rmAxioms = macroExpansions.getRmAxioms(); inputOntology.add(newAxioms); inputOntology.remove(rmAxioms); return inputOntology; }