I am doing some research about JSON-LD. And I found the for the context is in every example used some public schema sites. Can I use my own ?
From:
{
"@context":{
"name": "http://schema.org/name"
}
}
To:
{
"@context":{
"name": "http://my-site.com/name"
}
}
JSON-LD provides JSON-LD contexts which enable JSON documents to use simple, locally-meaningful names, while still enabling the messages to be meaningful beyond the initial exchange partners.
A JSON-LD document is always a valid JSON document.
JSON-LD supports references to objects with a reserved key @id which can be used either as an object identifier or a reference to an object identifier. The value of @id must be a string.
Absolutely. In most cases you will actually need to do that as you probably won't find vocabularies (that's how those "schemas" are generally called) that cover everything you need. If possible, however, you should try to reuse existing vocabularies as it improves interoperabilty and enables code-reuse.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With