-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
Description
Every time the linter runs into markup containing statements about a schema.org/Person's homeLocation or workLocation it generates an error message:
property schema:location: Subject <http://example.org/#WileECoyote> not compatible with domainIncludes (schema:Action,schema:Event,schema:InteractionCounter,schema:Organization)
Somehow the location property (parent property of the others) gets shown in the output, which rightfully triggers the error message, though I am clueless as to why this property gets added. Is this a bug in the schema.org vocabulary or in the Linter?
What's extra confusing is that I only have seen it happen in regards to Person statements.
Markup example:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@id": "#WileECoyote",
"@type": "Person",
"name": "Wile E. Coyote",
"workLocation": {
"@id": "#FantasyLand",
"@type": "Country",
"name": "Fantasy land"
}
}
</script>