W3C home > Mailing lists > Public > www-rdf-interest@w3.org > June 2003

Proposed extensions to OWL?

From: Roger L. Costello <costello@mitre.org>
Date: Sat, 14 Jun 2003 07:20:36 -0400
Message-ID: <3EEB0504.66F03D3F@mitre.org>
To: www-rdf-interest@w3.org
CC: robin.berjon@expway.fr, "Costello,Roger L." <costello@mitre.org>

Hi Folks,

Yesterday I sent out a message asking about technologies to express
mathematical relationships.  Robin Berjon responded with a very
interesting idea.  I would like to get your thoughts on it, and see if
collectively we can come up with something cool.

First I will show you a slightly modified version of Robin's proposal,
then I will show Robin's original proposal.

Robin's Idea Slightly Modified

The idea is to extend OWL and base the solution on xPath.

Suppose that I would like to state that these two properties are
equivalent via a conversion factor:

     length-in, length-cm

i.e., length in inches, and length in centimeters

The conversion factor is: 

    length-in = length-cm / 2.54
    length-cm = length-in * 2.54

With today's OWL here is how you would define these properties:

   <owl:DatatypeProperty rdf:ID="length-in">
      <rdfs:range rdf:resourse="&xsd;decimal"/>

   <owl:DatatypeProperty rdf:ID="length-cm">
      <rdfs:range rdf:resourse="&xsd;decimal"/>

The proposal is to extend OWL to allow you to assert that these two
properties are equivalent by the above conversion factor.  Here's how it
might look:

   <owl:DatatypeProperty rdf:ID="length-in">
      <owl:equivalentProperty rdf:resource="#length-cm"
                        owl-x:conversionFactor="current() * 2.54"/>
      <rdfs:range rdf:resourse="&xsd;decimal"/>

   <owl:DatatypeProperty rdf:ID="length-cm">
      <owl:equivalentProperty rdf:resource="#length-in"
                        owl-x:conversionFactor="current() / 2.54"/>
      <rdfs:range rdf:resourse="&xsd;decimal"/>

   owl-x is an OWL eXtension namespace,
   current() is the xPath function referring to the current node.

Now let me show you Robin's idea:

Robin's idea is also to base the solution on xPath. Here's what Robin

"For instance:

<foo:PropertyEquivalence from='measure:inch'
                          convert='$in_1 * 2.54'/>

<foo:PropertyEquivalence from='measure:cm'
                          convert='$in_1 div 2.54'/>

would allow you to declare that the following are equivalent:



You could allow for multiple inputs to your binding:

                  convert='$in_1 * $in_2'/>

and perhaps equivalentize, depending on whether it makes sense in that



so that given the first you could still query for flat:Bedrooms that
are larger than 20sqm.

You may need to throw in stuff from EXSLT Math if you want more than
XPath provides."


Okay, those are the two ideas thus far.  What do you think?  Feel free
to add your own ideas.  If this whole approach is bad, feel free to say
so. The intent here is to brainstorm.  If these conversion rules are
better stated using another technology (e.g., RuleML) please say so. 
Received on Saturday, 14 June 2003 07:21:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:42 UTC