Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration and REST API support for MARC source codes #807

Closed
osma opened this issue Oct 3, 2018 · 0 comments
Closed

Configuration and REST API support for MARC source codes #807

osma opened this issue Oct 3, 2018 · 0 comments
Assignees
Milestone

Comments

@osma
Copy link
Member

osma commented Oct 3, 2018

Some library systems are using our REST API and storing concepts (labels and URIs) in MARC records. In MARC, the sources of concepts are identified by source codes - see e.g. the code list for subject heading and term source codes. Skosmos currently doesn't know about these so the API cannot expose the vocabulary codes that should be used in MARC records, which makes integration with MARC based systems more difficult than it needs to be.

We could support MARC source codes this way:

  1. In per-vocabulary config, make it possible to specify MARC source codes using a new property skosmos:marcSourceCode. Like this:
:ysa skosmos:marcSourceCode "ysa" .

or when the code varies by language:

:yso skosmos:marcSourceCode "yso/fin"@fi, "yso/swe"@sv .
  1. In the REST API method /<vocid>/ that gives basic information about a vocabulary, expose the codes in a new field, which could be called marcSourceCode in JSON and represented as e.g. skosmos:marcSourceCode in JSON-LD. The code returned by the REST API call would vary according to the lang parameter, just like with titles. If the lang parameter matches one of the language-specific codes, that would be returned; if not, the non-language-tagged version would be returned as a fallback. The marcSourceCode field would not be returned for vocabularies where the code(s) have not been configured.
@osma osma added this to the Next Tasks milestone Oct 3, 2018
@osma osma added the size-small max 2 hours label Oct 31, 2018
@osma osma modified the milestones: Next Tasks, 2.1 Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants