gbv / jskos-tools

Tools for working with the JSKOS data format.
https://gbv.github.io/jskos-tools/
MIT License
2 stars 0 forks source link

Support scheme-specific rules for mapping notation to URI #28

Open nichtich opened 3 years ago

nichtich commented 3 years ago

Some vocabularies have specific rules and exceptions how to map a local concept identifier (stored in JSKOS as notation) to a concept URI. The mapping is implemented in class ConceptScheme with two methods notationFromUri and uriFromNotation (the methods conceptFromUri and conceptFromNotation internally use the former methods so they don't need to be modified).

Examples:

The mapping may not always be reversible, especially uriFromNotation but this requires more examples.

Solutions:

By the way: in some schemes the notation is not reflected in the URI anyway.