RE: A valuable lesson on the difference between XML Schemas and ontologies

"Costello, Roger L." <[email protected]>
Newsgroups gmane.text.xml.schema.devel
Message-ID <[email protected]>
Hi Folks,

Thanks for the excellent feedback!

I added the following section to the paper:

------------------------------
What Kind Of Thing Is It?
------------------------------
Suppose processing of XML instance documents requires answers to these questions:

    - What kind of thing is Book? 
    - What kind of thing is Person? 
    - What kind of thing is title? 
    - What kind of thing is author? 
    - What kind of thing is name? 

Here are the answers we expect to get:

    - Book is an Object
    - Person is an Object
    - title is a property
    - author is a property
    - name is a property

In this paper I have attempted to persuade you that "what-kind-of-thing-is-it" questions are best answered with an ontology, not an XML Schema. The relationship of each element to a semantic identifier such as Object or property is readily expressed in an RDF Schema, as shown below. The below RDF Schema is read as: "A Book is a subclass of Object (i.e., a Book is an Object). A Person is an Object. A title is a property. An author is a property. A name is a property."

 <?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">

    <rdfs:Class rdf:ID="Object">
    </rdfs:Class>
    
    <rdfs:Class rdf:ID="property">
    </rdfs:Class>

    <rdfs:Class rdf:ID="Book">
        <rdfs:subClassOf rdf:resource="#Object"/>
    </rdfs:Class>

    <rdfs:Class rdf:ID="Person">
        <rdfs:subClassOf rdf:resource="#Object"/>
    </rdfs:Class>

    <rdfs:Class rdf:ID="title">
        <rdfs:subClassOf rdf:resource="#property"/>
    </rdfs:Class>

    <rdfs:Class rdf:ID="author">
        <rdfs:subClassOf rdf:resource="#property"/>
    </rdfs:Class>

    <rdfs:Class rdf:ID="name">
        <rdfs:subClassOf rdf:resource="#property"/>
    </rdfs:Class>

</rdf:RDF>

More ... http://www.xfront.com/What-Kind-Of-Thing-Is-It.pdf  

Comments welcome.

/Roger
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.