@semapps/ontologies 1.2.7 → 1.3.1
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/findNamespace.ts +0 -1
- package/actions/findPrefix.ts +0 -1
- package/actions/prefixToUri.ts +0 -1
- package/actions/register.ts +0 -5
- package/dist/actions/findNamespace.js +0 -1
- package/dist/actions/findNamespace.js.map +1 -1
- package/dist/actions/findPrefix.js +0 -1
- package/dist/actions/findPrefix.js.map +1 -1
- package/dist/actions/prefixToUri.js +0 -1
- package/dist/actions/prefixToUri.js.map +1 -1
- package/dist/actions/register.js +0 -5
- package/dist/actions/register.js.map +1 -1
- package/package.json +3 -3
package/actions/findNamespace.ts
CHANGED
|
@@ -4,7 +4,6 @@ import type { ActionSchema } from 'moleculer';
|
|
|
4
4
|
const Schema = {
|
|
5
5
|
visibility: 'public',
|
|
6
6
|
params: {
|
|
7
|
-
// @ts-expect-error TS(2322): Type 'string' is not assignable to type 'Parameter... Remove this comment to see the full error message
|
|
8
7
|
prefix: 'string'
|
|
9
8
|
},
|
|
10
9
|
async handler(ctx) {
|
package/actions/findPrefix.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { isURL } from '../utils.ts';
|
|
|
5
5
|
const Schema = {
|
|
6
6
|
visibility: 'public',
|
|
7
7
|
params: {
|
|
8
|
-
// @ts-expect-error TS(2322): Type 'string' is not assignable to type 'Parameter... Remove this comment to see the full error message
|
|
9
8
|
uri: 'string'
|
|
10
9
|
},
|
|
11
10
|
async handler(ctx) {
|
package/actions/prefixToUri.ts
CHANGED
|
@@ -6,7 +6,6 @@ const regexPrefix = /^([^:]+):([^:]+)$/gm;
|
|
|
6
6
|
const Schema = {
|
|
7
7
|
visibility: 'public',
|
|
8
8
|
params: {
|
|
9
|
-
// @ts-expect-error TS(2322): Type 'string' is not assignable to type 'Parameter... Remove this comment to see the full error message
|
|
10
9
|
value: 'string'
|
|
11
10
|
},
|
|
12
11
|
cache: true,
|
package/actions/register.ts
CHANGED
|
@@ -4,20 +4,15 @@ import { isURL, arrayOf } from '../utils.ts';
|
|
|
4
4
|
const Schema = {
|
|
5
5
|
visibility: 'public',
|
|
6
6
|
params: {
|
|
7
|
-
// @ts-expect-error TS(2322): Type 'string' is not assignable to type 'Parameter... Remove this comment to see the full error message
|
|
8
7
|
prefix: 'string',
|
|
9
|
-
// @ts-expect-error TS(2322): Type 'string' is not assignable to type 'Parameter... Remove this comment to see the full error message
|
|
10
8
|
namespace: 'string',
|
|
11
9
|
owl: { type: 'string', optional: true },
|
|
12
10
|
jsonldContext: {
|
|
13
11
|
type: 'multi',
|
|
14
|
-
// @ts-expect-error TS(2322): Type '{ type: "array"; }' is not assignable to typ... Remove this comment to see the full error message
|
|
15
12
|
rules: [{ type: 'array' }, { type: 'object' }, { type: 'string' }],
|
|
16
13
|
optional: true
|
|
17
14
|
},
|
|
18
|
-
// @ts-expect-error TS(2322): Type '{ type: "boolean"; default: false; }' is not... Remove this comment to see the full error message
|
|
19
15
|
preserveContextUri: { type: 'boolean', default: false },
|
|
20
|
-
// @ts-expect-error TS(2322): Type '{ type: "boolean"; default: false; }' is not... Remove this comment to see the full error message
|
|
21
16
|
persist: { type: 'boolean', default: false }
|
|
22
17
|
},
|
|
23
18
|
async handler(ctx) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findNamespace.js","sourceRoot":"","sources":["../../actions/findNamespace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,YAAY,CAAC;AAG/B,MAAM,MAAM,GAAG;IACb,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE;QACN,
|
|
1
|
+
{"version":3,"file":"findNamespace.js","sourceRoot":"","sources":["../../actions/findNamespace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,YAAY,CAAC;AAG/B,MAAM,MAAM,GAAG;IACb,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE;QACN,MAAM,EAAE,QAAQ;KACjB;IACD,KAAK,CAAC,OAAO,CAAC,GAAG;QACf,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;QAE9B,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,oBAAoB,MAAM,YAAY,CAAC,CAAC;QAErE,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;YAChB,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YAEnC,OAAO,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9B,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACqB,CAAC;AAEzB,eAAe,MAAM,CAAC"}
|
|
@@ -3,7 +3,6 @@ import { isURL } from "../utils.js";
|
|
|
3
3
|
const Schema = {
|
|
4
4
|
visibility: 'public',
|
|
5
5
|
params: {
|
|
6
|
-
// @ts-expect-error TS(2322): Type 'string' is not assignable to type 'Parameter... Remove this comment to see the full error message
|
|
7
6
|
uri: 'string'
|
|
8
7
|
},
|
|
9
8
|
async handler(ctx) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findPrefix.js","sourceRoot":"","sources":["../../actions/findPrefix.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,MAAM,GAAG;IACb,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE;QACN,
|
|
1
|
+
{"version":3,"file":"findPrefix.js","sourceRoot":"","sources":["../../actions/findPrefix.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,MAAM,GAAG;IACb,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;KACd;IACD,KAAK,CAAC,OAAO,CAAC,GAAG;QACf,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;QAE3B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAC;QAEzG,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,uBAAuB,kBAAkB,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;QAEvG,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YAC5B,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YAErD,MAAM,MAAM,GAAG,WAAW,EAAE,OAAO,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAExE,OAAO,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC;QAC7B,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACqB,CAAC;AAEzB,eAAe,MAAM,CAAC"}
|
|
@@ -3,7 +3,6 @@ const regexPrefix = /^([^:]+):([^:]+)$/gm;
|
|
|
3
3
|
const Schema = {
|
|
4
4
|
visibility: 'public',
|
|
5
5
|
params: {
|
|
6
|
-
// @ts-expect-error TS(2322): Type 'string' is not assignable to type 'Parameter... Remove this comment to see the full error message
|
|
7
6
|
value: 'string'
|
|
8
7
|
},
|
|
9
8
|
cache: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefixToUri.js","sourceRoot":"","sources":["../../actions/prefixToUri.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAE1C,MAAM,MAAM,GAAG;IACb,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE;QACN,
|
|
1
|
+
{"version":3,"file":"prefixToUri.js","sourceRoot":"","sources":["../../actions/prefixToUri.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAE1C,MAAM,MAAM,GAAG;IACb,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;KAChB;IACD,KAAK,EAAE,IAAI;IACX,KAAK,CAAC,OAAO,CAAC,GAAG;QACf,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;QAE7B,sCAAsC;QACtC,IAAI,KAAK,CAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QAE/B,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,KAAK,sCAAsC,CAAC,CAAC;QAElH,MAAM,YAAY,GAAG,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7C,iEAAiE;QACjE,MAAM,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;QAE/B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QACpD,IAAI,CAAC,QAAQ;YAAE,MAAM,IAAI,KAAK,CAAC,iCAAiC,MAAM,EAAE,CAAC,CAAC;QAE1E,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,MAAM,GAAG,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAClE,CAAC;CACqB,CAAC;AAEzB,eAAe,MAAM,CAAC"}
|
package/dist/actions/register.js
CHANGED
|
@@ -2,20 +2,15 @@ import { isURL, arrayOf } from "../utils.js";
|
|
|
2
2
|
const Schema = {
|
|
3
3
|
visibility: 'public',
|
|
4
4
|
params: {
|
|
5
|
-
// @ts-expect-error TS(2322): Type 'string' is not assignable to type 'Parameter... Remove this comment to see the full error message
|
|
6
5
|
prefix: 'string',
|
|
7
|
-
// @ts-expect-error TS(2322): Type 'string' is not assignable to type 'Parameter... Remove this comment to see the full error message
|
|
8
6
|
namespace: 'string',
|
|
9
7
|
owl: { type: 'string', optional: true },
|
|
10
8
|
jsonldContext: {
|
|
11
9
|
type: 'multi',
|
|
12
|
-
// @ts-expect-error TS(2322): Type '{ type: "array"; }' is not assignable to typ... Remove this comment to see the full error message
|
|
13
10
|
rules: [{ type: 'array' }, { type: 'object' }, { type: 'string' }],
|
|
14
11
|
optional: true
|
|
15
12
|
},
|
|
16
|
-
// @ts-expect-error TS(2322): Type '{ type: "boolean"; default: false; }' is not... Remove this comment to see the full error message
|
|
17
13
|
preserveContextUri: { type: 'boolean', default: false },
|
|
18
|
-
// @ts-expect-error TS(2322): Type '{ type: "boolean"; default: false; }' is not... Remove this comment to see the full error message
|
|
19
14
|
persist: { type: 'boolean', default: false }
|
|
20
15
|
},
|
|
21
16
|
async handler(ctx) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../actions/register.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,GAAG;IACb,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE;QACN,
|
|
1
|
+
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../actions/register.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,GAAG;IACb,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE;QACN,MAAM,EAAE,QAAQ;QAChB,SAAS,EAAE,QAAQ;QACnB,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACvC,aAAa,EAAE;YACb,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE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C,MAAM,CAAC,MAAM,EAAE,CAAC;YACvB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YAC1C,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAChD,CAAC;QAED,GAAG,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,aAAa,EAAE,kBAAkB,EAAE,CAAC,CAAC;IACnG,CAAC;CACqB,CAAC;AAEzB,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semapps/ontologies",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "SemApps ontologies",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Virtual Assembly",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@semapps/triplestore": "1.
|
|
8
|
+
"@semapps/triplestore": "1.3.1",
|
|
9
9
|
"moleculer-db": "^0.8.16",
|
|
10
10
|
"node-fetch": "^2.6.6"
|
|
11
11
|
},
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"prepack": "node ../../scripts/switch-main-to-publish.js .",
|
|
26
26
|
"postpack": "node ../../scripts/revert-main-from-publish.js ."
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "c5cb14d38b818b35c28d4ea13069c6c6575bf43c",
|
|
29
29
|
"xDevMain": "./index.ts"
|
|
30
30
|
}
|