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

RE: SubClassOf vs Child Element

From: Didier VILLEVALOIS <dvillevalois@techmetrix.net>
Date: Thu, 6 Jun 2002 10:28:17 +0200
Message-ID: <6CED7AD2680ED611BB8E0090276CE924025F619D@mail-paris.sqli.com>
To: curiozen@yonsei.ac.kr, www-rdf-interest@w3.org

Hello Jie,
 
In fact, you cannot do what you did in your second example. Because this
would
mean that you may have an 'rdfs:Property' property on a 'rdfs:Property'-
typed node.
 
'rdfs:Property' is a class whereas 'rdfs:subPropertyOf', 'rdfs:domain' and
'rdfs:range'
are properties. In RDF, the child element structure does have a particular
semantic.
You can be in either of this two cases:  
    - you are in an element that represents an instance
            and so what you put in is the elements for its properties  
    - you are in an element that represents a property for an instance
            and so what you put in is the element (or string) for its
instance value
 
So when you write:
 
<rdf:RDF  
                xmlns:rdf="http://www.w3.org/..."  
                xmlns:myNS="http://www.example.com/MyVocabulary"
>
    <rdf:Description rdf:ID="toto">
        <myNS:myPropertyName>A value</myNS:myPropertyName>
    </rdf:Description>
</rdf:RDF>
 
You just tell this triple:
 
(#toto, http://www.example.com/MyVocabulary#myPropertyName,
<http://www.example.com/MyVocabulary#myPropertyName>  "A value")
 
which means in english, "#toto has 'A value' for myPropertyName".
Received on Thursday, 6 June 2002 04:28:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:54 GMT