Skip to content

Filtering Events with Collections #7

@nickevansuk

Description

@nickevansuk

Use Case

As an API consumer, I want to be able to query for Events which have activities which are part of a collection, and display these collections alongside Events to show which categories they include.

Why is this not covered by existing properties?

Events are currently not linked to Collections, as the there is no inverse to skos:member.

Proposal

To display collections, add a collection property to skos:Concept, to allow activities to include related Collections.

To query for Events, use a filter such as activity.collection=9ee740d4-b3b0-43ad-94b2-27f398ba5f2f

Example

{
  "type": "Event",
  "activity": [
    {
      "id": "http://openactive.io/activity-list/#22584a2a-fafc-4710-863c-8a1fc3f96b2c",
      "type": "Concept",
      "prefLabel": "Aikido",
      "inScheme": "http://openactive.io/activity-list/",
      "collection": [
        {
          "id": "http://emduk.org/openactive-collection/#9ee740d4-b3b0-43ad-94b2-27f398ba5f2f",
          "type": "skos:Collection",
          "prefLabel": "Holistic Activities",
          "definition": "Stuff that makes you feel whole",
        }
      ]
    }
  ]
}

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