OWLObjectPropertyAssertionAxiom propertyAssertion = df
.getOWLObjectPropertyAssertionAxiom(hasWife, john, mary);
m.addAxiom(o, propertyAssertion);
// Now let's specify that :John is aged 51.
// Get hold of a data property called :hasAge
OWLDataProperty hasAge = df.getOWLDataProperty(":hasAge", pm);
// To specify that :John has an age of 51 we create a data property
// assertion and add it to the ontology
OWLDataPropertyAssertionAxiom dataPropertyAssertion = df
.getOWLDataPropertyAssertionAxiom(hasAge, john, 51);
m.addAxiom(o, dataPropertyAssertion);