BNF for EARL

Hi,

I am playing around with the idea of formalizing the EARL model in BNF and would love some feedback. Below is a very rough outline of the idea. Note that it is missing all the strings to generate the actual RDF/XML tags as well as inheritance and other RDF-specific stuff. Still, it already shows some interesting concepts about the actual model and what parsers currently need to process. Is this worth while and useful for others?


: Report
Report: Assertion*
Assertion : Assertor+ Subject+ Testcase+ Mode+ Result+

Assertor : (Person | Software | Compound)
Person : Name* mBox* Sha1Sum*
Compound : Title* Description* mainAssertor+ helpAssertor*
mainAssertor : Assertor
helpAssertor : Assertor

Subject : hasPart* isPartOf* Date Title* Description*

Testcase : hasPart* isPartOf* Title* Description* Location*

Mode : ("Automatic" | "Manual" | "Heuristic")

Result : Validity Confidence+ Message*
Validity : ("Pass" | "Fail" | "NotApplicable" | "NotTested" | "CanNotTell")
Confidence : ("High" | "Medium" | "Low")

Software : Title+ hasVersion* Description* Location*

WebContent : httpRequest* httpResponse* Location* Format*

Name : <Literal>
mBox : <Literal>
Sha1Sum : <Literal>
Title : <Literal>
Description : <Literal>
hasPart : <URI>
isPartOf : <URI>
Location : <URI>
Date : <gDate>
Message : <Literal>
hasVersion : <Literal>
Format : <Literal>
httpRequest : <Literal>
httpResponse : <Literal>


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, 10 October 2005 16:01:26 UTC