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

Re: Associating EARL with a page

From: Shadi Abou-Zahra <shadi@w3.org>
Date: Sun, 10 Apr 2005 11:47:53 +0200
To: "'Charles McCathieNevile'" <charles@sidar.org>, "'Eric Prud'hommeaux'" <eric@w3.org>
Cc: <public-wai-ert@w3.org>
Message-ID: <000201c53db2$5e2911b0$64930b50@K2>

Hi,

> PREFIX earl: <http://www.w3.org/WAI/ER/EARL/nmg-strawman#>
> PREFIX dc:   <http://purl.org/dc/elements/1.1/>
> 
> SELECT ?subject, ?test, ?result, ?assertor, ?date, ?mode, 
> ?some, ?more, ?spare, ?stuff
> 
> WHERE
>    ( earl:Assertion earl:assertedBy ?assertor )
>    ( earl:Assertion earl:result ?result )
>    ( earl:Assertion earl:subject ?subject )
>    ( earl:Assertion dc:date ?date )
>    ( earl:Assertion earl:mode ?mode )
>    ( earl:Assertion earl:testCase ?test )
> OPTIONAL {
>    ( earl:Assertion ?spare ?stuff )
>    OPTIONAL
>      ( ?stuff ?some ?more )
> }

I must admit, I'm not up to SPARQL as I probably should be but it strikes me that earl:Assertion is not a variable. Also, isn't earl:result actually a -bnode?

In RDQL I've been working with queries like this to return all assertions for a <QUERY-URL> (which automatically assumes the type earl:WebContent for the subject):

---
?assertion, earl:subject, ?subject
?assertion, earl:result, ?bnode
?assertion, earl:mode, ?mode
?assertion, earl:testcase, ?testcase
?assertion, earl:assertedBy, ?assertor
?bnode, earl:validity, ?validity
?bnode, earl:message, ?message
?bnode, earl:confidence, ?confidence
?subject, earl:reprOf, <QUERY-URL>
?subject, dc:date, ?date
---

Two more queries are required to fetch the information about tool- and human- type assertors. For example:

---
?assertor, earl:name, ?name
?assertor, earl:email, ?email
---

How would that look in SPARQL? (yeah, I know I should go RTFM)

Best,
  Shadi
Received on Sunday, 10 April 2005 09:47:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:52:49 UTC