@pod-os/core 0.30.0-rc.68feb28.0 → 0.30.0-rc.7fd1609.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.
- package/dist/index.js +0 -16
- package/lib/index.js +0 -16
- package/package.json +1 -1
- package/types/Store.d.ts +1 -1
- package/types/files/FileFetcher.d.ts +1 -1
- package/types/files/HttpStatus.d.ts +2 -2
- package/types/ldp-container/LdpContainer.d.ts +0 -3
- package/types/profile/WebIdProfile.d.ts +1 -3
- package/types/rdf-document/RdfDocument.d.ts +0 -3
- package/types/search/LabelIndex.d.ts +0 -3
- package/types/search/SearchGateway.d.ts +1 -1
- package/types/search/SearchIndex.d.ts +1 -1
- package/types/thing/Thing.d.ts +1 -5
- package/types/type-index/TypeIndex.d.ts +0 -3
package/dist/index.js
CHANGED
|
@@ -28363,9 +28363,6 @@ var Thing = class {
|
|
|
28363
28363
|
var LdpContainer = class extends Thing {
|
|
28364
28364
|
constructor(uri6, store, editable = false) {
|
|
28365
28365
|
super(uri6, store, editable);
|
|
28366
|
-
this.uri = uri6;
|
|
28367
|
-
this.store = store;
|
|
28368
|
-
this.editable = editable;
|
|
28369
28366
|
}
|
|
28370
28367
|
/**
|
|
28371
28368
|
* Resources that the LDP Container contains
|
|
@@ -28503,8 +28500,6 @@ var WebIdProfile = class extends Thing {
|
|
|
28503
28500
|
constructor(webId, store, editable = false) {
|
|
28504
28501
|
super(webId, store, editable);
|
|
28505
28502
|
this.webId = webId;
|
|
28506
|
-
this.store = store;
|
|
28507
|
-
this.editable = editable;
|
|
28508
28503
|
this.profileQuery = this.store.profileQuery(this.webId);
|
|
28509
28504
|
}
|
|
28510
28505
|
/**
|
|
@@ -28645,9 +28640,6 @@ var SearchIndex = class {
|
|
|
28645
28640
|
var RdfDocument = class extends Thing {
|
|
28646
28641
|
constructor(uri6, store, editable = false) {
|
|
28647
28642
|
super(uri6, store, editable);
|
|
28648
|
-
this.uri = uri6;
|
|
28649
|
-
this.store = store;
|
|
28650
|
-
this.editable = editable;
|
|
28651
28643
|
}
|
|
28652
28644
|
subjects() {
|
|
28653
28645
|
const matches = this.store.statementsMatching(
|
|
@@ -28669,9 +28661,6 @@ var RdfDocument = class extends Thing {
|
|
|
28669
28661
|
var LabelIndex = class extends RdfDocument {
|
|
28670
28662
|
constructor(uri6, store, editable = false) {
|
|
28671
28663
|
super(uri6, store, editable);
|
|
28672
|
-
this.uri = uri6;
|
|
28673
|
-
this.store = store;
|
|
28674
|
-
this.editable = editable;
|
|
28675
28664
|
}
|
|
28676
28665
|
/**
|
|
28677
28666
|
* Returns the URIs and labels for all the things listed in the document.
|
|
@@ -50512,8 +50501,6 @@ function listKnownTerms() {
|
|
|
50512
50501
|
// src/uri/UriService.ts
|
|
50513
50502
|
var import_slugify = __toESM(require_slugify(), 1);
|
|
50514
50503
|
var UriService = class {
|
|
50515
|
-
// We expect to use the store for calculating the uris for things
|
|
50516
|
-
// e.g. looking up locations in type index
|
|
50517
50504
|
constructor(store) {
|
|
50518
50505
|
this.store = store;
|
|
50519
50506
|
}
|
|
@@ -50738,9 +50725,6 @@ var AnonymousSession = class {
|
|
|
50738
50725
|
var TypeIndex2 = class extends Thing {
|
|
50739
50726
|
constructor(uri6, store, editable = false) {
|
|
50740
50727
|
super(uri6, store, editable);
|
|
50741
|
-
this.uri = uri6;
|
|
50742
|
-
this.store = store;
|
|
50743
|
-
this.editable = editable;
|
|
50744
50728
|
}
|
|
50745
50729
|
listAll() {
|
|
50746
50730
|
const forClassStatements = this.store.statementsMatching(
|
package/lib/index.js
CHANGED
|
@@ -36800,9 +36800,6 @@ _:patch
|
|
|
36800
36800
|
var LdpContainer = class extends Thing {
|
|
36801
36801
|
constructor(uri6, store, editable = false) {
|
|
36802
36802
|
super(uri6, store, editable);
|
|
36803
|
-
this.uri = uri6;
|
|
36804
|
-
this.store = store;
|
|
36805
|
-
this.editable = editable;
|
|
36806
36803
|
}
|
|
36807
36804
|
/**
|
|
36808
36805
|
* Resources that the LDP Container contains
|
|
@@ -36940,8 +36937,6 @@ _:patch
|
|
|
36940
36937
|
constructor(webId, store, editable = false) {
|
|
36941
36938
|
super(webId, store, editable);
|
|
36942
36939
|
this.webId = webId;
|
|
36943
|
-
this.store = store;
|
|
36944
|
-
this.editable = editable;
|
|
36945
36940
|
this.profileQuery = this.store.profileQuery(this.webId);
|
|
36946
36941
|
}
|
|
36947
36942
|
/**
|
|
@@ -37082,9 +37077,6 @@ _:patch
|
|
|
37082
37077
|
var RdfDocument = class extends Thing {
|
|
37083
37078
|
constructor(uri6, store, editable = false) {
|
|
37084
37079
|
super(uri6, store, editable);
|
|
37085
|
-
this.uri = uri6;
|
|
37086
|
-
this.store = store;
|
|
37087
|
-
this.editable = editable;
|
|
37088
37080
|
}
|
|
37089
37081
|
subjects() {
|
|
37090
37082
|
const matches = this.store.statementsMatching(
|
|
@@ -37106,9 +37098,6 @@ _:patch
|
|
|
37106
37098
|
var LabelIndex = class extends RdfDocument {
|
|
37107
37099
|
constructor(uri6, store, editable = false) {
|
|
37108
37100
|
super(uri6, store, editable);
|
|
37109
|
-
this.uri = uri6;
|
|
37110
|
-
this.store = store;
|
|
37111
|
-
this.editable = editable;
|
|
37112
37101
|
}
|
|
37113
37102
|
/**
|
|
37114
37103
|
* Returns the URIs and labels for all the things listed in the document.
|
|
@@ -58949,8 +58938,6 @@ _:patch
|
|
|
58949
58938
|
// src/uri/UriService.ts
|
|
58950
58939
|
var import_slugify = __toESM(require_slugify(), 1);
|
|
58951
58940
|
var UriService = class {
|
|
58952
|
-
// We expect to use the store for calculating the uris for things
|
|
58953
|
-
// e.g. looking up locations in type index
|
|
58954
58941
|
constructor(store) {
|
|
58955
58942
|
this.store = store;
|
|
58956
58943
|
}
|
|
@@ -59175,9 +59162,6 @@ _:patch
|
|
|
59175
59162
|
var TypeIndex2 = class extends Thing {
|
|
59176
59163
|
constructor(uri6, store, editable = false) {
|
|
59177
59164
|
super(uri6, store, editable);
|
|
59178
|
-
this.uri = uri6;
|
|
59179
|
-
this.store = store;
|
|
59180
|
-
this.editable = editable;
|
|
59181
59165
|
}
|
|
59182
59166
|
listAll() {
|
|
59183
59167
|
const forClassStatements = this.store.statementsMatching(
|
package/package.json
CHANGED
package/types/Store.d.ts
CHANGED
|
@@ -10,11 +10,11 @@ import { BlankNode, Quad, Quad_Graph, Quad_Object, Quad_Predicate, Quad_Subject,
|
|
|
10
10
|
* It can be used to fetch additional data from the web and also update data and sync it back to editable resources.
|
|
11
11
|
*/
|
|
12
12
|
export declare class Store {
|
|
13
|
-
private readonly internalStore;
|
|
14
13
|
private readonly fetcher;
|
|
15
14
|
private readonly updater;
|
|
16
15
|
additions$: Subject<Quad>;
|
|
17
16
|
removals$: Subject<Quad>;
|
|
17
|
+
private readonly internalStore;
|
|
18
18
|
constructor(session: PodOsSession, offlineCache?: OfflineCache, onlineStatus?: OnlineStatus, internalStore?: IndexedFormula);
|
|
19
19
|
/**
|
|
20
20
|
* Fetch data for the given URI to the internalStore
|
|
@@ -7,7 +7,7 @@ import { ResultAsync } from "neverthrow";
|
|
|
7
7
|
* Handles HTTP operations for files, like fetching and updating file contents.
|
|
8
8
|
*/
|
|
9
9
|
export declare class FileFetcher {
|
|
10
|
-
private session;
|
|
10
|
+
private readonly session;
|
|
11
11
|
constructor(session: PodOsSession);
|
|
12
12
|
/**
|
|
13
13
|
* Fetch the contents of the given file
|
|
@@ -6,9 +6,6 @@ export interface ContainerContent {
|
|
|
6
6
|
name: string;
|
|
7
7
|
}
|
|
8
8
|
export declare class LdpContainer extends Thing {
|
|
9
|
-
readonly uri: string;
|
|
10
|
-
readonly store: Store;
|
|
11
|
-
readonly editable: boolean;
|
|
12
9
|
constructor(uri: string, store: Store, editable?: boolean);
|
|
13
10
|
/**
|
|
14
11
|
* Resources that the LDP Container contains
|
|
@@ -4,10 +4,8 @@ import { Store } from "../Store";
|
|
|
4
4
|
* Allows finding things related to the WebID and their profile document
|
|
5
5
|
*/
|
|
6
6
|
export declare class WebIdProfile extends Thing {
|
|
7
|
+
private readonly profileQuery;
|
|
7
8
|
readonly webId: string;
|
|
8
|
-
readonly store: Store;
|
|
9
|
-
readonly editable: boolean;
|
|
10
|
-
private profileQuery;
|
|
11
9
|
constructor(webId: string, store: Store, editable?: boolean);
|
|
12
10
|
/**
|
|
13
11
|
* Returns the URI of the preferences document
|
|
@@ -4,9 +4,6 @@ export interface Subject {
|
|
|
4
4
|
uri: string;
|
|
5
5
|
}
|
|
6
6
|
export declare class RdfDocument extends Thing {
|
|
7
|
-
readonly uri: string;
|
|
8
|
-
readonly store: Store;
|
|
9
|
-
readonly editable: boolean;
|
|
10
7
|
constructor(uri: string, store: Store, editable?: boolean);
|
|
11
8
|
subjects(): {
|
|
12
9
|
uri: string;
|
|
@@ -5,9 +5,6 @@ import { Store } from "../Store";
|
|
|
5
5
|
* https://github.com/pod-os/PodOS/blob/main/docs/features/full-text-search.md
|
|
6
6
|
*/
|
|
7
7
|
export declare class LabelIndex extends RdfDocument {
|
|
8
|
-
readonly uri: string;
|
|
9
|
-
readonly store: Store;
|
|
10
|
-
readonly editable: boolean;
|
|
11
8
|
constructor(uri: string, store: Store, editable?: boolean);
|
|
12
9
|
/**
|
|
13
10
|
* Returns the URIs and labels for all the things listed in the document.
|
|
@@ -4,7 +4,7 @@ import { LabelIndex } from "./LabelIndex";
|
|
|
4
4
|
import { Thing } from "../thing";
|
|
5
5
|
import { SearchIndex } from "./SearchIndex";
|
|
6
6
|
export declare class SearchGateway {
|
|
7
|
-
private store;
|
|
7
|
+
private readonly store;
|
|
8
8
|
constructor(store: Store);
|
|
9
9
|
/**
|
|
10
10
|
* Fetch the private label index for the given profile and build a search index from it
|
|
@@ -4,8 +4,8 @@ import { Index } from "lunr";
|
|
|
4
4
|
* A fast, in-memory search index based on data from label indexes. Both labels and URIs are indexed.
|
|
5
5
|
*/
|
|
6
6
|
export declare class SearchIndex {
|
|
7
|
-
private labelIndexes;
|
|
8
7
|
private index;
|
|
8
|
+
private readonly labelIndexes;
|
|
9
9
|
constructor(labelIndexes: LabelIndex[]);
|
|
10
10
|
/**
|
|
11
11
|
* Recreates the search index with the current data from all label indexes
|
package/types/thing/Thing.d.ts
CHANGED
|
@@ -25,11 +25,7 @@ export declare class Thing {
|
|
|
25
25
|
* Whether the Thing can be edited according to its access control settings
|
|
26
26
|
*/
|
|
27
27
|
readonly editable: boolean;
|
|
28
|
-
constructor(uri: string, store: Store,
|
|
29
|
-
/**
|
|
30
|
-
* Whether the Thing can be edited according to its access control settings
|
|
31
|
-
*/
|
|
32
|
-
editable?: boolean);
|
|
28
|
+
constructor(uri: string, store: Store, editable?: boolean);
|
|
33
29
|
/**
|
|
34
30
|
* Returns a human-readable label for this thing. Tries to match common RDF terms
|
|
35
31
|
* used for labels, such as `rdfs:label`, `schema:name` and others.
|
|
@@ -6,9 +6,6 @@ import { Store } from "../Store";
|
|
|
6
6
|
* @since 0.24.0
|
|
7
7
|
*/
|
|
8
8
|
export declare class TypeIndex extends Thing {
|
|
9
|
-
readonly uri: string;
|
|
10
|
-
readonly store: Store;
|
|
11
|
-
readonly editable: boolean;
|
|
12
9
|
constructor(uri: string, store: Store, editable?: boolean);
|
|
13
10
|
listAll(): TypeRegistration[];
|
|
14
11
|
}
|