3 ms·
I hope they soon provides schemas rather than just separate human-only markdown description of fields. Both XML and JSON have methods for this using Linked Data
by davidy123 4y ago
I hope they soon provides schemas rather than just separate human-only markdown description of fields. Both XML and JSON have methods for this using Linked Data.
For JSON-LD, this would basically look like this (from https://json-ld.org/spec/latest/json-ld/#the-context https://json-ld.org/spec/latest/json-ld/#the-context):
{
"@context": {
"name": "http://schema.org/name", ← This means that 'name' is shorthand for 'http://schema.org/name'
"homepage": {
"@id": "http://schema.org/url", ← This means that 'homepage' is shorthand for 'http://schema.org/url'
}
…
},
… data part using name, homepage, etc
}
Once you have stable places for information (identifiers), you can start building a real web as described by the semantic web, by bundling schemas with the data you can freely use information with human and machine understanding, until then you've got a muddle.