@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 { // logger.warning("Unhandled declaration type " + axiom.getEntity().getClass().getName()); } return null; }
tvpList.addPair(OBOVocabulary.IS_SYMMETRIC, "true"); if (property.isTransitive(ontology)) { tvpList.addPair(OBOVocabulary.IS_TRANSITIVE, "true");
tvpList.addPair(OBOVocabulary.IS_SYMMETRIC, "true"); if (property.isTransitive(ontology)) { tvpList.addPair(OBOVocabulary.IS_TRANSITIVE, "true");
tvpList.addPair(OBOVocabulary.IS_SYMMETRIC, "true"); if (property.isTransitive(ontology)) { tvpList.addPair(OBOVocabulary.IS_TRANSITIVE, "true");
write(property); if (property.isTransitive(onto)) { writeAttribute(TRANSITIVE_ATTR); writeSpace();
write(property); if (property.isTransitive(ontology)) { writeAttribute(TRANSITIVE_ATTR); writeSpace();
write(property); if (property.isTransitive(onto)) { writeAttribute(TRANSITIVE_ATTR); writeSpace();
if (property.isTransitive(ontology)) { writeSpace(); write(TRANSITIVE_ATTR);
if (property.isTransitive(ontology)) { writeSpace(); write(TRANSITIVE_ATTR);
if (property.isTransitive(ontology1)) { writeSpace(); write(TRANSITIVE_ATTR);