@Override
public Void visit(OWLDeclarationAxiom axiom) {
String iri = getIri(axiom);
long node = getOrCreateNode(iri);
addDefinedBy(node);
if (axiom.getEntity() instanceof OWLClass) {
graph.addLabel(node, OwlLabels.OWL_CLASS);
} else if (axiom.getEntity() instanceof OWLNamedIndividual) {
graph.addLabel(node, OwlLabels.OWL_NAMED_INDIVIDUAL);
} else if (axiom.getEntity() instanceof OWLObjectProperty) {
if (!graph.getLabels(node).contains(OwlLabels.OWL_OBJECT_PROPERTY)) {
graph.addLabel(node, OwlLabels.OWL_OBJECT_PROPERTY);
if (ontology.isPresent()) {
OWLObjectProperty property = (OWLObjectProperty) axiom.getEntity();
graph.setNodeProperty(node, EdgeProperties.SYMMETRIC,
!property.isAsymmetric(ontology.get()));
graph.setNodeProperty(node, EdgeProperties.REFLEXIVE,
property.isReflexive(ontology.get()));
graph.setNodeProperty(node, EdgeProperties.TRANSITIVE,
property.isTransitive(ontology.get()));
}
}
} else if (axiom.getEntity() instanceof OWLDataProperty) {
graph.setLabel(node, OwlLabels.OWL_DATA_PROPERTY);
} else {
}
return null;
}