Skip to content

Add SameAs/URL field with exact object endpoint to all reference fields? #122

Description

@arruda

It would make things easier if we could have something like:

            "hasAgriParcel": {
                "@type": "Parcel",
                "@id": "urn:farmcalendar:Parcel:00000000-0000-0000-0000-000000000002",
                "sameAs": "/api/v1/FarmParcel/0000000-0000-0000-0000-000000000002/",
            },

or at least which endpoint, like:

            "hasAgriParcel": {
                "@type": "Parcel",
                "@id": "urn:farmcalendar:Parcel:00000000-0000-0000-0000-000000000002",
                "endpoint": "/api/v1/FarmParcel/",
            },

This way it would be easier to navigate the FC data without having to "hard code" the mapping of the individual endpoints. Especially for the built-in activities, which only provide the detail of each activity type when viewed through the built-in activity specific endpoint.
Otherwise, for activities, the user needs to retrieve the activity type, and from the activity type retrieve the activity endpoint (unless this information is cache, it would require two request to get the detailed information of a given calendar activity).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions