protegeproject / protege

Protege Desktop
http://protege.stanford.edu
Other
1.01k stars 231 forks source link

Is there short date supported besides xsd:dateTime #1168

Open yasenstar opened 1 year ago

yasenstar commented 1 year ago

Hello,

I want to use data property to store one Date information in my ontology, from the built-in data type, I can only choose xsd:dateTime, and I see the validation should be format like "2023-09-23T00:00:00", however, the detail Time portion is not relavent for the information collected.

Is there possible to customize one shortDate type that allow just "2023-09-23" input?

I'm using Protege 5.6.2 now, thanks.

Xiaoqi

okaihe commented 3 months ago

Hi, had the same problem. I just went with a text editor into the ontology output file and replaced the "xsd:dateTime" with "xsd:date". After saving and reopening the ontology in Protege "xsd:date" had been added to the built-in data types.