- From: Manu Sporny <msporny@digitalbazaar.com>
- Date: Fri, 18 Sep 2009 14:06:54 -0400
- To: Evan Goer <goer@yahoo-inc.com>
- CC: RDFa Developers <public-rdf-in-xhtml-tf@w3.org>
(moving discussion to RDFa Task Force mailing list)
Evan Goer wrote:
>> PS: RDFa community - both of these issues could have been easily avoided
>> if we had a conformance checker. Anybody want to volunteer to write one?
>
> If you do, please make sure it has an simple API we can hit -- we might
> want to call out strict RDFa conformance in our SearchMonkey
> ObjectFinder. :) Ditto for the Google guys and their Rich Snippets
> validator.
What kind of API would you like? Would REST-based JSON be ok? Anybody
from Google want to weigh in on what they'd want as a validator API?
So, something like:
HTTP POST to http://example.org/rdfa-validator?url=XYZ
and it would give you back something like:
[
{
"type": "warning",
"line": 2,
"column": 34
"markup": "<html ... xml:lang=\"en\">"
"message": "The attribute version=\"HTML+RDFa 1.0\" should be
specified in the <html> element at the top of your document."
},
{
"type": "warning",
"line": 1745,
"column": 65,
"markup": "<div typeof=\"Product\">"
"message": "Ignoring 'Product' in @typeof because it is an unknown
value. Maybe you meant to use 'v:Product'?"
},
{
"type": "error",
"line": 2817,
"column": 145,
"markup": "<img about=\"#camera\" src=\"cam3.jpg>"
"message": "There is an error in your XHTML markup which may cause
further triples to be corrupted."
},
{
"type": "summary",
"message": "There are 2 warnings and 1 error in your markup."
}
]
Would that be sufficient? Or were you thinking about something different?
-- manu
--
Manu Sporny (skype: msporny, twitter: manusporny)
President/CEO - Digital Bazaar, Inc.
blog: The Pirate Bay and Building an Equitable Culture
http://blog.digitalbazaar.com/2009/08/30/equitable-culture/
Received on Friday, 18 September 2009 18:07:34 UTC