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

Proposal for earl:Location

From: Shadi Abou-Zahra <shadi@w3.org>
Date: Mon, 03 Oct 2005 16:00:42 +0200
Message-ID: <4341398A.8040605@w3.org>
To: public-wai-ert@w3.org

Hi,

The following is a rough proposal for the location class. A location can be one of four types:


Single Location
 - one "pointer" using all means we have (XPath/XPointer/XQuery/Line/Offset/etc) to point to one instance of a location within a subject.

Range Location
 - has two types of "pointers" for start and end (each "pointer" is actually a single location).

Shadow Location
 - same as "range" but with primary/additional "pointers" (that are also single location types).

Compound Location
 - any other unstructured location with one or more "pointers" (single location).


Below is the schema for the location (please note that many details are still to be determined):


<rdfs:Class rdf:about="&earl;Location">
  <rdfs:label xml:lang="en">Location</rdfs:label>
  <rdfs:comment xml:lang="en">Location for the result within the subject</rdfs:comment>
  <owl:oneOf rdf:parseType="Collection">
    <!--// this is the basic type of location //-->
    <owl:Thing rdf:about="&earl;singleLocation"/>
    <!--// the following are more complex types //-->
    <owl:Thing rdf:about="&earl;rangeLocation"/>
    <owl:Thing rdf:about="&earl;shadowLocation"/>
    <owl:Thing rdf:about="&earl;compoundLocation"/>
    <!--// other types can be added if needed //-->
  </owl:oneOf>
</rdfs:Class>

<rdfs:Class rdf:about="&earl;singleLocation">
  <rdfs:label xml:lang="en">Single Location</rdfs:label>
  <rdfs:comment xml:lang="en">everything we have to point to a location in a subject</rdfs:comment>
  <rdfs:subClassOf rdf:parseType="Collection">
    <owl:Restriction>
      <owl:onProperty rdf:resource="&dc;title"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
    <owl:Restriction>
      <owl:onProperty rdf:resource="&dc;description"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
    <owl:Restriction>
      <owl:onProperty rdf:resource="&earl;Line"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
    <owl:Restriction>
      <owl:onProperty rdf:resource="&earl;Column"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
    <owl:Restriction>
      <owl:onProperty rdf:resource="&earl;XPath"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
    <owl:Restriction>
      <owl:onProperty rdf:resource="&earl;Fuzzy"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
    <!--// exact locator types are to be determined //-->
  </rdfs:subClassOf>
</rdfs:Class>

<rdfs:Class rdf:about="&earl;rangeLocation">
  <rdfs:label xml:lang="en">Range Location</rdfs:label>
  <rdfs:comment xml:lang="en">@@@</rdfs:comment>
  <rdfs:subClassOf rdf:parseType="Collection">
    <owl:Restriction>
      <owl:onProperty rdf:resource="&dc;title"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
    <owl:Restriction>
      <owl:onProperty rdf:resource="&dc;description"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
    <owl:Restriction>
      <owl:onProperty rdf:resource="&earl;startLocation"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
    <owl:Restriction>
      <owl:onProperty rdf:resource="&earl;endLocation"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
  </rdfs:subClassOf>
</rdfs:Class>

<rdfs:Class rdf:about="&earl;shadowLocation">
  <rdfs:label xml:lang="en">Shadow Locator</rdfs:label>
  <rdfs:comment xml:lang="en">@@@</rdfs:comment>
  <rdfs:subClassOf rdf:parseType="Collection">
    <owl:Restriction>
      <owl:onProperty rdf:resource="&dc;title"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
    <owl:Restriction>
      <owl:onProperty rdf:resource="&dc;description"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
    <owl:Restriction>
      <owl:onProperty rdf:resource="&earl;primaryLocation"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
    <owl:Restriction>
      <owl:onProperty rdf:resource="&earl;additionalLocation"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
  </rdfs:subClassOf>
</rdfs:Class>

<rdfs:Class rdf:about="&earl;compoundLocation">
  <rdfs:label xml:lang="en">Shadow Locator</rdfs:label>
  <rdfs:comment xml:lang="en">@@@</rdfs:comment>
  <rdfs:subClassOf rdf:parseType="Collection">
    <owl:Restriction>
      <owl:onProperty rdf:resource="&dc;title"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
    <owl:Restriction>
      <owl:onProperty rdf:resource="&dc;description"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
    <owl:Restriction>
      <owl:onProperty rdf:resource="&earl;hasLocation"/>
      <!--// min / max cardinality constraints //-->
    </owl:Restriction>
  </rdfs:subClassOf>
</rdfs:Class>

<rdf:Property rdf:about="&earl;Locator">
  <rdfs:label xml:lang="en">Locator</rdfs:label>
  <rdfs:comment xml:lang="en">@@@</rdfs:comment>
  <rdfs:domain rdf:resource="&earl;Location"/>
  <rdfs:range rdf:resource="&earl;Location"/>
</rdf:Property>

<rdf:Property rdf:about="&earl;startLocation">
  <rdfs:subClassOf rdf:resource="&earl;Locator"/>
  <rdfs:label xml:lang="en">Start Locator</rdfs:label>
  <rdfs:comment xml:lang="en">@@@</rdfs:comment>
  <rdfs:domain rdf:resource="&earl;rangeLocation"/>
  <rdfs:range rdf:resource="&earl;singleLocation"/>
</rdf:Property>

<!--// other locator types follow the same schema //-->

<!--// definition of actual location pointed TBD //-->


Regards,
  Shadi


-- 
Shadi Abou-Zahra,     Web Accessibility Specialist for Europe 
Chair and Team Contact for the Evaluation and Repair Tools WG 
World Wide Web Consortium (W3C),           http://www.w3.org/ 
Web Accessibility Initiative (WAI),    http://www.w3.org/WAI/ 
WAI-TIES Project,                 http://www.w3.org/WAI/TIES/ 
Evaluation and Repair Tools WG,     http://www.w3.org/WAI/ER/ 
2004, Route des Lucioles -- 06560, Sophia-Antipolis -- France 
Voice: +33(0)4 92 38 50 64           Fax: +33(0)4 92 38 78 22 
Received on Monday, 3 October 2005 14:00:59 GMT

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