linked-rolls 0.40.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/procedures.d.ts +14 -0
- package/lib/procedures.js +30 -0
- package/package.json +3 -1
package/lib/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './systems';
|
|
|
17
17
|
export * from './ReproducingSystem';
|
|
18
18
|
export * from './FeatureSource';
|
|
19
19
|
export * from './RollCopy';
|
|
20
|
+
export * from './procedures';
|
|
20
21
|
export * from './reservations';
|
|
21
22
|
export * from './witnesses';
|
|
22
23
|
export * from './alignment';
|
package/lib/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export * from './systems';
|
|
|
17
17
|
export * from './ReproducingSystem';
|
|
18
18
|
export * from './FeatureSource';
|
|
19
19
|
export * from './RollCopy';
|
|
20
|
+
export * from './procedures';
|
|
20
21
|
export * from './reservations';
|
|
21
22
|
export * from './witnesses';
|
|
22
23
|
export * from './alignment';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Concept } from "./Agent";
|
|
2
|
+
/**
|
|
3
|
+
* The procedures the type vocabulary declares, for a consumer that has
|
|
4
|
+
* to offer them. The names are the German labels of the concepts, which
|
|
5
|
+
* is what an edition writing one of them holds; what each procedure
|
|
6
|
+
* says is in the ontology, not here.
|
|
7
|
+
*
|
|
8
|
+
* `ontology/types.ttl` is the place a procedure is defined. A test holds
|
|
9
|
+
* this list against it.
|
|
10
|
+
* @see crm:E29 Design or Procedure
|
|
11
|
+
*/
|
|
12
|
+
export declare const procedures: readonly Concept[];
|
|
13
|
+
/** The procedure of that IRI, where the vocabulary declares one. */
|
|
14
|
+
export declare const procedureOf: (id: string | undefined) => Concept | undefined;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const PROCEDURE_IRI = 'https://w3id.org/reo/type/procedure/';
|
|
2
|
+
/**
|
|
3
|
+
* The procedures the type vocabulary declares, for a consumer that has
|
|
4
|
+
* to offer them. The names are the German labels of the concepts, which
|
|
5
|
+
* is what an edition writing one of them holds; what each procedure
|
|
6
|
+
* says is in the ontology, not here.
|
|
7
|
+
*
|
|
8
|
+
* `ontology/types.ttl` is the place a procedure is defined. A test holds
|
|
9
|
+
* this list against it.
|
|
10
|
+
* @see crm:E29 Design or Procedure
|
|
11
|
+
*/
|
|
12
|
+
export const procedures = [
|
|
13
|
+
{
|
|
14
|
+
id: `${PROCEDURE_IRI}umstanzung`,
|
|
15
|
+
name: 'Umstanzung',
|
|
16
|
+
sameAs: []
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: `${PROCEDURE_IRI}umstanzung/welte-t100-to-welte-licensee`,
|
|
20
|
+
name: 'Umstanzung vom T-100 ins Licensee-System',
|
|
21
|
+
sameAs: []
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: `${PROCEDURE_IRI}umstanzung/welte-t100-to-welte-green`,
|
|
25
|
+
name: 'Umstanzung vom T-100 ins grüne System',
|
|
26
|
+
sameAs: []
|
|
27
|
+
}
|
|
28
|
+
];
|
|
29
|
+
/** The procedure of that IRI, where the vocabulary declares one. */
|
|
30
|
+
export const procedureOf = (id) => procedures.find(procedure => procedure.id === id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linked-rolls",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.0",
|
|
4
4
|
"description": "Digital editions of piano rolls: import, collation, editorial assumptions, JSON-LD export, and emulation through a reproducing system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -45,8 +45,10 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/jsonld": "^1.5.15",
|
|
48
|
+
"@types/n3": "^1.26.4",
|
|
48
49
|
"@types/node": "^24.13.3",
|
|
49
50
|
"jsonld": "^9.0.0",
|
|
51
|
+
"n3": "^2.7.12",
|
|
50
52
|
"ts-json-schema-generator": "^2.9.0",
|
|
51
53
|
"typescript": "^7.0.2",
|
|
52
54
|
"vite": "^8.2.2",
|