Evgeniy
Evgeniy

Reputation: 2595

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!

Upvotes: 1

Views: 359

Answers (1)

Gregg Kellogg
Gregg Kellogg

Reputation: 1906

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).

Upvotes: 5

Related Questions