You can get an instance of OWLDatatype from an OWLDataFactory - you can pass in the IRIs of gMonth and gYear (see the XSDVocabulary enum for these IRIs). Once you have an instance of OWLDatatype you can use it as you please to specify the types of literals or the ranges of data properties.
> On 8 Jul 2017, at 16:13, claire Qiu <[hidden email]> wrote:
> could anybody please suggest a method to declare the datatype of xsd:gMonth and xsd:gYear using OWLAPI?
> I only found OWL2Datatype which does not contain xsd:gMonth and xsd:gYear.
> Thank in advance!
> protege-dev mailing list
> [hidden email] > https://mailman.stanford.edu/mailman/listinfo/protege-dev