ISSUE-83 (CURIEs must require colon): CURIEs are dangerous when used in combination with @vocab and @about [LC Comment - RDFa Core 1.1]

ISSUE-83 (CURIEs must require colon): CURIEs are dangerous when used in combination with @vocab and @about [LC Comment - RDFa Core 1.1]

http://www.w3.org/2010/02/rdfa/track/issues/83

Raised by: Nathan Rixham
On product: LC Comment - RDFa Core 1.1

There is a bug in the CURIE syntax in RDFa Core where seemingly innocuous markup like the following will result in a set of surprising triples:

<div vocab="http://xmlns.com/foaf/0.1/" about="#me">
   My name is <span property="name">John Doe</span> and my blog is called
   <a rel="homepage" href="http://example.org/blog/">Understanding Semantics</a>.
</div>

The markup above, when processed via RDFa Core 1.1 processing rules will result in the following triples:

<http://xmlns.com/foaf/0.1/#me>
   <http://xmlns.com/foaf/0.1/name>
      "John Doe" .
<http://xmlns.com/foaf/0.1/#me>
   <http://xmlns.com/foaf/0.1/homepage>
      <http://example.org/blog/> .

Note that the subject is wrong. The subject should have been to a fragment identifier for the current page but since "#me" is a valid CURIE when used in conjunction with @vocab, the wrong subject is generated.

The solution to this problem must not create backward incompatibilities and must allow the usage of @vocab.

Received on Saturday, 5 February 2011 23:27:45 UTC