[Fwd: Re: earl:location again]

-------- Original Message --------
Subject: Re: earl:location again
Date: Tue, 30 Aug 2005 11:53:22 +0200
From: Johannes Koch <johannes.koch@fit.fraunhofer.de>
To: shadi@w3.org
References: <43021BC8.4000705@fit.fraunhofer.de> <4309AF35.2030907@w3.org>

Hi Shadi,

I tried to write another EARL example with locations (test1.rdf) and
some RDFS for the location stuff (see below). I did not test it with a
validating parser, because VRP threw messages that I did not understand
and I had no time to dig into this parser.

...
    <rdfs:Class
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#Assertion">
      <rdfs:label xml:lang="en">An assertion</rdfs:label>
      <rdfs:comment xml:lang="en">Parent node that contains all parts of
an assertion</rdfs:comment>
      <rdfs:subClassOf rdf:parseType="Collection">
        <owl:Restriction>
          <owl:onProperty
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#assertedBy"/>
          <owl:minCardinality
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1
            </owl:minCardinality>
        </owl:Restriction>
        <owl:Restriction>
          <owl:onProperty
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#mode"/>
          <owl:minCardinality
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1
            </owl:minCardinality>
        </owl:Restriction>
        <owl:Restriction>
          <owl:onProperty
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#result"/>
          <owl:minCardinality
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1
            </owl:minCardinality>
        </owl:Restriction>
        <owl:Restriction>
          <owl:onProperty
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#location"/>
          <owl:minCardinality
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1
            </owl:minCardinality>
        </owl:Restriction>
        <owl:Restriction>
          <owl:onProperty
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#subject"/>
          <owl:minCardinality
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1
            </owl:minCardinality>
        </owl:Restriction>
        <owl:Restriction>
          <owl:onProperty
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#testcase"/>
          <owl:minCardinality
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1
            </owl:minCardinality>
        </owl:Restriction>
      </rdfs:subClassOf>
    </rdfs:Class>

...
    <rdf:Property
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#location">
      <rdfs:label xml:lang="en">location</rdfs:label>
      <rdfs:domain
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#Assertion"/>
      <rdfs:range
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#Location"/>
    </rdf:Property>

...
    <rdfs:Class
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#Location">
      <rdfs:label xml:lang="en">Location</rdfs:label>
      <rdfs:comment xml:lang="en">The location of an instance of an
error, warning, etc.</rdfs:comment>
      <rdfs:subClassOf rdf:parseType="Collection">
        <owl:Restriction>
          <owl:onProperty
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#xpath"/>
          <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#line"/>
          <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#line"/>
          <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:subClassOf>
    </rdfs:Class>

    <rdf:Property
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#xpath">
      <rdfs:label xml:lang="en">XPath</rdfs:label>
      <rdfs:comment xml:lang="en">XPath for a location in a markup
resource</rdfs:comment>
      <rdfs:domain
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#Location"/>
    </rdf:Property>
    <rdf:Property
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#line">
      <rdfs:label xml:lang="en">Line number</rdfs:label>
      <rdfs:comment xml:lang="en">Line number for a location in a text
resource</rdfs:comment>
      <rdfs:domain
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#Location"/>
    </rdf:Property>
    <rdf:Property
rdf:about="http://www.w3.org/WAI/ER/EARL/nmg-strawman#column">
      <rdfs:label xml:lang="en">Column number</rdfs:label>
      <rdfs:comment xml:lang="en">Column number for a location in a text
resource</rdfs:comment>
      <rdfs:domain
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#Location"/>
    </rdf:Property>
...


-- 
Johannes Koch - Competence Center BIKA
Fraunhofer Institute for Applied Information Technology (FIT.LIFE)
Schloss Birlinghoven, D-53757 Sankt Augustin, Germany
Phone: +49-2241-142628


-- 
Johannes Koch - Competence Center BIKA
Fraunhofer Institute for Applied Information Technology (FIT.LIFE)
Schloss Birlinghoven, D-53757 Sankt Augustin, Germany
Phone: +49-2241-142628

Received on Tuesday, 30 August 2005 16:43:56 UTC