@semapps/ontologies 0.8.6 → 0.8.7

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.
@@ -31,19 +31,6 @@ module.exports = {
31
31
  }
32
32
  }
33
33
 
34
- // Check that jsonldContext doesn't conflict with existing context
35
- if (jsonldContext) {
36
- await this.broker.waitForServices(['jsonld.context'], 15000);
37
- const existingContext = await ctx.call('jsonld.context.get');
38
- const newContext = [].concat(existingContext, jsonldContext);
39
- const isValid = await ctx.call('jsonld.context.validate', { context: newContext });
40
- if (!isValid) {
41
- throw new Error(
42
- `Cannot register ${prefix} ontology. The ontology's JSON-LD context is in conflict with the existing JSON-LD context`
43
- );
44
- }
45
- }
46
-
47
34
  if (this.settings.persistRegistry) {
48
35
  await ctx.call('ontologies.registry.updateOrCreate', {
49
36
  prefix,
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@semapps/ontologies",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "SemApps ontologies",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Virtual Assembly",
7
7
  "dependencies": {
8
- "@semapps/triplestore": "0.8.6",
8
+ "@semapps/triplestore": "0.8.7",
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": "8431d0ecf0cc3fe9c6bb71ffb5985f1401126f24"
18
+ "gitHead": "e08b21632d850b64511a6b735a82e1664c18a627"
19
19
  }
package/service.js CHANGED
@@ -28,8 +28,7 @@ module.exports = {
28
28
  async started() {
29
29
  if (!this.settings.persistRegistry) this.ontologies = {};
30
30
 
31
- // Do not await to avoid circular dependency with jsonld service
32
- this.registerAll();
31
+ await this.registerAll();
33
32
  },
34
33
  actions: {
35
34
  findPrefix: findPrefixAction,