@lde/dataset-registry-client 0.4.2 → 0.4.4
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/dist/client.d.ts +4 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1 -1
- package/dist/schema.d.ts +4 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +4 -1
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -50,7 +50,10 @@ export declare class Client {
|
|
|
50
50
|
readonly '@schema': {
|
|
51
51
|
readonly '@type': "dcat:Distribution";
|
|
52
52
|
readonly accessURL: "dcat:accessURL";
|
|
53
|
-
readonly mediaType:
|
|
53
|
+
readonly mediaType: {
|
|
54
|
+
readonly '@id': "dcat:mediaType";
|
|
55
|
+
readonly '@optional': true;
|
|
56
|
+
};
|
|
54
57
|
readonly byteSize: {
|
|
55
58
|
readonly '@id': "dcat:byteSize";
|
|
56
59
|
readonly '@type': "xsd:nonNegativeInteger";
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAgB,MAAM,cAAc,CAAC;AAIrD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,qBAAa,MAAM;IAEf,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,cAAc,EAAE,GAAG,EACnB,MAAM
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAgB,MAAM,cAAc,CAAC;AAIrD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,qBAAa,MAAM;IAEf,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,cAAc,EAAE,GAAG,EACnB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAgB;IAGlC,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACpD,KAAK,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;CAoElE"}
|
package/dist/client.js
CHANGED
|
@@ -46,7 +46,7 @@ export class Client {
|
|
|
46
46
|
language: dataset.language,
|
|
47
47
|
license: dataset.license ? new URL(dataset.license) : undefined,
|
|
48
48
|
distributions: dataset.distribution.map((d) => {
|
|
49
|
-
const distribution = new Distribution(new URL(d.accessURL), d.mediaType, d.conformsTo ? new URL(d.conformsTo) : undefined);
|
|
49
|
+
const distribution = new Distribution(new URL(d.accessURL), d.mediaType ?? undefined, d.conformsTo ? new URL(d.conformsTo) : undefined);
|
|
50
50
|
distribution.byteSize = d.byteSize ?? undefined;
|
|
51
51
|
distribution.lastModified = d.modified ?? undefined;
|
|
52
52
|
return distribution;
|
package/dist/schema.d.ts
CHANGED
|
@@ -45,7 +45,10 @@ export declare const DatasetSchema: {
|
|
|
45
45
|
readonly '@schema': {
|
|
46
46
|
readonly '@type': "dcat:Distribution";
|
|
47
47
|
readonly accessURL: "dcat:accessURL";
|
|
48
|
-
readonly mediaType:
|
|
48
|
+
readonly mediaType: {
|
|
49
|
+
readonly '@id': "dcat:mediaType";
|
|
50
|
+
readonly '@optional': true;
|
|
51
|
+
};
|
|
49
52
|
readonly byteSize: {
|
|
50
53
|
readonly '@id': "dcat:byteSize";
|
|
51
54
|
readonly '@type': "xsd:nonNegativeInteger";
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEhB,CAAC"}
|
package/dist/schema.js
CHANGED
|
@@ -47,7 +47,10 @@ export const DatasetSchema = {
|
|
|
47
47
|
'@schema': {
|
|
48
48
|
'@type': dcat.Distribution,
|
|
49
49
|
accessURL: dcat.accessURL,
|
|
50
|
-
mediaType:
|
|
50
|
+
mediaType: {
|
|
51
|
+
'@id': dcat.mediaType,
|
|
52
|
+
'@optional': true,
|
|
53
|
+
},
|
|
51
54
|
byteSize: {
|
|
52
55
|
'@id': dcat.byteSize,
|
|
53
56
|
'@type': xsd.nonNegativeInteger,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lde/dataset-registry-client",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/ldengine/lde"
|
|
6
6
|
},
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"!**/*.tsbuildinfo"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@lde/dataset": "0.4.
|
|
25
|
+
"@lde/dataset": "0.4.2",
|
|
26
26
|
"ldkit": "^2.5.1",
|
|
27
27
|
"n3": "^1.26.0",
|
|
28
28
|
"sparqljs": "^3.7.3",
|