bergie / VIE

Semantic Interaction Framework for JavaScript
http://viejs.org/
MIT License
303 stars 56 forks source link

RDFa 1.1 seems unsupported #161

Open warpr opened 11 years ago

warpr commented 11 years ago

(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

indeyets commented 11 years ago

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

warpr commented 11 years ago

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