Comments (7)
Ping @lanthaler
from microdata.
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.
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.
Should have clicked on the links beforehand. Looks like you already found the convo with Ian that actually explains the required changes.
from microdata.
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.
@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.
@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)
- Global Identifier
- Values section title odd
- Textual property value does not use language of the element HOT 4
- No description of how numeric property values are obtained. HOT 12
- Incomplete sentence: "User agents are"
- Syntax highlighting not working correctly HOT 12
- Capitalization of "microdata"
- give examples and algorithms a URL HOT 1
- Provide an example of itemid
- incomplete sentence "User agents are" HOT 2
- RDFa and JSON-LD are not equivalent HOT 12
- RDFa should generate to RDFa Lite HOT 4
- Use the same example for JSON-LD and RDFa HOT 6
- Reference to [microdata-rdf] should be changed HOT 13
- Reusing components in different contexts HOT 4
- itemref as a url, not just an ID within the same document
- "Valid" definition doesn't resolve
- "Our company" example is confusing
- Hedral the Cat HOT 1
- Hedral Issue 2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microdata.