Add support for Microdata #23

Open
bergie opened this Issue Jun 3, 2011 · 9 comments

Comments

Projects
None yet
6 participants
@bergie
Owner

bergie commented Jun 3, 2011

Due to the efforts of search engines (see http://schema.org/), it appears HTML5 microdata will become a rather important way of publishing machine-readable data on the web. Because of this, VIE should support it.

Reading and writing semantic data with the DOM is now handled in the VIE.RDFa object. We could implement an API-compatible VIE.Microdata object that systems could use instead as needed.

@bergie

This comment has been minimized.

Show comment
Hide comment
@bergie

bergie Jun 3, 2011

Owner

See microdata / RDFa mappings: http://schema.org/docs/datamodel.html

Owner

bergie commented Jun 3, 2011

See microdata / RDFa mappings: http://schema.org/docs/datamodel.html

@bergie

This comment has been minimized.

Show comment
Hide comment
@bergie

bergie Jun 8, 2011

Owner

Here is the first test for Microdata reading. Obviously fails now: 3c1afcb

Owner

bergie commented Jun 8, 2011

Here is the first test for Microdata reading. Obviously fails now: 3c1afcb

@andresgruber

This comment has been minimized.

Show comment
Hide comment
@andresgruber

andresgruber Jun 8, 2011

This http://gitorious.org/microdatajs and its live version at http://foolip.org/microdatajs/live/ might be of help to not fail ;-)

This http://gitorious.org/microdatajs and its live version at http://foolip.org/microdatajs/live/ might be of help to not fail ;-)

@neogermi

This comment has been minimized.

Show comment
Hide comment
@neogermi

neogermi Sep 26, 2011

Contributor

We are currently working on a Microdata reader/writer for rdfQuery. For the client-side version of VIE this will give immediately support for Microdata as it can use rdfQuery. We have to inspect if we can use that parser for node.js as well.

Contributor

neogermi commented Sep 26, 2011

We are currently working on a Microdata reader/writer for rdfQuery. For the client-side version of VIE this will give immediately support for Microdata as it can use rdfQuery. We have to inspect if we can use that parser for node.js as well.

@neogermi

This comment has been minimized.

Show comment
Hide comment
@neogermi

neogermi Nov 29, 2011

Contributor

untested so far, but please have a look at commit a214856

Contributor

neogermi commented Nov 29, 2011

untested so far, but please have a look at commit a214856

@ladariha

This comment has been minimized.

Show comment
Hide comment
@ladariha

ladariha Feb 11, 2012

Hi, is the implementation in mentioned commit a214856 working in node.js? If so, could you please provide some example how to parse html document for microdata items?

Hi, is the implementation in mentioned commit a214856 working in node.js? If so, could you please provide some example how to parse html document for microdata items?

@linclark

This comment has been minimized.

Show comment
Hide comment
@linclark

linclark Apr 4, 2012

You might also want to look at termi's Microdata shim, which is apparently browser tested as far back as IE6. I haven't used it myself, though.

https://github.com/termi/Microdata-JS

Microdata parsers are a lot simpler than RDFa parsers, so you could probably create and maintain your own if you wanted to. If the Drupal folks who are super excited about CreateJS get enough time to add stable support for it in Drupal, then I could help with this issue as well.

linclark commented Apr 4, 2012

You might also want to look at termi's Microdata shim, which is apparently browser tested as far back as IE6. I haven't used it myself, though.

https://github.com/termi/Microdata-JS

Microdata parsers are a lot simpler than RDFa parsers, so you could probably create and maintain your own if you wanted to. If the Drupal folks who are super excited about CreateJS get enough time to add stable support for it in Drupal, then I could help with this issue as well.

@bergie bergie referenced this issue in bergie/create Sep 25, 2012

Closed

Support custom DOM parsing services #116

@akuckartz

This comment has been minimized.

Show comment
Hide comment
@akuckartz

akuckartz Dec 18, 2012

A discussion is taking place in the W3C HTML5 WG if it makes sense to have a microdata standard in addition to RDFa:
http://manu.sporny.org/2012/microdata-cr/

I agree with Manu Sporny and therefore suggest to ignore HTML5 microdata and to concentrate on RDFa instead.

A discussion is taking place in the W3C HTML5 WG if it makes sense to have a microdata standard in addition to RDFa:
http://manu.sporny.org/2012/microdata-cr/

I agree with Manu Sporny and therefore suggest to ignore HTML5 microdata and to concentrate on RDFa instead.

@bergie

This comment has been minimized.

Show comment
Hide comment
@bergie

bergie Dec 19, 2012

Owner

@akuckartz Microdata might not make sense in VIE as a default, but given that the services are abstracted anyway, I'd love to have a Microdata (and even Microformats!) service out there.

Here is an example of a custom DOM service for VIE (this one using data attributes): https://github.com/wimleers/edit-createjs/blob/7.x-1.x/js/SparkEditService.js

Owner

bergie commented Dec 19, 2012

@akuckartz Microdata might not make sense in VIE as a default, but given that the services are abstracted anyway, I'd love to have a Microdata (and even Microformats!) service out there.

Here is an example of a custom DOM service for VIE (this one using data attributes): https://github.com/wimleers/edit-createjs/blob/7.x-1.x/js/SparkEditService.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment