W3C home > Mailing lists > Public > www-rdf-logic@w3.org > March 2003

Difference between cardinality=1 and FunctionalProperty?

From: Roger L. Costello <costello@mitre.org>
Date: Wed, 26 Mar 2003 06:39:07 -0500
Message-ID: <3E81915B.41ED8BA9@mitre.org>
To: www-rdf-logic@w3.org
CC: "Costello,Roger L." <costello@mitre.org>

Hi Folks,

Aren't the below two forms essentially stating the same thing:

     <owl:Class rdf:ID="Gun">
          <rdfs:subClassOf>
                <owl:Restriction>
                        <owl:onProperty rdf:resource="#serial"/>
                        <owl:cardinality>1</owl:cardinality>
                </owl:Restriction>
          </rdfs:subClassOf>
     </owl:Class>

     <owl:ObjectProperty rdf:ID="serial">
           <rdfs:domain rdf:resource="#Gun"/>
           <rdfs:range rdf:resource="&rdfs;#Literal"/>
     </owl:ObjectProperty>

VERSUS

     <owl:Class rdf:ID="Gun"/>

     <owl:FunctionalProperty rdf:ID="serial">
          <rdfs:domain rdf:resource="Gun" />
          <rdfs:range  rdf:resource="&rdfs;#Literal"/>
     </owl:FunctionalProperty>

Both forms state that an instance of Gun must have exactly one value for
the serial property; e.g.,

     <Gun rdf:ID="SmithWesson">
          <serial>ABCD</serial>
     </Gun>

Correct?  /Roger
Received on Wednesday, 26 March 2003 06:37:10 GMT

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