Skip to content

strange schema.org/location error output #81

@jvandriel

Description

@jvandriel

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions