-
Notifications
You must be signed in to change notification settings - Fork 0
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
Include information about DDC rules that led to a composed number #22
Comments
Each rule has a short text (derived from MARC). There should be more details (name, description, examples...) but we can start with this short string for each rule: {
"r1": { "short": "Unless it is redundant, add to base number<|[Aa]dd to base number" },
"r2": { "short": "the numbers following" },
...
} The list of rules can directly be served as static JSON file e.g. at Encoding of rules in JSKOS: I'd not make rules part of standard JSKOS (unless we have experience with other faceted classifications that make use of their own rules). So each member of |
Just to clarify:
Edit regarding the last point:
So "p" stands for pattern und "r" for rule. But I think if we split up the pattern, we can then use the r prefix. |
To handle additional parameters of rule application, such as
The full "rule" (sorry, we are using muddy terminology, this needs to be clarified) could for instance
So better keep prefix
I am sure there are also rule patterns with multiple parameters. If we know which rules have parameters, better store rule short text like this:
|
As far as I understand it, pattern Also as far as I can see, patterns can, but don't have to have parameters (and not sure if every pattern can have parameters). It seems like |
First information about rules is included in the rules branch. Each rule has a regular expression pattern to match subfield values in MARC21 classification 6XX fields and/or MARC21 classification 7XX fields). An example:
Or with reference to the list of rule elements (highly normalized):
Or as textual building instruction:
The latter is most likely what to show in the user interface but we are not allowed to do so for license reasons (even not in German). I am not sure whether this form would be ok:
The textual instruction could be passed as plain string in JSKOS. We might also include the list of rule elements in {
"RULE": {
"elements": [ 20, "789.57", 2, "718.6", 7, "781.62-781.69" ],
"pattern": "Add to ... the numbers following ... in ...",
"instruction": "Add to 789.57 the numbers following 781.6 in 781.62-781.69"
}
} |
Requires
The text was updated successfully, but these errors were encountered: