W3C home > Mailing lists > Public > public-wai-ert@w3.org > July 2006

Re: earl location pointer methods

From: Jim Ley <jim@jibbering.com>
Date: Wed, 5 Jul 2006 13:50:33 +0100
Message-ID: <02da01c6a031$9af88de0$0302a8c0@Sniff>
To: <public-wai-ert@w3.org>

"Jim Ley" <jim@jibbering.com>

Below is the rdfs for earl location pointer types, I've taken into account 
the subsequent threads, so there's byteOffset and charOffset, as well as an 
XPath class which can support namespaces.

Cheers,

Jim.




<rdf:RDF
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
 xmlns:earl="http://www.w3.org/WAI/ER/EARL/nmg-strawman#"
 xmlns:owl="http://www.w3.org/2002/07/owl#"
>

  <rdf:Property 
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#lineCharLength">
    <rdfs:label xml:lang="en">line char length</rdfs:label>
    <rdfs:comment xml:lang="en">The location, represented by a line char 
length</rdfs:comment>
    <rdfs:range 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#LineCharLength"/>
  </rdf:Property>

 <rdfs:Class 
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#LineCharLength">
    <rdfs:label xml:lang="en">LineCharLength</rdfs:label>
    <rdfs:comment xml:lang="en">The line/character and optionally length of 
a piece of interest</rdfs:comment>
  <owl:Restriction>
     <owl:onProperty 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#line"/>
    <owl:minCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:minCardinality>
   <owl:maxCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
  </owl:Restriction>
  <owl:Restriction>
     <owl:onProperty 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#char"/>
    <owl:minCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:minCardinality>
   <owl:maxCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
  </owl:Restriction>
  <owl:Restriction>
     <owl:onProperty 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#length"/>
    <owl:minCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">0</owl:minCardinality>
   <owl:maxCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
  </owl:Restriction>
 </rdfs:Class>
 <rdf:Property rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#line">
    <rdfs:label xml:lang="en">line</rdfs:label>
    <rdfs:comment xml:lang="en">The line in a source document</rdfs:comment>
 </rdf:Property>
 <rdf:Property rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#char">
    <rdfs:label xml:lang="en">char</rdfs:label>
    <rdfs:comment xml:lang="en">The character in a line</rdfs:comment>
 </rdf:Property>
 <rdf:Property 
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#length">
    <rdfs:label xml:lang="en">length</rdfs:label>
    <rdfs:comment xml:lang="en">The length of a LineCharLength 
region</rdfs:comment>
 </rdf:Property>

 <rdf:Property 
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#byteOffset">
   <rdfs:label xml:lang="en">byte offset</rdfs:label>
   <rdfs:comment xml:lang="en">The number of bytes into the 
region.</rdfs:comment>
 </rdf:Property>

 <rdf:Property 
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#charOffset">
   <rdfs:label xml:lang="en">char offset</rdfs:label>
   <rdfs:comment xml:lang="en">The number of characters into the 
region.</rdfs:comment>
 </rdf:Property>


 <rdf:Property 
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#xpointer">
   <rdfs:label xml:lang="en">XPointer</rdfs:label>
   <rdfs:comment xml:lang="en">An xpointer pointing into the 
document</rdfs:comment>
 </rdf:Property>

 <rdf:Property 
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#htmlpointer">
   <rdfs:label xml:lang="en">HTML Pointer</rdfs:label>
   <rdfs:comment xml:lang="en">An html pointer is similar to an XPointer, 
but defined over HTML documents, see ...</rdfs:comment>
 </rdf:Property>

 <rdf:Property 
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#snippet">
   <rdfs:label xml:lang="en">Snippet</rdfs:label>
   <rdfs:comment xml:lang="en">A pointer to a snippet of the whole 
content</rdfs:comment>
   <rdfs:range 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#Snippet"/>
 </rdf:Property>

 <rdfs:Class rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#Snippet">
    <rdfs:label xml:lang="en">Snippet</rdfs:label>
    <rdfs:comment xml:lang="en">A part of a document</rdfs:comment>
  <owl:Restriction>
     <owl:onProperty 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#content"/>
    <owl:minCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">0</owl:minCardinality>
   <owl:maxCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
  </owl:Restriction>
  <owl:Restriction>
     <owl:onProperty 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#byteContent"/>
    <owl:minCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">0</owl:minCardinality>
   <owl:maxCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
  </owl:Restriction>
  <owl:Restriction>
     <owl:onProperty 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#charOffset"/>
    <owl:minCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">0</owl:minCardinality>
   <owl:maxCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
  </owl:Restriction>
  <owl:Restriction>
     <owl:onProperty 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#byteOffset"/>
    <owl:minCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">0</owl:minCardinality>
   <owl:maxCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
  </owl:Restriction>

 </rdfs:Class>

 <rdf:Property 
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#content">
   <rdfs:label xml:lang="en">Content</rdfs:label>
   <rdfs:comment xml:lang="en">Some content that is a snippet of a 
document.</rdfs:comment>
   <rdfs:domain 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#Snippet"/>
 </rdf:Property>

 <rdf:Property 
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#byteContent">
   <rdfs:label xml:lang="en">Byte Content</rdfs:label>
   <rdfs:comment xml:lang="en">Some content that is a snippet of a document, 
it has been base64 encoded.</rdfs:comment>
   <rdfs:domain 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#Snippet"/>
 </rdf:Property>




 <rdfs:Class rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#XPath">
    <rdfs:label xml:lang="en">XPath Class </rdfs:label>
    <rdfs:comment xml:lang="en">An XPath class that encapsulates an XPath 
expression and prefixes</rdfs:comment>
  <owl:Restriction>
     <owl:onProperty 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#expression"/>
    <owl:minCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:minCardinality>
   <owl:maxCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
  </owl:Restriction>
  <owl:Restriction>
   <owl:onProperty 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#xpathNamespaces"/>
    <owl:minCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">0</owl:minCardinality>
  </owl:Restriction>
 </rdfs:Class>

 <rdf:Property 
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#expression">
   <rdfs:label xml:lang="en">Expression</rdfs:label>
   <rdfs:comment xml:lang="en">An XPath expression.</rdfs:comment>
   <rdfs:domain 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#XPath"/>
 </rdf:Property>

 <rdf:Property 
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#xpathNamespace">
   <rdfs:label xml:lang="en">XPath namespace</rdfs:label>
   <rdfs:comment xml:lang="en">A namespace used in a particular xpath 
expression</rdfs:comment>
   <rdfs:domain 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#XPath"/>
   <rdfs:range 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#Namespace"/>
 </rdf:Property>

 <rdfs:Class 
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#Namespace">
    <rdfs:label xml:lang="en">Namespace Class </rdfs:label>
    <rdfs:comment xml:lang="en">A namespace class that relates a prefix to a 
namespace for an XPath expression</rdfs:comment>
  <owl:Restriction>
     <owl:onProperty 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#prefix"/>
    <owl:minCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:minCardinality>
   <owl:maxCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
  </owl:Restriction>
  <owl:Restriction>
     <owl:onProperty 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#namespaceUri"/>
    <owl:minCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:minCardinality>
   <owl:maxCardinality 
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
  </owl:Restriction>
 </rdfs:Class>

 <rdf:Property 
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#prefix">
   <rdfs:label xml:lang="en">namespace prefix</rdfs:label>
   <rdfs:comment xml:lang="en">A namespace prefix</rdfs:comment>
   <rdfs:domain 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#Namespace"/>
 </rdf:Property>

 <rdf:Property 
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#namespaceUri">
   <rdfs:label xml:lang="en">namespace uri</rdfs:label>
   <rdfs:comment xml:lang="en">A namespace uri</rdfs:comment>
   <rdfs:domain 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#Namespace"/>
 </rdf:Property>



</rdf:RDF>
Received on Wednesday, 5 July 2006 12:51:04 GMT

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