private void createJenaRestriction( ObjectProperty property, OntClass domain, OntClass range, int type) { if (type == Mobi2OWL.RESTRICTION_ALLVALUES) { AllValuesFromRestriction rAllVallues = this.jena.createAllValuesFromRestriction(null, property, range); rAllVallues.addSubClass(domain); // return (com.hp.hpl.jena.ontology.Restriction) rAllVallues; } else { SomeValuesFromRestriction rSomeVallues = this.jena.createSomeValuesFromRestriction(null, property, range); rSomeVallues.addSubClass(domain); // return (com.hp.hpl.jena.ontology.Restriction) rSomeVallues; } }