- From: Ivan Herman <ivan@w3.org>
- Date: Wed, 1 Dec 2010 11:02:35 +0100
- To: Shane P McCarron <shane@aptest.com>
- Cc: W3C RDFa WG <public-rdfa-wg@w3.org>
- Message-Id: <54004D39-A566-4E19-A2CE-9231B32456E2@w3.org>
Shane,
Victor Andrée (cc-d) contacted me a few days ago because he found some bug in my newest pyRdfa code. However... one issue was not my bug but yours:-)
at the moment, the XHTML Profile file[1] has RDFa snippets of the sort
[[[
<dt id="alternate" about="#alternate" property='rdfa:term' typeof="rdf:Property">alternate</dt>
<dd about="#alternate" property="rdfs:comment" datatype="xsd:string"><span property='rdfa:uri' content='#alternate'>alternate</span>
designates alternate versions for a resource.</dd>
]]]
and that generates:
[[[
xhv:alternate a rdf:Property ;
rdfs:comment """alternate
designates alternate versions for a resource."""^^xsd:string ;
rdfs:member xhv:relrev-properties ;
rdfa:term "alternate"@en-US ;
rdfa:uri "#alternate"@en-US .
]]]
There are actually two problems there, a minor and a major.
1. The major one: the object for rdfa:uri should be a full, absolute URI an not a fragment. I know that there is a <base> in the header, but that does not affect a literal...
2. Mainly for that rdf:uri but even for the term, I am not sure that adding a @en-US is o.k. I do not expect any processing node to be bothered, but, well,... I guess a lang="" is in order for all the statements...
Ie, the XHTML code should be:
[[[
<dt id="alternate" about="#alternate" property='rdfa:term' typeof="rdf:Property" lang="">alternate</dt>
<dd about="#alternate" property="rdfs:comment" datatype="xsd:string"><span property='rdfa:uri' content='http://www.w3.org/1999/xhtml/vocab#alternate' lang="">alternate</span>
designates alternate versions for a resource.</dd>
]]]
Thanks!
Ivan
[1] http://www.w3.org/1999/xhtml/vocab/
----
Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
PGP Key: http://www.ivan-herman.net/pgpkey.html
FOAF: http://www.ivan-herman.net/foaf.rdf
Attachments
- application/pkcs7-signature attachment: smime.p7s
Received on Wednesday, 1 December 2010 10:00:17 UTC