Closed davidbarratt closed 3 years ago
No; type maps are associated with terms, so you would need a top-level property who's values were the types. Something like the following:
{
"@context": ["https://schema.org", {
"types": {"@id": "ex:types", "@container": "@type"}
}],
"types": {
"Person": [{"name": "David"}],
"Country" : [{"code": "US"}]
}
}
Ah, ok cool. Thanks!
If I have an object like this:
Is there a way to describe that this is a type map at the top level? I couldn't find a way to do this and the playground screams at me for attempting to override a keyword.