Does any one can help me generate this ObjectPropertyRange using "The OWL API"??
<ObjectPropertyRange>
<Annotation>
<AnnotationProperty abbreviatedIRI="owl:backwardCompatibleWith"/>
<IRI>#ProgramLanguage</IRI>
</Annotation>
<ObjectProperty IRI="#specifiedBy"/>
<ObjectMaxCardinality cardinality="1">
<ObjectProperty IRI="#specifiedBy"/>
<Class IRI="#Grammars"/>
</ObjectMaxCardinality>
</ObjectPropertyRange>
This is how i got in the last 3 days....
<ObjectPropertyRange>
<ObjectProperty IRI="#has"/>
<ObjectMaxCardinality cardinality="1">
<ObjectProperty IRI="#has"/>
<Class IRI="#Quantity"/>
</ObjectMaxCardinality>
</ObjectPropertyRange>
From this code...
OWLClassExpression expression=df.getOWLObjectMaxCardinality(relations.max, objectProperty,range.getNNF());
OWLSubClassOfAxiom subClassOfAxiom=df.getOWLSubClassOfAxiom(df.getOWLClass(IRI.create(relations.class2)), expression);
OWLObjectPropertyRangeAxiom owlObjectPropertyRangeAxiom=df.getOWLObjectPropertyRangeAxiom(objectProperty,subClassOfAxiom.getSuperClass());
manager.addAxiom(new_ontology,owlObjectPropertyRangeAxiom);