It is not clear whether schema:Duration is a class or a datatype. The official schema.org OWL expresses it as a class, while in the example given on the official website it seems it is used as a datatype.