@oslo-flanders/core 0.0.6-alpha.0 → 0.0.8-alpha.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.
@@ -6,3 +6,5 @@ export declare function getApplicationProfileDefinition(subject: RDF.Term, store
6
6
  export declare function getVocabularyDefinition(subject: RDF.Term, store: QuadStore, language?: string | null): RDF.Literal | undefined;
7
7
  export declare function getApplicationProfileUsageNote(subject: RDF.Term, store: QuadStore, language?: string | null): RDF.Literal | undefined;
8
8
  export declare function getVocabularyUsageNote(subject: RDF.Term, store: QuadStore, language?: string | null): RDF.Literal | undefined;
9
+ export declare function getMinCount(subject: RDF.Term, store: QuadStore): string | undefined;
10
+ export declare function getMaxCount(subject: RDF.Term, store: QuadStore): string | undefined;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getVocabularyUsageNote = exports.getApplicationProfileUsageNote = exports.getVocabularyDefinition = exports.getApplicationProfileDefinition = exports.getVocabularyLabel = exports.getApplicationProfileLabel = void 0;
3
+ exports.getMaxCount = exports.getMinCount = exports.getVocabularyUsageNote = exports.getApplicationProfileUsageNote = exports.getVocabularyDefinition = exports.getApplicationProfileDefinition = exports.getVocabularyLabel = exports.getApplicationProfileLabel = void 0;
4
4
  const namespaces_1 = require("@oslo-core/utils/namespaces");
5
5
  function getApplicationProfileLabel(subject, store, language = null) {
6
6
  var _a, _b, _c;
@@ -82,4 +82,14 @@ function getVocabularyUsageNote(subject, store, language = null) {
82
82
  return undefined;
83
83
  }
84
84
  exports.getVocabularyUsageNote = getVocabularyUsageNote;
85
+ function getMinCount(subject, store) {
86
+ var _a;
87
+ return (_a = store.findObject(subject, namespaces_1.ns.shacl('minCount'))) === null || _a === void 0 ? void 0 : _a.value;
88
+ }
89
+ exports.getMinCount = getMinCount;
90
+ function getMaxCount(subject, store) {
91
+ var _a;
92
+ return (_a = store.findObject(subject, namespaces_1.ns.shacl('maxCount'))) === null || _a === void 0 ? void 0 : _a.value;
93
+ }
94
+ exports.getMaxCount = getMaxCount;
85
95
  //# sourceMappingURL=storeUtils.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslo-flanders/core",
3
- "version": "0.0.6-alpha.0",
3
+ "version": "0.0.8-alpha.0",
4
4
  "description": "Core interfaces and utilities",
5
5
  "author": "Digitaal Vlaanderen <https://data.vlaanderen.be/id/organisatie/OVO002949>",
6
6
  "homepage": "https://github.com/informatievlaanderen/OSLO-UML-Transformer/tree/main/packages/oslo-core#readme",
@@ -75,5 +75,5 @@
75
75
  "@types/streamify-string": "^1.0.0",
76
76
  "@types/tmp": "^0.2.3"
77
77
  },
78
- "gitHead": "e562cdd74bed9ae1d9a867a981b2b8a5c6492f1b"
78
+ "gitHead": "ec9638c5a9156c5506a668205b2288c14d0f840d"
79
79
  }