@pod-os/core 0.17.1-rc.2078d14.0 → 0.17.1-rc.2cc1e61.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 +6 -6
- package/lib/index.js +6 -6
- package/package.json +1 -1
- package/types/thing/Thing.d.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -13705,17 +13705,17 @@ var Thing = class {
|
|
|
13705
13705
|
uris: values2[predicate5]
|
|
13706
13706
|
}));
|
|
13707
13707
|
}
|
|
13708
|
-
reverseRelations() {
|
|
13708
|
+
reverseRelations(predicate4) {
|
|
13709
13709
|
const statements = this.store.statementsMatching(
|
|
13710
13710
|
void 0,
|
|
13711
|
-
|
|
13711
|
+
predicate4 ? namedNode(predicate4) : null,
|
|
13712
13712
|
namedNode(this.uri)
|
|
13713
13713
|
);
|
|
13714
13714
|
const values2 = statements.reduce(accumulateSubjects, {});
|
|
13715
|
-
return Object.keys(values2).map((
|
|
13716
|
-
predicate:
|
|
13717
|
-
label: labelFromUri(
|
|
13718
|
-
uris: values2[
|
|
13715
|
+
return Object.keys(values2).map((predicate5) => ({
|
|
13716
|
+
predicate: predicate5,
|
|
13717
|
+
label: labelFromUri(predicate5),
|
|
13718
|
+
uris: values2[predicate5]
|
|
13719
13719
|
}));
|
|
13720
13720
|
}
|
|
13721
13721
|
anyValue(...predicateUris) {
|
package/lib/index.js
CHANGED
|
@@ -46672,17 +46672,17 @@ _:patch
|
|
|
46672
46672
|
uris: values2[predicate5]
|
|
46673
46673
|
}));
|
|
46674
46674
|
}
|
|
46675
|
-
reverseRelations() {
|
|
46675
|
+
reverseRelations(predicate4) {
|
|
46676
46676
|
const statements = this.store.statementsMatching(
|
|
46677
46677
|
void 0,
|
|
46678
|
-
|
|
46678
|
+
predicate4 ? namedNode(predicate4) : null,
|
|
46679
46679
|
namedNode(this.uri)
|
|
46680
46680
|
);
|
|
46681
46681
|
const values2 = statements.reduce(accumulateSubjects, {});
|
|
46682
|
-
return Object.keys(values2).map((
|
|
46683
|
-
predicate:
|
|
46684
|
-
label: labelFromUri(
|
|
46685
|
-
uris: values2[
|
|
46682
|
+
return Object.keys(values2).map((predicate5) => ({
|
|
46683
|
+
predicate: predicate5,
|
|
46684
|
+
label: labelFromUri(predicate5),
|
|
46685
|
+
uris: values2[predicate5]
|
|
46686
46686
|
}));
|
|
46687
46687
|
}
|
|
46688
46688
|
anyValue(...predicateUris) {
|
package/package.json
CHANGED
package/types/thing/Thing.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare class Thing {
|
|
|
28
28
|
label(): string;
|
|
29
29
|
literals(): Literal[];
|
|
30
30
|
relations(predicate?: string): Relation[];
|
|
31
|
-
reverseRelations(): Relation[];
|
|
31
|
+
reverseRelations(predicate?: string): Relation[];
|
|
32
32
|
anyValue(...predicateUris: string[]): undefined;
|
|
33
33
|
description(): undefined;
|
|
34
34
|
picture(): {
|