Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-discussion] error in defining an enumerated class

Joe Huang joe.huang at sdrcinc.net
Thu Apr 26 15:20:36 PDT 2007


re-self:

I found out why: I'd need to create instances for the IDs of every item inside the enumeration class first (i.e. under owl:Thing). Then it works.

 

________________________________

From: protege-discussion-bounces at lists.stanford.edu [mailto:protege-discussion-bounces at lists.stanford.edu] On Behalf Of Joe Huang
Sent: Thursday, April 26, 2007 10:54 AM
To: protege-discussion at lists.stanford.edu
Subject: [protege-discussion] error in defining an enumerated class

 

I found that protégé can view enumerated class in OWL, however, its GUI reports error to defining a non-empty enumerated class definition. I don't know why.

(to duplicate the error: create a new class, go to "asserted condition", click on "Necessary & Sufficient" and create a new expression by clicking on "U" and then "{}", type something inside and press enter.) Thanks!

 

An example enumerated class definition:

 

   <owl:Class rdf:ID="AnglePrecisionCode">

      <owl:oneOf rdf:parseType="Collection">

         <owl:Thing rdf:ID="1000MN">

            <rdfs:label>1000MN</rdfs:label>

            <rdfs:comment>

          Angular precision is expressed to the precision of 1/1000 of a minute.

        </rdfs:comment>

         </owl:Thing>

 

         <owl:Thing rdf:ID="100MN">

            <rdfs:label>100MN</rdfs:label>

            <rdfs:comment>

          Angular precision is expressed to the precision of 1/100 of a minute (centiminute).

        </rdfs:comment>

         </owl:Thing>

 

         <owl:Thing rdf:ID="100SEC">

            <rdfs:label>100SEC</rdfs:label>

            <rdfs:comment>

          Angular precision is expressed to the precision of 1/100 of a second.

        </rdfs:comment>

         </owl:Thing>

 

         <owl:Thing rdf:ID="10DEG">

            <rdfs:label>10DEG</rdfs:label>

            <rdfs:comment>

          Angular precision is expressed to the precision of 1/10 of a degree.

        </rdfs:comment>

         </owl:Thing>

 

         <owl:Thing rdf:ID="10MN">

            <rdfs:label>10MN</rdfs:label>

            <rdfs:comment>

          Angular precision is expressed to the precision of 1/10 of a minute.

        </rdfs:comment>

         </owl:Thing>

 

         <owl:Thing rdf:ID="10SEC">

            <rdfs:label>10SEC</rdfs:label>

            <rdfs:comment>

          Angular precision is expressed to the precision of 1/10 of a second.

        </rdfs:comment>

         </owl:Thing>

 

         <owl:Thing rdf:ID="DEGREE">

            <rdfs:label>DEGREE</rdfs:label>

            <rdfs:comment>

          Angular precision is expressed to the precision of a degree (60 minutes).

        </rdfs:comment>

         </owl:Thing>

 

         <owl:Thing rdf:ID="MIL-1">

            <rdfs:label>MIL</rdfs:label>

            <rdfs:comment>

          Angular precision is expressed to the precision of 1 mil (1/6400 of a full circle).

        </rdfs:comment>

         </owl:Thing>

 

         <owl:Thing rdf:ID="MINUTE">

            <rdfs:label>MINUTE</rdfs:label>

            <rdfs:comment>

          Angular precision is expressed to the precision of a minute (60 seconds).

        </rdfs:comment>

         </owl:Thing>

 

         <owl:Thing rdf:ID="SECOND">

            <rdfs:label>SECOND</rdfs:label>

            <rdfs:comment>

          Angular precision is expressed to the precision of a second.

        </rdfs:comment>

         </owl:Thing>

 

      </owl:oneOf>

   </owl:Class>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20070426/1274480b/attachment.html>


More information about the protege-discussion mailing list