Search code examples
microdatalinked-datastructured-datajson-ld

More than one type at once in JSON-LD notation


Is it valid by format conventions to use more then one type in JSON-LD notation? Like here:

{
 "@context":    "http://schema.org",
 "@type":
     [
     "MusicalEvent",
     "CreativeWork"
     ],
 "name": "Name",
 "url": "http://example.com"
}

Thanks!


Solution

  • Yes, it's perfectly valid to use more than one type. If it makes sense, they don't even need to be from the same vocabulary (e.g. schema:Person and foaf:Person).