check in the ontology only for the case of datatype property