@Override public Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature() { Set<OWLAnnotationProperty> result = new HashSet<>(); for (OWLEntity ent : getSignature()) { if (ent.isOWLAnnotationProperty()) { result.add(ent.asOWLAnnotationProperty()); } } return result; }
@Override public Set<OWLAnnotationProperty> getAnnotationPropertiesInSignature() { Set<OWLAnnotationProperty> result = new HashSet<>(); for (OWLEntity ent : getSignature()) { if (ent.isOWLAnnotationProperty()) { result.add(ent.asOWLAnnotationProperty()); } } return result; }
@Override public OWLAnnotationProperty getOWLAnnotationProperty(String name) { for(OWLEntity ent : shortFormProvider.getEntities(name)) { if(ent.isOWLAnnotationProperty()) { return ent.asOWLAnnotationProperty(); } } return null; } }
public OWLAnnotationProperty getOWLAnnotationProperty(String name) { for(OWLEntity ent : shortFormProvider.getEntities(name)) { if(ent.isOWLAnnotationProperty()) { return ent.asOWLAnnotationProperty(); } } return null; } }
public OWLAnnotationProperty getOWLAnnotationProperty(String name) { for(OWLEntity ent : shortFormProvider.getEntities(name)) { if(ent.isOWLAnnotationProperty()) { return ent.asOWLAnnotationProperty(); } } return null; } }
@NonNull @Override public OWLAnnotationProperty getOWLAnnotationProperty() { return getOWLEntity().asOWLAnnotationProperty(); }
public void visit(OWLDeclarationAxiom owlDeclarationAxiom) { if (owlDeclarationAxiom.getEntity().isOWLAnnotationProperty()){ props.add(owlDeclarationAxiom.getEntity().asOWLAnnotationProperty()); } } });
public void visit(OWLDeclarationAxiom owlDeclarationAxiom) { if (owlDeclarationAxiom.getEntity().isOWLAnnotationProperty()){ props.add(owlDeclarationAxiom.getEntity().asOWLAnnotationProperty()); } } });
public void visit(OWLDeclarationAxiom owlDeclarationAxiom) { if (owlDeclarationAxiom.getEntity().isOWLAnnotationProperty()){ props.add(owlDeclarationAxiom.getEntity().asOWLAnnotationProperty()); } } });
public void visit(OWLDeclarationAxiom owlDeclarationAxiom) { if (owlDeclarationAxiom.getEntity().isOWLAnnotationProperty()){ props.add(owlDeclarationAxiom.getEntity().asOWLAnnotationProperty()); } } });
public void visit(OWLDeclarationAxiom owlDeclarationAxiom) { if (owlDeclarationAxiom.getEntity().isOWLAnnotationProperty()){ props.add(owlDeclarationAxiom.getEntity().asOWLAnnotationProperty()); } } });
public Set<OWLAxiom> getReferencingAxioms(OWLEntity owlEntity) { if (owlEntity instanceof OWLClass) { return getAxioms(owlEntity.asOWLClass(), owlClassReferences, false); } if (owlEntity instanceof OWLObjectProperty) { return getAxioms(owlEntity.asOWLObjectProperty(), owlObjectPropertyReferences, false); } if (owlEntity instanceof OWLDataProperty) { return getAxioms(owlEntity.asOWLDataProperty(), owlDataPropertyReferences, false); } if (owlEntity instanceof OWLNamedIndividual) { return getAxioms(owlEntity.asOWLNamedIndividual(), owlIndividualReferences, false); } if (owlEntity instanceof OWLDatatype) { return getAxioms(owlEntity.asOWLDatatype(), owlDatatypeReferences, false); } if(owlEntity instanceof OWLAnnotationProperty) { return getAxioms(owlEntity.asOWLAnnotationProperty(), owlAnnotationPropertyReferences, false); } return Collections.emptySet(); }
public Set<OWLAxiom> writeFrame(OWLEntity entity) { if (entity.isOWLClass()) { return write(entity.asOWLClass()); } if (entity.isOWLObjectProperty()) { return write(entity.asOWLObjectProperty()); } if (entity.isOWLDataProperty()) { return write(entity.asOWLDataProperty()); } if (entity.isOWLNamedIndividual()) { return write(entity.asOWLNamedIndividual()); } if (entity.isOWLAnnotationProperty()) { return write(entity.asOWLAnnotationProperty()); } if (entity.isOWLDatatype()) { return write(entity.asOWLDatatype()); } return Collections.emptySet(); }
public Set<OWLAxiom> writeFrame(OWLEntity entity) { if (entity.isOWLClass()) { return write(entity.asOWLClass()); } if (entity.isOWLObjectProperty()) { return write(entity.asOWLObjectProperty()); } if (entity.isOWLDataProperty()) { return write(entity.asOWLDataProperty()); } if (entity.isOWLNamedIndividual()) { return write(entity.asOWLNamedIndividual()); } if (entity.isOWLAnnotationProperty()) { return write(entity.asOWLAnnotationProperty()); } if (entity.isOWLDatatype()) { return write(entity.asOWLDatatype()); } return Collections.emptySet(); }
/** * Write frame. * * @param entity the entity * @return the sets the */ public Collection<OWLAxiom> writeFrame(OWLEntity entity) { if (entity.isOWLClass()) { return write(entity.asOWLClass()); } if (entity.isOWLObjectProperty()) { return write(entity.asOWLObjectProperty()); } if (entity.isOWLDataProperty()) { return write(entity.asOWLDataProperty()); } if (entity.isOWLNamedIndividual()) { return write(entity.asOWLNamedIndividual()); } if (entity.isOWLAnnotationProperty()) { return write(entity.asOWLAnnotationProperty()); } if (entity.isOWLDatatype()) { return write(entity.asOWLDatatype()); } return Collections.emptySet(); }
/** * Calls the appropriate hook method to write the comments for an entity. * * @param entity The entity for which comments should be written. */ private void writeEntityComment(OWLEntity entity) { if (entity.isOWLClass()) { writeClassComment(entity.asOWLClass()); } else if (entity.isOWLDatatype()) { writeDatatypeComment(entity.asOWLDatatype()); } else if (entity.isOWLObjectProperty()) { writeObjectPropertyComment(entity.asOWLObjectProperty()); } else if (entity.isOWLDataProperty()) { writeDataPropertyComment(entity.asOWLDataProperty()); } else if (entity.isOWLAnnotationProperty()) { writeAnnotationPropertyComment(entity.asOWLAnnotationProperty()); } else if (entity.isOWLNamedIndividual()) { writeIndividualComments(entity.asOWLNamedIndividual()); } }
/** * Calls the appropriate hook method to write the comments for an entity. * * @param entity The entity for which comments should be written. */ private void writeEntityComment(OWLEntity entity) { if (entity.isOWLClass()) { writeClassComment(entity.asOWLClass()); } else if (entity.isOWLDatatype()) { writeDatatypeComment(entity.asOWLDatatype()); } else if (entity.isOWLObjectProperty()) { writeObjectPropertyComment(entity.asOWLObjectProperty()); } else if (entity.isOWLDataProperty()) { writeDataPropertyComment(entity.asOWLDataProperty()); } else if (entity.isOWLAnnotationProperty()) { writeAnnotationPropertyComment(entity.asOWLAnnotationProperty()); } else if (entity.isOWLNamedIndividual()) { writeIndividualComments(entity.asOWLNamedIndividual()); } }
/** * Calls the appropriate hook method to write the comments for an entity. * * @param entity The entity for which comments should be written. */ private void writeEntityComment(OWLEntity entity) { if (entity.isOWLClass()) { writeClassComment(entity.asOWLClass()); } else if (entity.isOWLDatatype()) { writeDatatypeComment(entity.asOWLDatatype()); } else if (entity.isOWLObjectProperty()) { writeObjectPropertyComment(entity.asOWLObjectProperty()); } else if (entity.isOWLDataProperty()) { writeDataPropertyComment(entity.asOWLDataProperty()); } else if (entity.isOWLAnnotationProperty()) { writeAnnotationPropertyComment(entity.asOWLAnnotationProperty()); } else if (entity.isOWLNamedIndividual()) { writeIndividualComments(entity.asOWLNamedIndividual()); } }
/** * Calls the appropriate hook method to write the comments for an entity. * * @param entity The entity for which comments should be written. */ private void writeEntityComment(OWLEntity entity) { if (entity.isOWLClass()) { writeClassComment(entity.asOWLClass()); } else if (entity.isOWLDatatype()) { writeDatatypeComment(entity.asOWLDatatype()); } else if (entity.isOWLObjectProperty()) { writeObjectPropertyComment(entity.asOWLObjectProperty()); } else if (entity.isOWLDataProperty()) { writeDataPropertyComment(entity.asOWLDataProperty()); } else if (entity.isOWLAnnotationProperty()) { writeAnnotationPropertyComment(entity.asOWLAnnotationProperty()); } else if (entity.isOWLNamedIndividual()) { writeIndividualComments(entity.asOWLNamedIndividual()); } }
/** Calls the appropriate hook method to write the comments for an entity. * * @param entity * The entity for which comments should be written. * @throws IOException * if there was a problem writing the comment */ private void writeEntityComment(OWLEntity entity) throws IOException { if (entity.isOWLClass()) { writeClassComment(entity.asOWLClass()); } else if (entity.isOWLDatatype()) { writeDatatypeComment(entity.asOWLDatatype()); } else if (entity.isOWLObjectProperty()) { writeObjectPropertyComment(entity.asOWLObjectProperty()); } else if (entity.isOWLDataProperty()) { writeDataPropertyComment(entity.asOWLDataProperty()); } else if (entity.isOWLAnnotationProperty()) { writeAnnotationPropertyComment(entity.asOWLAnnotationProperty()); } else if (entity.isOWLNamedIndividual()) { writeIndividualComments(entity.asOWLNamedIndividual()); } }