-
Notifications
You must be signed in to change notification settings - Fork 897
JSON LD Questions
Thad Guidry edited this page Jul 24, 2018
·
1 revision
Yes, use a JSON-LD document such as the following:
{
"@context": ["http://schema.org", {
"url": {"@type": "@id"}
}],
url: "http://some-location/"
}
This will ensure that the url property is treated like an IRI, not a literal. This may be the default in the schema.org context, but it definitely isn't for other properties you probably want to have interpreted as IRIs. You can also put these in an external document, and either access as
"@context": ["http://schema.org", "http://myschemaupdates"]
or simply make myschemaupdates also include http://schema.org.