Skip to content

JSON-LD context for search operations, pagination #9

@rduyme

Description

@rduyme

At the moment the OpenAPI search operations do not contain any JSON-LD context.

Image

I plan to create a JSON-LD context with paging elements using approach done in IIIF

https://iiif.io/api/search/2.0/

It is based on https://www.w3.org/ns/activitystreams# vocabulary.

(see response examples and context in https://iiif.io/api/search/2.0/#responses

Idea is to :

  • create a separated search context json file to map json fields (meta, count, page, page_size, results...).
  • use id and type the same way.
context : "https://w3id.org/skg-if/context/1.0.1/skg-if.json"  +  search context
"id": "https://example.org/service/manifest/search?q=bird&motivation=painting",
 "type": "AnnotationPage",  ( as:OrderedCollection )

we could keep this search context file in api github repository and also mapped in w3id.org

Is this approach ok ?
@essepuntato, @andremann

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