W3C home > Mailing lists > Public > www-rdf-logic@w3.org > January 2002

DAML +OIL notation question

From: myriam ribiere <Myriam_Ribiere-AMR061@email.mot.com>
Date: Thu, 24 Jan 2002 14:58:15 +0100
To: <www-rdf-logic@w3.org>
Cc: <ribiere@crm.mot.com>
Message-Id: <EOEOKGDMEBFDELKEAJMFAEBOCAAA.myriam.ribiere@crm.mot.com>
Hi everyone,

I would like to represent a property that can take values into a set of
predefined values that are string.
For example the possible value for the unit property of an angle class could
be Minutes, or Radians or Degrees or Seconds

I've found several solutions but for a collection of classes.
In fact i'm trying to represent what is called "Symbol" in the protege tool.
Could you tell me if the following notation is right:

   <rdfs:Class rdf:ID="Angle">
            <daml:Restriction daml:mincardinality="1"
                <daml:onProperty rdf:resource="#unit"/>
                <daml:toClass rdf:resource="#Angle_unit_selection"/>
            <daml:Restriction daml:mincardinality="1"
                <daml:onProperty rdf:resource="#value"/>

    <daml:Class  rdf:ID="Angle_unit_selection">
    	This class represents the choice in Angle unit.
  	<daml:oneOf rdf:parseType="daml:collection">
		<Angle_unit_selection rdf:ID="Minutes"/>
		<Angle_unit_selection rdf:ID="Radians"/>
		<Angle_unit_selection rdf:ID="Degrees"/>
		<Angle_unit_selection rdf:ID="Seconds"/>

Thanks a lot for your help,

Received on Thursday, 24 January 2002 08:58:24 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 2 March 2016 11:10:37 UTC