VIE icon indicating copy to clipboard operation
VIE copied to clipboard

RDFa 1.1 seems unsupported

Open warpr opened this issue 12 years ago • 2 comments

(Originally posted to create.js at https://github.com/bergie/create/issues/180 )

I have changed the prefix declaration in examples/example.html to this:

    <div prefix="sioc: http://rdfs.org/sioc/ns#  dc: http://purl.org/dc/terms/"

As the xmlns: syntax is deprecated in RDFa 1.1. I also renamed dcterms to dc.

If I now reload the page I get the following errors in vie-min.js:

Error: No prefix found for URI 'dc:hasPart'!
Error: No prefix found for URI 'dc:title'!

Whereas if I search and replace "dcterms" with "dc" in the original document everything still works.

My changes are in https://github.com/warpr/create/tree/rdfa-1.1-test

warpr avatar May 10 '13 11:05 warpr

@warpr you have a spacebar after sioc:. is that intentional?

indeyets avatar May 10 '13 11:05 indeyets

yes. I omitted the space after dc:, which is not intentional (it doesn't change the outcome however).

See: http://www.w3.org/TR/xhtml-rdfa-primer/#repeating-properties

warpr avatar May 10 '13 12:05 warpr