Re: user defined datatype in owl

Hi.
Yes you can create custom datatypes - the how can quickly get complex 
depending on what exactly is required from that datatype.

See https://www.w3.org/TR/owl2-syntax/#Datatype_Definitions where the 
example can be used to model complex numbers using regex and 
https://www.w3.org/TR/2012/REC-owl2-primer-20121211/#Advanced_Use_of_Datatypes 
where the example can be used to model union or intersection.

Regards,
Harsh

On 27/02/2024 15:37, fano.ramparany@orange.com wrote:
> Is it possible in owl to:
> 
>   * define user defined datatypes? for example, a complex number
>     datatype, which is not a built-in datatype and could be defined as
>     the couple [real part, imaginary part]. Another example is to define
>     a numerical-value datatype as the union of xsd:float, xsd:int,
>     xsd:short, xsd:long,...
>   * use these datatypes as the range of DataProperties?
> 
> In case this is possible, which owl construct should I use to define them?
> 

-- 
---
Harshvardhan J. Pandit, Ph.D
Assistant Professor
ADAPT Centre, Dublin City University
https://harshp.com/

Received on Tuesday, 27 February 2024 18:59:34 UTC