/** * @param datatype the datatype * @return the sets the */ public Collection<OWLAxiom> write(OWLDatatype datatype) { List<OWLAxiom> axioms = new ArrayList<>(); axioms.addAll(writeEntityStart(DATATYPE, datatype)); if (!isFiltered(AxiomType.DATATYPE_DEFINITION)) { Collection<OWLDataRange> dataRanges = sortedCollection(); o.datatypeDefinitions(datatype).filter(this::isDisplayed).forEach(ax -> { axioms.add(ax); dataRanges.add(ax.getDataRange()); }); writeSection(EQUIVALENT_TO, dataRanges.iterator(), ",", true); } writeEntitySectionEnd(DATATYPE.toString()); return axioms; }
/** * @param datatype the datatype * @return the sets the */ public Collection<OWLAxiom> write(OWLDatatype datatype) { List<OWLAxiom> axioms = new ArrayList<>(); axioms.addAll(writeEntityStart(DATATYPE, datatype)); if (!isFiltered(AxiomType.DATATYPE_DEFINITION)) { Collection<OWLDataRange> dataRanges = sortedCollection(); o.datatypeDefinitions(datatype).filter(this::isDisplayed).forEach(ax -> { axioms.add(ax); dataRanges.add(ax.getDataRange()); }); writeSection(EQUIVALENT_TO, dataRanges.iterator(), ",", true); } writeEntitySectionEnd(DATATYPE.toString()); return axioms; }
/** * @param datatype the datatype * @return the sets the */ public Collection<OWLAxiom> write(OWLDatatype datatype) { List<OWLAxiom> axioms = new ArrayList<>(); axioms.addAll(writeEntityStart(DATATYPE, datatype)); if (!isFiltered(AxiomType.DATATYPE_DEFINITION)) { Collection<OWLDataRange> dataRanges = sortedCollection(); o.datatypeDefinitions(datatype).filter(this::isDisplayed).forEach(ax -> { axioms.add(ax); dataRanges.add(ax.getDataRange()); }); writeSection(EQUIVALENT_TO, dataRanges.iterator(), ",", true); } writeEntitySectionEnd(DATATYPE.toString()); return axioms; }
/** * @param datatype the datatype * @return the sets the */ public Collection<OWLAxiom> write(OWLDatatype datatype) { List<OWLAxiom> axioms = new ArrayList<>(); axioms.addAll(writeEntityStart(DATATYPE, datatype)); if (!isFiltered(AxiomType.DATATYPE_DEFINITION)) { Collection<OWLDataRange> dataRanges = sortedCollection(); o.datatypeDefinitions(datatype).filter(this::isDisplayed).forEach(ax -> { axioms.add(ax); dataRanges.add(ax.getDataRange()); }); writeSection(EQUIVALENT_TO, dataRanges.iterator(), ",", true); } writeEntitySectionEnd(DATATYPE.toString()); return axioms; }
/** * @param property the property * @return written axioms */ public Collection<OWLAxiom> write(OWLAnnotationProperty property) { List<OWLAxiom> axioms = new ArrayList<>(); axioms.addAll(writeEntityStart(ANNOTATION_PROPERTY, property)); if (!isFiltered(AxiomType.SUB_ANNOTATION_PROPERTY_OF)) { Collection<OWLAnnotationProperty> properties = sortedCollection(); o.subAnnotationPropertyOfAxioms(property).filter(this::isDisplayed) .forEach(ax -> properties.add(ax .getSuperProperty())); writeSection(SUB_PROPERTY_OF, properties.iterator(), ",", true); } if (!isFiltered(AxiomType.ANNOTATION_PROPERTY_DOMAIN)) { Collection<IRI> iris = sortedCollection(); o.annotationPropertyDomainAxioms(property).filter(this::isDisplayed) .forEach(ax -> iris.add(ax .getDomain())); writeSection(DOMAIN, iris.iterator(), ",", true); } if (!isFiltered(AxiomType.ANNOTATION_PROPERTY_RANGE)) { Collection<IRI> iris = sortedCollection(); o.annotationPropertyRangeAxioms(property).filter(this::isDisplayed) .forEach(ax -> iris.add(ax.getRange())); writeSection(RANGE, iris.iterator(), ",", true); } writeEntitySectionEnd(ANNOTATION_PROPERTY.toString()); return axioms; }
/** * @param property the property * @return written axioms */ public Collection<OWLAxiom> write(OWLAnnotationProperty property) { List<OWLAxiom> axioms = new ArrayList<>(); axioms.addAll(writeEntityStart(ANNOTATION_PROPERTY, property)); if (!isFiltered(AxiomType.SUB_ANNOTATION_PROPERTY_OF)) { Collection<OWLAnnotationProperty> properties = sortedCollection(); o.subAnnotationPropertyOfAxioms(property).filter(this::isDisplayed) .forEach(ax -> properties.add(ax .getSuperProperty())); writeSection(SUB_PROPERTY_OF, properties.iterator(), ",", true); } if (!isFiltered(AxiomType.ANNOTATION_PROPERTY_DOMAIN)) { Collection<IRI> iris = sortedCollection(); o.annotationPropertyDomainAxioms(property).filter(this::isDisplayed) .forEach(ax -> iris.add(ax .getDomain())); writeSection(DOMAIN, iris.iterator(), ",", true); } if (!isFiltered(AxiomType.ANNOTATION_PROPERTY_RANGE)) { Collection<IRI> iris = sortedCollection(); o.annotationPropertyRangeAxioms(property).filter(this::isDisplayed) .forEach(ax -> iris.add(ax.getRange())); writeSection(RANGE, iris.iterator(), ",", true); } writeEntitySectionEnd(ANNOTATION_PROPERTY.toString()); return axioms; }
/** * @param property the property * @return written axioms */ public Collection<OWLAxiom> write(OWLAnnotationProperty property) { List<OWLAxiom> axioms = new ArrayList<>(); axioms.addAll(writeEntityStart(ANNOTATION_PROPERTY, property)); if (!isFiltered(AxiomType.SUB_ANNOTATION_PROPERTY_OF)) { Collection<OWLAnnotationProperty> properties = sortedCollection(); o.subAnnotationPropertyOfAxioms(property).filter(this::isDisplayed) .forEach(ax -> properties.add(ax .getSuperProperty())); writeSection(SUB_PROPERTY_OF, properties.iterator(), ",", true); } if (!isFiltered(AxiomType.ANNOTATION_PROPERTY_DOMAIN)) { Collection<IRI> iris = sortedCollection(); o.annotationPropertyDomainAxioms(property).filter(this::isDisplayed) .forEach(ax -> iris.add(ax .getDomain())); writeSection(DOMAIN, iris.iterator(), ",", true); } if (!isFiltered(AxiomType.ANNOTATION_PROPERTY_RANGE)) { Collection<IRI> iris = sortedCollection(); o.annotationPropertyRangeAxioms(property).filter(this::isDisplayed) .forEach(ax -> iris.add(ax.getRange())); writeSection(RANGE, iris.iterator(), ",", true); } writeEntitySectionEnd(ANNOTATION_PROPERTY.toString()); return axioms; }
/** * @param property the property * @return written axioms */ public Collection<OWLAxiom> write(OWLAnnotationProperty property) { List<OWLAxiom> axioms = new ArrayList<>(); axioms.addAll(writeEntityStart(ANNOTATION_PROPERTY, property)); if (!isFiltered(AxiomType.SUB_ANNOTATION_PROPERTY_OF)) { Collection<OWLAnnotationProperty> properties = sortedCollection(); o.subAnnotationPropertyOfAxioms(property).filter(this::isDisplayed) .forEach(ax -> properties.add(ax .getSuperProperty())); writeSection(SUB_PROPERTY_OF, properties.iterator(), ",", true); } if (!isFiltered(AxiomType.ANNOTATION_PROPERTY_DOMAIN)) { Collection<IRI> iris = sortedCollection(); o.annotationPropertyDomainAxioms(property).filter(this::isDisplayed) .forEach(ax -> iris.add(ax .getDomain())); writeSection(DOMAIN, iris.iterator(), ",", true); } if (!isFiltered(AxiomType.ANNOTATION_PROPERTY_RANGE)) { Collection<IRI> iris = sortedCollection(); o.annotationPropertyRangeAxioms(property).filter(this::isDisplayed) .forEach(ax -> iris.add(ax.getRange())); writeSection(RANGE, iris.iterator(), ",", true); } writeEntitySectionEnd(ANNOTATION_PROPERTY.toString()); return axioms; }
axioms.addAll(writeEntityStart(INDIVIDUAL, individual)); if (!isFiltered(AxiomType.CLASS_ASSERTION)) { SectionMap<Object, OWLAxiom> expressions = new SectionMap<>();
axioms.addAll(writeEntityStart(INDIVIDUAL, individual)); if (!isFiltered(AxiomType.CLASS_ASSERTION)) { SectionMap<Object, OWLAxiom> expressions = new SectionMap<>();
axioms.addAll(writeEntityStart(INDIVIDUAL, individual)); if (!isFiltered(AxiomType.CLASS_ASSERTION)) { SectionMap<Object, OWLAxiom> expressions = new SectionMap<>();
axioms.addAll(writeEntityStart(INDIVIDUAL, individual)); if (!isFiltered(AxiomType.CLASS_ASSERTION)) { SectionMap<Object, OWLAxiom> expressions = new SectionMap<>();
axioms.addAll(writeEntityStart(DATA_PROPERTY, property)); if (!isFiltered(AxiomType.FUNCTIONAL_DATA_PROPERTY)) { SectionMap<Object, OWLAxiom> characteristics = new SectionMap<>();
axioms.addAll(writeEntityStart(DATA_PROPERTY, property)); if (!isFiltered(AxiomType.FUNCTIONAL_DATA_PROPERTY)) { SectionMap<Object, OWLAxiom> characteristics = new SectionMap<>();
axioms.addAll(writeEntityStart(DATA_PROPERTY, property)); if (!isFiltered(AxiomType.FUNCTIONAL_DATA_PROPERTY)) { SectionMap<Object, OWLAxiom> characteristics = new SectionMap<>();
axioms.addAll(writeEntityStart(CLASS, cls)); if (!isFiltered(AxiomType.EQUIVALENT_CLASSES)) { SectionMap<Object, OWLAxiom> equivalentClasses = new SectionMap<>();
axioms.addAll(writeEntityStart(DATA_PROPERTY, property)); if (!isFiltered(AxiomType.FUNCTIONAL_DATA_PROPERTY)) { SectionMap<Object, OWLAxiom> characteristics = new SectionMap<>();
axioms.addAll(writeEntityStart(CLASS, cls)); if (!isFiltered(AxiomType.EQUIVALENT_CLASSES)) { SectionMap<Object, OWLAxiom> equivalentClasses = new SectionMap<>();
axioms.addAll(writeEntityStart(CLASS, cls)); if (!isFiltered(AxiomType.EQUIVALENT_CLASSES)) { SectionMap<Object, OWLAxiom> equivalentClasses = new SectionMap<>();
axioms.addAll(writeEntityStart(OBJECT_PROPERTY, property)); if (!isFiltered(AxiomType.SUB_OBJECT_PROPERTY)) { SectionMap<Object, OWLAxiom> properties = new SectionMap<>();