W3C home > Mailing lists > Public > public-wai-ert@w3.org > June 2005

OWL Restrictions

From: Shadi Abou-Zahra <shadi@w3.org>
Date: Fri, 03 Jun 2005 10:36:10 +0200
Message-ID: <42A0167A.6050001@w3.org>
To: public-wai-ert@w3.org

Hi,

Still playing around with the optimal way of integrating external vocabulary into the EARL schema. Let's say we want to define earl:TestSubject to have *exactly* one dc:date and *any number* of dc:isPartOf. Additionally, the dc:isPartOf should point from on earl:TestSubject to another. Does the following OWL construct behave the way we want it to?


<rdfs:Class rdf:about="&earl;TestSubject" rdfs:label="Subject being tested"> 
  <rdfs:subClassOf rdf:resource="&rdfs;Resource"/> 
  <rdfs:subClassOf>
    <owl:Restriction> 
      <owl:onProperty rdf:resource="&dc;date"/>
      <owl:minCardinality rdf:datatype="&xsd;nonNegativeInteger">1</owl:minCardinality>
      <owl:maxCardinality rdf:datatype="&xsd;nonNegativeInteger">1</owl:minCardinality>
    </owl:Restriction>
    <owl:Restriction> 
      <owl:onProperty rdf:resource="&dc;isPartOf">
        <rdfs:range rdf:resource="&earl;TestSubject"/> 
      </owl:onProperty>
      <owl:minCardinality rdf:datatype="&xsd;nonNegativeInteger">0</owl:minCardinality>
    </owl:Restriction>
  </rdfs:subClassOf>
</rdfs:Class> 


Regards,
  Shadi


-- 
Shadi Abou-Zahra,       Web Accessibility Specialist for Europe 
World Wide Web Consortium (W3C),             http://www.w3.org/ 
Web Accessibility Initiative (WAI),      http://www.w3.org/WAI/ 
IST WAI-TIES Project (WAI-TIES)     http://www.w3.org/WAI/TIES/ 
Evaluation and Repair Tools (ERT WG), http://www.w3.org/WAI/ER/ 
2004, Route des Lucioles BP93 - 06560 Sophia-Antipolis - France 
Voice: +33(0)4 92 38 50 64             Fax: +33(0)4 92 38 78 22 
Received on Friday, 3 June 2005 08:36:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:25 GMT