Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Describe microdata -> JSON-LD conversion? #29

Closed
chaals opened this issue May 8, 2017 · 7 comments · Fixed by #76
Closed

Describe microdata -> JSON-LD conversion? #29

chaals opened this issue May 8, 2017 · 7 comments · Fixed by #76

Comments

@chaals
Copy link
Collaborator

chaals commented May 8, 2017

See also #2, #5, #15 and https://lists.w3.org/Archives/Public/public-whatwg-archive/2012Aug/0101.html (which gives a sense of what is required as changes).

@chaals
Copy link
Collaborator Author

chaals commented May 8, 2017

Ping @lanthaler

@gkellogg
Copy link
Member

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.

@lanthaler
Copy link
Member

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.

@lanthaler
Copy link
Member

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

@gkellogg
Copy link
Member

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.

@iherman
Copy link
Member

iherman commented Jun 1, 2017

@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.)

@chaals
Copy link
Collaborator Author

chaals commented Jun 18, 2017

@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.

chaals pushed a commit that referenced this issue Jul 20, 2017
fix #29

Note this just uses the changes @lanthaler said were needed back in
2012, so it should be checked before merging.
@danbri danbri closed this as completed in #76 Sep 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants