Skip to content

Clarify the coercion process from strings to objects in Text Values or Objects #314

@BigBlueHat

Description

@BigBlueHat

Unless I'm totally missing something, the approach described in Text Values or Objects (and used throughout the examples) is not mappable to the terms as described there.

The examples in that section are below:

{
    "author" : "Herman Melville"
}
{
    "author" : {
        "@type" : "Person",
        "name"  : "Herman Melville"
    }
}

Those two are supposed to be equivalent according to that section. However, that's not possible in a JSON-LD context...afaik.

It is possible to say that author is always a http://schema.org/name, but it's not possible to "upgrade" that to a http://schema.org/Person with a http://schema.org/name...or to say the opposite--but it's not possible to allow for either shape within a single document.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions