*
* @param n The <code>Number</code> whose datatype is to be obtained.
* @return The datatype that corresponds to the type of number.
*/
public static <N extends Number> OWLDatatype getDatatype(OWLDataFactory dataFactory, N n) {
XSDVocabulary v = numberTypeMap.get(n.getClass());
if (v == null) {
throw new OWLRuntimeException("Don't know how to translate " + n.getClass());
}
return dataFactory.getOWLDatatype(v.getIRI());
}