For the following entity, the agent value options are "Organization" or "Person". However, the agent I would like to define is different, let's say my dog (as an example). How does one go about doing this? Creating a custom extension? Don't know if this is even remotely close, could use some advice.
let mySchema =
{
"@Property":{
"agent": {
"id":"https://schema.org/agent",
"@Types": {
"Organization": {
"id":"https://schema.org/Organization"
},
"Person": {
"id":"https://schema.org/Person"
},
"Animal": { // <-----custom entity!
"id":"https://example.com/Animal",
"@Types": {
"Dog": {
"id":"http://example.com/Dog",
"@Property": {
"id":"http://example.com/name",
"@Types": {
"id":"http://example.com/Text",
},
"@Description": {
"The dog's name"
}
}
}
}
}
},
"@Description": "The direct performer or driver of the action (animate or inanimate). e.g. John wrote a book."
}
}
};