Skip to content

Latest commit

 

History

History
67 lines (49 loc) · 1.68 KB

README.md

File metadata and controls

67 lines (49 loc) · 1.68 KB

fix-annotation-service

This plugin generates annotated versions of the templates.

Endpoints

POST /delta

This endpoint delta from delta-notifier service. It will update the ex:annotated property on mobiliteit:Template based on inserted triples.

Example delta-notifier configuration:

{
  match: {
    predicate: {
      type: 'uri',
      value: 'http://www.w3.org/ns/prov#value'
    }
  },
  callback: {
    url: "http://annotater/delta",
    method: "POST",
  },
  options: {
    resourceFormat: "v0.0.1",
    ignoreFromSelf: true,
    gracePeriod: 250,
  },
}

POST /update-all

Update all ex:annotated on mobiliteit:Template.

docker compose exec annotater curl -X POST http://localhost/update-all

POST /clear

Delete all ex:annotated on mobiliteit:Template.

docker compose exec annotater curl -X POST http://localhost/clear

How to release

release-it and lerna-changelog are used to release the package.

The generated changelog is based on PR titles and labels.

Prerequis

Before releasing, make sure to have the GITHUB_AUTH environment variable set to a personal access token with the repo scope. You can create a new token here.

Check labels asignated to recently merged PRs. Labels are used to categorize the changes in the changelog (See lerna-changelog).

Release

To release a new version, run the following command:

GITHUB_AUTH=<your_github_token> npm run release