sesuncedu / owl1-1

Automatically exported from code.google.com/p/owl1-1
0 stars 0 forks source link

Specification of which facet is being restricted in a datatype restriction is missing #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The schema describes datatype restrictions as follows

   <xsd:element name="DatatypeRestriction">
     <xsd:complexType>
       <xsd:sequence>
         <xsd:element ref="owl11xml:Datatype"/>
         <xsd:element ref="owl11xml:Constant"/>
       </xsd:sequence>
       <xsd:attributeGroup ref="xml:specialAttrs"/>
     </xsd:complexType>
   </xsd:element>

There is no way to specify which facet is being restricted.

Since it looks like multiple facet restrictions per restricted datatype will be 
allowed [1] I suggest 
that we have a syntax that has a datatype facet restriction element, so that we 
have something 
which looks something like this:

                    <DatatypeRestriction>
                        <Datatype URI="&xsd;nonNegativeInteger"/>
                        <DatatypeFacetRestriction facet="&owl11;minInclusive">
                            <Constant Datatype="&xsd;int">10</Constant>
                        </DatatypeFacetRestriction>
                    </DatatypeRestriction>

Cheers,

Matthew

[1] Bug 10: http://code.google.com/p/owl1-1/issues/detail?id=10&can=2&q=

Original issue reported on code.google.com by matthew....@googlemail.com on 18 Apr 2007 at 8:43

GoogleCodeExporter commented 9 years ago

Original comment by bparsia on 18 Apr 2007 at 1:01

GoogleCodeExporter commented 9 years ago

Original comment by pfpschne...@gmail.com on 24 Oct 2007 at 9:05