Skip to content

Recommendation for included objects? #35

@davidbarratt

Description

@davidbarratt

Given a response object like:

{
	"@context": "https://schema.org",
	"type": "Collection",
	"hasPart": [
	    {
			"id": "123",
			"type": "ScreeningEvent",
			"location": "abc"
		},
		{
			"id": "456",
			"type": "ScreeningEvent",
			"location": "abc"
		}
	]
}

where the Collection is a collection of objects of type ScreeningEvent, should the response include the abc object?

{
	"@context": "https://schema.org",
	"id": "abc",
	"type": "MovieTheater",
	"name": "ABC"
}

If so, what's the best practice for doing so? Would it be best to use an aliased @included ? Or would the initial response be a "Collection of Collections"? If so, should hasPart be an id map? or would it be better to drop that and use custom properties of some kind?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Non TR Work

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions