Giter Site home page Giter Site logo

Comments (7)

chaals avatar chaals commented on June 21, 2024

Ping @lanthaler

from microdata.

gkellogg avatar gkellogg commented on June 21, 2024

In a sense, microdata -> JSON-LD is a specific case of the Microdata to RDF algorithm, as JSON-LD is just an RDF serialization. But, it might be nice to have resulting JSON-LD structured in the same way as the original HTML and with a context definition created based on inferred term values.

I think @niklasl did something like this for RDFa to JSON-LD.

from microdata.

lanthaler avatar lanthaler commented on June 21, 2024

This should be fairly straightforward. I discussed this with Ian a couple of years ago but there was no interest at that time. The single biggest difference (apart from the missing context) is the use of the properties container instead of adding them to the object itself.

from microdata.

lanthaler avatar lanthaler commented on June 21, 2024

Should have clicked on the links beforehand. Looks like you already found the convo with Ian that actually explains the required changes.

from microdata.

gkellogg avatar gkellogg commented on June 21, 2024

The single biggest difference (apart from the missing context) is the use of the properties container instead of adding them to the object itself.

Note that in JSON-LD 1.1, a properties container is supported by use of the @nest mechanism. That presumes that the existing Microdata JSON schema needs to be preserved, rather than something that is a more natural JSON-LD expression.

from microdata.

iherman avatar iherman commented on June 21, 2024

@gkellogg I do not think we should use JSON-LD 1.1, though. JSON-LD 1.1 as a standard is probably some years away (there is not even a charter in preparation for a working group) and the microdata standard should not rely on it. (Actually, per process, if the JSON-LD conversion is normative, it must not rely on it.)

from microdata.

chaals avatar chaals commented on June 21, 2024

@lanthaler do you have the time to produce a PR for this? Note that I am also thinking, per #21, that we should explain how to convert to RDFa - not least because either format handles i18n far better than microdata.

from microdata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.