@semapps/ontologies 0.8.3 → 0.8.5
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/actions/register.js +2 -1
- package/package.json +3 -3
package/actions/register.js
CHANGED
|
@@ -37,10 +37,11 @@ module.exports = {
|
|
|
37
37
|
const existingContext = await ctx.call('jsonld.context.get');
|
|
38
38
|
const newContext = [].concat(existingContext, jsonldContext);
|
|
39
39
|
const isValid = await ctx.call('jsonld.context.validate', { context: newContext });
|
|
40
|
-
if (!isValid)
|
|
40
|
+
if (!isValid) {
|
|
41
41
|
throw new Error(
|
|
42
42
|
`Cannot register ${prefix} ontology. The ontology's JSON-LD context is in conflict with the existing JSON-LD context`
|
|
43
43
|
);
|
|
44
|
+
}
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
if (this.settings.persistRegistry) {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semapps/ontologies",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"description": "SemApps ontologies",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Virtual Assembly",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@semapps/triplestore": "0.8.
|
|
8
|
+
"@semapps/triplestore": "0.8.5",
|
|
9
9
|
"moleculer-db": "^0.8.16",
|
|
10
10
|
"node-fetch": "^2.6.6"
|
|
11
11
|
},
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=14"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "ee84441fa453484498a9a52d211ec277d0699d62"
|
|
19
19
|
}
|