@Override public boolean isOWLAnnotationProperty() { return entity.isOWLAnnotationProperty(); }
@Override public boolean isAnnotation() { return _owl.isOWLAnnotationProperty(); }
public Boolean visit(OWLAnnotationProperty property) { return entity2.isOWLAnnotationProperty(); }
public Boolean visit(OWLAnnotationProperty property) { return entity2.isOWLAnnotationProperty(); }
private static boolean isAnnotationPropertyHierarchyMove(OWLEntity moveEntity, Optional<OWLEntity> fromParent, Optional<OWLEntity> toParent) { return moveEntity.isOWLAnnotationProperty() && fromParent.map(OWLEntity::isOWLAnnotationProperty).orElse(true) && toParent.map(OWLEntity::isOWLAnnotationProperty).orElse(true); }
@Override public boolean containsEntityInSignature(@Nonnull OWLEntity owlEntity) { return owlEntity.isOWLAnnotationProperty() && axiom.getProperty().equals(owlEntity); }
@Override public boolean isLiteralProperty() { return _owl.isOWLDataProperty() || _owl.isOWLAnnotationProperty(); }
@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; }
public OWLAnnotationProperty getOWLAnnotationProperty(String name) { for(OWLEntity ent : shortFormProvider.getEntities(name)) { if(ent.isOWLAnnotationProperty()) { return ent.asOWLAnnotationProperty(); } } return null; } }
@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 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()); } } });
@NonNull private Set<@NonNull OWLDeclarationAxiom> getOWLAnnotationPropertyDeclarationAxioms() { return getOWLOntology().getAxioms(AxiomType.DECLARATION, Imports.INCLUDED).stream() .filter(owlDeclarationAxiom -> owlDeclarationAxiom.getEntity().isOWLAnnotationProperty()) .collect(Collectors.toSet()); }
@Override public void visit(OWLDeclarationAxiom axiom) { sb.append("Declaration("); writeAnnotations(axiom); OWLEntity entity = axiom.getEntity(); if (entity.isOWLClass()) { sb.append("Class("); } else if (entity.isOWLObjectProperty()) { sb.append("ObjectProperty("); } else if (entity.isOWLDataProperty()) { sb.append("DataProperty("); } else if (entity.isOWLNamedIndividual()) { sb.append("NamedIndividual("); } else if (entity.isOWLDatatype()) { sb.append("Datatype("); } else if (entity.isOWLAnnotationProperty()) { sb.append("AnnotationProperty("); } axiom.getEntity().accept(this); sb.append("))"); }
/** * 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()); } }