On 30 May 2015 at 00:56, Anne van Kesteren <ann...@annevk.nl> wrote: > We've bitten ourselves before going down the RDF rathole (see > extensions et al). Not sure we should so rapidly start again. Why > can't you use the Microdata API? >
Is this already supported in Gecko? I can't find it documented anywhere, except a partial implementation in bug 591467 and a suggestion to remove it again in bug 909633. If it was then that would help, but it wouldn't quite solve the problem we're trying to solve here. We need to get the Linked Data from an embedded mozbrowser iframe for use in the system app and we don't have access the Document object (hence the Browser API). If there was an implementation of the Microdata DOM API I guess we could hook up a getLinkedData() method to that inside Gecko. But Microdata is only one of the formats widely used on the web today. I'd like to see some evidence-based discussion on which format(s) we should support to get the most possible value out of what already exists on the web. The examples we used in our prototype all use Open Graph, which seems quite widely used (mainly due to Facebook and Twitter) and is based on RDFa. JSON-LD seems like a convenient format which can express them all, and is useful in its own right. We could quite easily detect script tags in the DOM like <script type="application/ld+json">. Examples are provided for RDFa, Microdata and JSON-LD on all the schema.org schemas, but I'm not sure what weighting these are given by the various search engines. If anyone has data on that it would be really helpful! Ben _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform