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

RE: Suggestions for implementing a "document matches" program?

From: Yaser Bishr <yaserb@imagem.cc>
Date: Tue, 22 Apr 2003 11:36:19 -0400
To: <www-rdf-interest@w3.org>

To do this we would need either mapping between the underlying ontology and
the schema of that instance document. Or, we can also have a large ontology
(like wordnet) that has all possible synonyms so that when the program finds
an unknown term it goes and find synonyms from the ontology. but then the
problem with that is finding synonyms will be based on string matching. so
if the ontology states that "Fstop is synonymous with Aperture", then no
matching to f-stop will occur.

-----Original Message-----
From: www-rdf-interest-request@w3.org
[mailto:www-rdf-interest-request@w3.org]On Behalf Of Roger L. Costello
Sent: Monday, April 21, 2003 8:42 AM
To: www-rdf-interest@w3.org
Cc: Costello,Roger L.
Subject: Re: Suggestions for implementing a "document matches" program?

Dan Brickley wrote:
> > Suppose that you want to create a PROGRAM which, when handed *any*
> > XML instance document, decides whether or not it meets this desire:
> >
> > "I am interested in purchasing a camera with a 75-300mm zoom lens,
> > that has an aperture of 4.5-5.6, and a shutter speed that ranges
> > from 1/500 sec. to 1.0 sec."
> Interesting question, but I'm going to be nitpicky.
> You describe two things,
>  i) some random XML instance document
>  ii) a personal interest in the purchasing of an object with certain
>      characteristics specified at various levels of detail.
> Are you asking how we can find out whether the XML document, when read
> as making assertions about the world, makes any assertions about an
> object that fits that description?

Hi Dan.  Let me see if I can clarify my message with a couple of
examples.  If I hand this XML instance document to PROGRAM it should
output "Yes, it MATCHES"

<?xml version="1.0?>
<PhotographyStore rdf:ID="Hunts"

    <store-location>Malden, MA</store-location>
    <catalog rdf:parseType="Collection">
        <SLR rdf:ID="Olympus-OM-10"
                       <focal-length>75-300mm zoom</focal-length>
                      <shutter-speed rdf:parseType="Resource">
            <cost rdf:parseType="Resource">

The PROGRAM should be able to realize (by consulting the Camera
Ontology) that

   SLR is a type of Camera
   f-stop is synonymous with aperture
   focal-length is synonymous with size

Further, the desired values for aperture and size are met by this XML
instance document.  Thus, this XML instance document is a match!

On the other hand, the PROGRAM should be able to recognize that this XML
instance document ...

<?xml version="1.0"?>

.. is not a match, since it is not talking about Cameras.

Does this make my message clearer?  /Roger

Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.471 / Virus Database: 269 - Release Date: 4/10/2003

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.474 / Virus Database: 272 - Release Date: 4/18/2003
Received on Tuesday, 22 April 2003 11:40:25 UTC

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