* that number.
* @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.getURI());
}