W3C home > Mailing lists > Public > public-owl-dev@w3.org > April to June 2010

RE: user defined datatypes in OWL-DL possible?

From: Michael Schneider <schneid@fzi.de>
Date: Fri, 23 Apr 2010 14:07:03 +0200
Message-ID: <0EF30CAA69519C4CB91D01481AEA06A001D52464@judith.fzi.de>
To: "mjk" <mariokofler@gmx.at>
Cc: <public-owl-dev@w3.org>
>-----Original Message-----
>From: public-owl-dev-request@w3.org [mailto:public-owl-dev-
>request@w3.org] On Behalf Of mjk
>Sent: Friday, April 23, 2010 9:41 AM
>To: public-owl-dev@w3.org
>Subject: user defined datatypes in OWL-DL possible?
>
>hello,
>
>i want to define my own datatypes (like for example an enumeration
>datatype) in OWL but do not want my ontology to become OWL Full. Is this
>possible?
>
>Specifically, i want to translate an XSD schema document to an OWL model
>and have for example the following simple type in the source document:
>
>	<xsd:simpleType name="areaUnitEnum">
>		<xsd:restriction base="xsd:NMTOKEN">
>			<xsd:enumeration value="SquareKilometers"/>
>			<xsd:enumeration value="SquareMeters"/>
>			<xsd:enumeration value="SquareCentimeters"/>
>			<xsd:enumeration value="SquareMillimeters"/>
>			<xsd:enumeration value="SquareMiles"/>
>			<xsd:enumeration value="SquareYards"/>
>			<xsd:enumeration value="SquareFeet"/>
>			<xsd:enumeration value="SquareInches"/>
>		</xsd:restriction>
>	</xsd:simpleType>

I hope that I get you right here, but AFAICS, the only issue I see here is
with support for the datatype xsd:NMTOKEN. It's not supported in OWL 1, but
it /is/ a mandatory datatype in OWL 2, so you can simply build an
enumeration datatype with standard OWL 2 DL means in the following way:

  :areaUnitEnum rdf:type rdfs:Datatype ;
      owl:oneOf ( "SquareKilometers"^^xsd:NMTOKEN 
                  "SquareMeters"^^xsd:NMTOKEN
                  ...
                  "SquareInches"^^xsd:NMTOKEN ) .

>in fact i think of a datatype property "hasAreaUnit" with range
>restriction to my user defined datatype "AreaUnit" which itself is an
>enumeration of the values listed above.

There is no problem with using the above enumeration datatype as the (local
or global) range of a data property in OWL 2 DL.

>is it possible to model this in OWL within the OWL-DL restriction and
>without going to OWL-Full? i hope someone can give me a hint how to
>achieve this because i am stuck here.

You are lucky, the OWL Full hell keeps closed today. ;-)

>many thanks for your replies,
>
>best regards,
>
>mario

Best,
Michael

--
Dipl.-Inform. Michael Schneider
Research Scientist, Information Process Engineering (IPE)
Tel  : +49-721-9654-726
Fax  : +49-721-9654-727
Email: michael.schneider@fzi.de
WWW  : http://www.fzi.de/michael.schneider
=======================================================================
FZI Forschungszentrum Informatik an der Universität Karlsruhe
Haid-und-Neu-Str. 10-14, D-76131 Karlsruhe
Tel.: +49-721-9654-0, Fax: +49-721-9654-959
Stiftung des bürgerlichen Rechts, Az 14-0563.1, RP Karlsruhe
Vorstand: Prof. Dr.-Ing. Rüdiger Dillmann, Dipl. Wi.-Ing. Michael Flor,
Prof. Dr. Dr. h.c. Wolffried Stucky, Prof. Dr. Rudi Studer
Vorsitzender des Kuratoriums: Ministerialdirigent Günther Leßnerkraus
=======================================================================
Received on Friday, 23 April 2010 12:07:41 GMT

This archive was generated by hypermail 2.3.1 : Wednesday, 27 March 2013 09:32:58 GMT