@ldo/solid-react 1.0.0-alpha.5 → 1.0.0-alpha.51
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/README.md +24 -24
- package/dist/SolidAuthContext.cjs +12 -0
- package/dist/SolidAuthContext.d.cts +18 -0
- package/dist/SolidAuthContext.d.cts.map +1 -0
- package/dist/SolidAuthContext.d.mts +18 -0
- package/dist/SolidAuthContext.d.mts.map +1 -0
- package/dist/SolidAuthContext.mjs +12 -0
- package/dist/SolidAuthContext.mjs.map +1 -0
- package/dist/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/createBrowserSolidReactMethods.cjs +95 -0
- package/dist/createBrowserSolidReactMethods.d.cts +26 -0
- package/dist/createBrowserSolidReactMethods.d.cts.map +1 -0
- package/dist/createBrowserSolidReactMethods.d.mts +26 -0
- package/dist/createBrowserSolidReactMethods.d.mts.map +1 -0
- package/dist/createBrowserSolidReactMethods.mjs +94 -0
- package/dist/createBrowserSolidReactMethods.mjs.map +1 -0
- package/dist/defaultIntance.cjs +27 -0
- package/dist/defaultIntance.d.cts +25 -0
- package/dist/defaultIntance.d.cts.map +1 -0
- package/dist/defaultIntance.d.mts +25 -0
- package/dist/defaultIntance.d.mts.map +1 -0
- package/dist/defaultIntance.mjs +13 -0
- package/dist/defaultIntance.mjs.map +1 -0
- package/dist/index.cjs +20 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +3 -0
- package/dist/node_modules/@rdfjs/types/data-model.d.cts +159 -0
- package/dist/node_modules/@rdfjs/types/data-model.d.cts.map +1 -0
- package/dist/node_modules/@rdfjs/types/data-model.d.mts +159 -0
- package/dist/node_modules/@rdfjs/types/data-model.d.mts.map +1 -0
- package/dist/packages/dataset/dist/createDatasetFromSerializedInput.d.cts +1 -0
- package/dist/packages/dataset/dist/createDatasetFromSerializedInput.d.mts +1 -0
- package/dist/packages/dataset/dist/createExtendedDatasetFromSerializedInput.d.cts +1 -0
- package/dist/packages/dataset/dist/createExtendedDatasetFromSerializedInput.d.mts +1 -0
- package/dist/packages/dataset/dist/index.d.cts +1 -0
- package/dist/packages/dataset/dist/index.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/ContextUtil.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/ContextUtil.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/JsonldDatasetProxyBuilder.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/JsonldDatasetProxyBuilder.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/LdoJsonldContext.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/LdoJsonldContext.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/ProxyContext.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/ProxyContext.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/graphOf.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/graphOf.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/index.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/index.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/jsonldDatasetProxy.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/jsonldDatasetProxy.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/language/languageMapProxy.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/language/languageMapProxy.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/language/languageUtils.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/language/languageUtils.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/setProxy/SetProxy.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/setProxy/SetProxy.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/setProxy/createNewSetProxy.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/setProxy/createNewSetProxy.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/setProxy/isSetProxy.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/setProxy/isSetProxy.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/setProxy/ldSet/LdSet.d.cts +166 -0
- package/dist/packages/jsonld-dataset-proxy/dist/setProxy/ldSet/LdSet.d.cts.map +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/setProxy/ldSet/LdSet.d.mts +166 -0
- package/dist/packages/jsonld-dataset-proxy/dist/setProxy/ldSet/LdSet.d.mts.map +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/subjectProxy/SubjectProxy.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/subjectProxy/SubjectProxy.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/subjectProxy/createSubjectHandler.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/subjectProxy/createSubjectHandler.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/subjectProxy/deleteFromDataset.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/subjectProxy/deleteFromDataset.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/subjectProxy/getValueForKey.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/subjectProxy/getValueForKey.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/subjectProxy/isSubjectProxy.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/subjectProxy/isSubjectProxy.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/util/NodeSet.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/util/NodeSet.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/util/addObjectToDataset.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/util/addObjectToDataset.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/util/getNodeFromRaw.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/util/getNodeFromRaw.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/util/isProxy.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/util/isProxy.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/util/nodeToJsonldRepresentation.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/util/nodeToJsonldRepresentation.d.mts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/write.d.cts +1 -0
- package/dist/packages/jsonld-dataset-proxy/dist/write.d.mts +1 -0
- package/dist/packages/ldo/dist/LdoBuilder.d.cts +1 -0
- package/dist/packages/ldo/dist/LdoBuilder.d.mts +1 -0
- package/dist/packages/ldo/dist/LdoDataset.d.cts +1 -0
- package/dist/packages/ldo/dist/LdoDataset.d.mts +1 -0
- package/dist/packages/ldo/dist/LdoDatasetFactory.d.cts +1 -0
- package/dist/packages/ldo/dist/LdoDatasetFactory.d.mts +1 -0
- package/dist/packages/ldo/dist/LdoTransactionDataset.d.cts +1 -0
- package/dist/packages/ldo/dist/LdoTransactionDataset.d.mts +1 -0
- package/dist/packages/ldo/dist/ShapeType.d.cts +61 -0
- package/dist/packages/ldo/dist/ShapeType.d.cts.map +1 -0
- package/dist/packages/ldo/dist/ShapeType.d.mts +61 -0
- package/dist/packages/ldo/dist/ShapeType.d.mts.map +1 -0
- package/dist/packages/ldo/dist/createLdoDataset.d.cts +1 -0
- package/dist/packages/ldo/dist/createLdoDataset.d.mts +1 -0
- package/dist/packages/ldo/dist/index.d.cts +9 -0
- package/dist/packages/ldo/dist/index.d.cts.map +1 -0
- package/dist/packages/ldo/dist/index.d.mts +9 -0
- package/dist/packages/ldo/dist/index.d.mts.map +1 -0
- package/dist/packages/ldo/dist/methods.d.cts +1 -0
- package/dist/packages/ldo/dist/methods.d.mts +1 -0
- package/dist/packages/ldo/dist/node_modules/@types/shexj/index.d.cts +547 -0
- package/dist/packages/ldo/dist/node_modules/@types/shexj/index.d.cts.map +1 -0
- package/dist/packages/ldo/dist/node_modules/@types/shexj/index.d.mts +547 -0
- package/dist/packages/ldo/dist/node_modules/@types/shexj/index.d.mts.map +1 -0
- package/dist/packages/ldo/dist/parseRdf.d.cts +1 -0
- package/dist/packages/ldo/dist/parseRdf.d.mts +1 -0
- package/dist/packages/ldo/dist/types.d.cts +1 -0
- package/dist/packages/ldo/dist/types.d.mts +1 -0
- package/dist/packages/ldo/dist/util.d.cts +10 -0
- package/dist/packages/ldo/dist/util.d.cts.map +1 -0
- package/dist/packages/ldo/dist/util.d.mts +10 -0
- package/dist/packages/ldo/dist/util.d.mts.map +1 -0
- package/dist/packages/rdf-utils/dist/datasetConverters.d.cts +1 -0
- package/dist/packages/rdf-utils/dist/datasetConverters.d.mts +1 -0
- package/dist/packages/rdf-utils/dist/index.d.cts +1 -0
- package/dist/packages/rdf-utils/dist/index.d.mts +1 -0
- package/dist/packages/rdf-utils/dist/nodeSerialization.d.cts +21 -0
- package/dist/packages/rdf-utils/dist/nodeSerialization.d.cts.map +1 -0
- package/dist/packages/rdf-utils/dist/nodeSerialization.d.mts +21 -0
- package/dist/packages/rdf-utils/dist/nodeSerialization.d.mts.map +1 -0
- package/dist/packages/rdf-utils/dist/rdfjsDataModel.d.cts +1 -0
- package/dist/packages/rdf-utils/dist/rdfjsDataModel.d.mts +1 -0
- package/dist/packages/rdf-utils/dist/serializedToQuads.d.cts +1 -0
- package/dist/packages/rdf-utils/dist/serializedToQuads.d.mts +1 -0
- package/dist/packages/subscribable-dataset/dist/SubscribableDataset.d.cts +1 -0
- package/dist/packages/subscribable-dataset/dist/SubscribableDataset.d.mts +1 -0
- package/dist/packages/subscribable-dataset/dist/SubscribableDatasetFactory.d.cts +1 -0
- package/dist/packages/subscribable-dataset/dist/SubscribableDatasetFactory.d.mts +1 -0
- package/dist/packages/subscribable-dataset/dist/TransactionDataset.d.cts +1 -0
- package/dist/packages/subscribable-dataset/dist/TransactionDataset.d.mts +1 -0
- package/dist/packages/subscribable-dataset/dist/TransactionDatasetFactory.d.cts +1 -0
- package/dist/packages/subscribable-dataset/dist/TransactionDatasetFactory.d.mts +1 -0
- package/dist/packages/subscribable-dataset/dist/createSubscribableDataset.d.cts +1 -0
- package/dist/packages/subscribable-dataset/dist/createSubscribableDataset.d.mts +1 -0
- package/dist/packages/subscribable-dataset/dist/createSubscribableDatasetFromSerializedInput.d.cts +1 -0
- package/dist/packages/subscribable-dataset/dist/createSubscribableDatasetFromSerializedInput.d.mts +1 -0
- package/dist/packages/subscribable-dataset/dist/index.d.cts +1 -0
- package/dist/packages/subscribable-dataset/dist/index.d.mts +1 -0
- package/dist/packages/subscribable-dataset/dist/mergeDatasetChanges.d.cts +1 -0
- package/dist/packages/subscribable-dataset/dist/mergeDatasetChanges.d.mts +1 -0
- package/dist/packages/subscribable-dataset/dist/types.d.cts +1 -0
- package/dist/packages/subscribable-dataset/dist/types.d.mts +1 -0
- package/dist/packages/subscribable-dataset/dist/util.d.cts +1 -0
- package/dist/packages/subscribable-dataset/dist/util.d.mts +1 -0
- package/dist/useRootContainerFor.cjs +25 -0
- package/dist/useRootContainerFor.mjs +26 -0
- package/dist/useRootContainerFor.mjs.map +1 -0
- package/package.json +34 -26
- package/src/SolidAuthContext.ts +14 -17
- package/src/UnauthenticatedSolidLdoProvider.tsx +17 -34
- package/src/createBrowserSolidReactMethods.tsx +82 -87
- package/src/defaultIntance.ts +6 -0
- package/dist/SolidAuthContext.d.ts +0 -14
- package/dist/SolidAuthContext.js +0 -10
- package/dist/SolidAuthContext.js.map +0 -1
- package/dist/UnauthenticatedSolidLdoProvider.d.ts +0 -2
- package/dist/UnauthenticatedSolidLdoProvider.js +0 -40
- package/dist/UnauthenticatedSolidLdoProvider.js.map +0 -1
- package/dist/createBrowserSolidReactMethods.d.ts +0 -11
- package/dist/createBrowserSolidReactMethods.js +0 -79
- package/dist/createBrowserSolidReactMethods.js.map +0 -1
- package/dist/defaultIntance.d.ts +0 -5
- package/dist/defaultIntance.js +0 -10
- package/dist/defaultIntance.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -19
- package/dist/index.js.map +0 -1
- package/dist/useRootContainerFor.d.ts +0 -4
- package/dist/useRootContainerFor.js +0 -25
- package/dist/useRootContainerFor.js.map +0 -1
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
//#region ../jsonld-dataset-proxy/dist/setProxy/ldSet/LdSet.d.mts
|
|
2
|
+
//#region src/setProxy/ldSet/LdSet.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* An abract representation for a set of Linked Data Objects
|
|
5
|
+
*/
|
|
6
|
+
interface LdSet<T> extends Set<T> {
|
|
7
|
+
/**
|
|
8
|
+
* ===========================================================================
|
|
9
|
+
* BASE METHODS
|
|
10
|
+
* ===========================================================================
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Appends a new element with a specified value to the end of the Set.
|
|
14
|
+
*/
|
|
15
|
+
add(value: T): this;
|
|
16
|
+
/**
|
|
17
|
+
* Clears this set of all values, but keeps the values in the datastore
|
|
18
|
+
*/
|
|
19
|
+
clear(): void;
|
|
20
|
+
/**
|
|
21
|
+
* Removes a specified value from the Set.
|
|
22
|
+
* @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
|
|
23
|
+
*/
|
|
24
|
+
delete(value: T): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @returns a boolean indicating whether an element with the specified value exists in the Set or not.
|
|
27
|
+
*/
|
|
28
|
+
has(value: T): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @returns the number of (unique) elements in Set.
|
|
31
|
+
*/
|
|
32
|
+
readonly size: number;
|
|
33
|
+
/** Iterates over values in the set. */
|
|
34
|
+
[Symbol.iterator](): IterableIterator<T>;
|
|
35
|
+
/**
|
|
36
|
+
* Returns an iterable of [v,v] pairs for every value `v` in the set.
|
|
37
|
+
*/
|
|
38
|
+
entries(): IterableIterator<[T, T]>;
|
|
39
|
+
/**
|
|
40
|
+
* Despite its name, returns an iterable of the values in the set.
|
|
41
|
+
*/
|
|
42
|
+
keys(): IterableIterator<T>;
|
|
43
|
+
/**
|
|
44
|
+
* Returns an iterable of values in the set.
|
|
45
|
+
*/
|
|
46
|
+
values(): IterableIterator<T>;
|
|
47
|
+
/**
|
|
48
|
+
* ===========================================================================
|
|
49
|
+
* ITERATOR METHODS
|
|
50
|
+
* These methods mimic array methods
|
|
51
|
+
* ===========================================================================
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* Determines whether all the members of an set satisfy the specified test.
|
|
55
|
+
* @param predicate A function that accepts up to two arguments. The every method calls
|
|
56
|
+
* the predicate function for each element in the set until the predicate returns a value
|
|
57
|
+
* which is coercible to the Boolean value false, or until the end of the set.
|
|
58
|
+
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
59
|
+
* If thisArg is omitted, undefined is used as the this value.
|
|
60
|
+
*/
|
|
61
|
+
every<S extends T>(predicate: (value: T, set: LdSet<T>) => value is S, thisArg?: any): this is LdSet<S>;
|
|
62
|
+
/**
|
|
63
|
+
* Determines whether all the members of an set satisfy the specified test.
|
|
64
|
+
* @param predicate A function that accepts up to two arguments. The every method calls
|
|
65
|
+
* the predicate function for each element in the set until the predicate returns a value
|
|
66
|
+
* which is coercible to the Boolean value false, or until the end of the set.
|
|
67
|
+
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
68
|
+
* If thisArg is omitted, undefined is used as the this value.
|
|
69
|
+
*/
|
|
70
|
+
every(predicate: (value: T, set: LdSet<T>) => unknown, thisArg?: any): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Determines whether the specified callback function returns true for any element of a set.
|
|
73
|
+
* @param predicate A function that accepts up to two arguments. The some method calls
|
|
74
|
+
* the predicate function for each element in the set until the predicate returns a value
|
|
75
|
+
* which is coercible to the Boolean value true, or until the end of the set.
|
|
76
|
+
* @param thisArg An object to which the this keyword can refer in the predicate function.
|
|
77
|
+
* If thisArg is omitted, undefined is used as the this value.
|
|
78
|
+
*/
|
|
79
|
+
some(predicate: (value: T, set: LdSet<T>) => unknown, thisArg?: any): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Performs the specified action for each element in an set.
|
|
82
|
+
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the set. A "value2" is provided for parity with the base set.
|
|
83
|
+
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
84
|
+
*/
|
|
85
|
+
forEach(callbackfn: (value: T, value2: T, set: LdSet<T>) => void, thisArg?: any): void;
|
|
86
|
+
/**
|
|
87
|
+
* Calls a defined callback function on each element of an set, and returns a set that contains the results.
|
|
88
|
+
* @param callbackfn A function that accepts up to two arguments. The map method calls the callbackfn function one time for each element in the set.
|
|
89
|
+
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
|
|
90
|
+
*/
|
|
91
|
+
map<U>(callbackfn: (value: T, set: LdSet<T>) => U, thisArg?: any): U[];
|
|
92
|
+
/**
|
|
93
|
+
* Returns the elements of a set that meet the condition specified in a callback function.
|
|
94
|
+
* @param predicate A function that accepts up to two arguments. The filter method calls the predicate function one time for each element in the set.
|
|
95
|
+
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
|
|
96
|
+
*/
|
|
97
|
+
filter<S extends T>(predicate: (value: T, set: LdSet<T>) => value is S, thisArg?: any): LdSet<S>;
|
|
98
|
+
/**
|
|
99
|
+
* Returns the elements of a set that meet the condition specified in a callback function.
|
|
100
|
+
* @param predicate A function that accepts up to two arguments. The filter method calls the predicate function one time for each element in the set.
|
|
101
|
+
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
|
|
102
|
+
*/
|
|
103
|
+
filter(predicate: (value: T, set: LdSet<T>) => unknown, thisArg?: any): LdSet<T>;
|
|
104
|
+
/**
|
|
105
|
+
* Calls the specified callback function for all the elements in a set. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
106
|
+
* @param callbackfn A function that accepts up to three arguments. The reduce method calls the callbackfn function one time for each element in the set.
|
|
107
|
+
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
108
|
+
*/
|
|
109
|
+
reduce(callbackfn: (previousValue: T, currentValue: T, set: LdSet<T>) => T): T;
|
|
110
|
+
/**
|
|
111
|
+
* Calls the specified callback function for all the elements in a set. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
112
|
+
* @param callbackfn A function that accepts up to three arguments. The reduce method calls the callbackfn function one time for each element in the set.
|
|
113
|
+
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
114
|
+
*/
|
|
115
|
+
reduce(callbackfn: (previousValue: T, currentValue: T, set: LdSet<T>) => T, initialValue: T): T;
|
|
116
|
+
/**
|
|
117
|
+
* Calls the specified callback function for all the elements in a set. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
|
|
118
|
+
* @param callbackfn A function that accepts up to three arguments. The reduce method calls the callbackfn function one time for each element in the set.
|
|
119
|
+
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
|
|
120
|
+
*/
|
|
121
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: T, array: LdSet<T>) => U, initialValue: U): U;
|
|
122
|
+
/**
|
|
123
|
+
* Converts the current LdSet to an array.
|
|
124
|
+
*/
|
|
125
|
+
toArray(): T[];
|
|
126
|
+
/**
|
|
127
|
+
* Converts to JSON
|
|
128
|
+
*/
|
|
129
|
+
toJSON(): T[];
|
|
130
|
+
/**
|
|
131
|
+
* ===========================================================================
|
|
132
|
+
* EXTENDED SET METHODS
|
|
133
|
+
* ===========================================================================
|
|
134
|
+
*/
|
|
135
|
+
/**
|
|
136
|
+
* Returns a new set containing elements in this set but not in the given set.
|
|
137
|
+
*/
|
|
138
|
+
difference(other: Set<T>): LdSet<T>;
|
|
139
|
+
/**
|
|
140
|
+
* returns a new set containing elements in both this set and the given set.
|
|
141
|
+
*/
|
|
142
|
+
intersection(other: Set<T>): LdSet<T>;
|
|
143
|
+
/**
|
|
144
|
+
* Returns a boolean indicating if this set has no elements in common with the given set.
|
|
145
|
+
*/
|
|
146
|
+
isDisjointFrom(other: Set<T>): boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Returns a boolean indicating if all elements of this set are in the given set.
|
|
149
|
+
*/
|
|
150
|
+
isSubsetOf(other: Set<T>): boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Returns a boolean indicating if all elements of the given set are in this set.
|
|
153
|
+
*/
|
|
154
|
+
isSupersetOf(other: Set<T>): boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Returns a new set containing elements which are in either this set or the given set, but not in both.
|
|
157
|
+
*/
|
|
158
|
+
symmetricDifference(other: Set<T>): LdSet<T>;
|
|
159
|
+
/**
|
|
160
|
+
* Returns a new set containing elements which are in either or both of this set and the given set.
|
|
161
|
+
*/
|
|
162
|
+
union(other: Set<T>): LdSet<T>;
|
|
163
|
+
} //#endregion
|
|
164
|
+
//#endregion
|
|
165
|
+
export { LdSet };
|
|
166
|
+
//# sourceMappingURL=LdSet.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LdSet.d.mts","names":["LdSet","S","U","T","IterableIterator","Set","add","value","clear","delete","has","size","Symbol","iterator","entries","keys","values","every","set","predicate","thisArg","some","forEach","value2","callbackfn","map","filter","reduce","previousValue","currentValue","initialValue","array","toArray","toJSON","difference","other","intersection","isDisjointFrom","isSubsetOf","isSupersetOf","symmetricDifference","union"],"sources":["../../../../../../../jsonld-dataset-proxy/dist/setProxy/ldSet/LdSet.d.mts"],"mappings":";;;;;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;;;EAmFAiB,MAAAA,IAAU9B,CAAAA;EApEJF;;;;;EAA8CE;;;EA6EpD+B,UAAAA,CAAWC,KAAAA,EAAO9B,GAAAA,CAAIF,CAAAA,IAAKH,KAAAA,CAAMG,CAAAA;EA7EdgB;;;EAiFnBiB,YAAAA,CAAaD,KAAAA,EAAO9B,GAAAA,CAAIF,CAAAA,IAAKH,KAAAA,CAAMG,CAAAA;EAxEnCc;;;EA4EAoB,cAAAA,CAAeF,KAAAA,EAAO9B,GAAAA,CAAIF,CAAAA;EA5EaA;;;EAgFvCmC,UAAAA,CAAWH,KAAAA,EAAO9B,GAAAA,CAAIF,CAAAA;EAvEtBkB;;;EA2EAkB,YAAAA,CAAaJ,KAAAA,EAAO9B,GAAAA,CAAIF,CAAAA;EA3EcA;;;EA+EtCqC,mBAAAA,CAAoBL,KAAAA,EAAO9B,GAAAA,CAAIF,CAAAA,IAAKH,KAAAA,CAAMG,CAAAA;EAzE1CmB;;;EA6EAmB,KAAAA,CAAMN,KAAAA,EAAO9B,GAAAA,CAAIF,CAAAA,IAAKH,KAAAA,CAAMG,CAAAA;AAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ContextDefinition } from "jsonld";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ContextDefinition } from "jsonld";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { LdoBase } from "./util.cjs";
|
|
2
|
+
import { Schema } from "./node_modules/@types/shexj/index.cjs";
|
|
3
|
+
import { ContextDefinition } from "jsonld";
|
|
4
|
+
|
|
5
|
+
//#region ../ldo/dist/ShapeType.d.mts
|
|
6
|
+
//#region src/ShapeType.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* @category Types
|
|
9
|
+
*
|
|
10
|
+
* A `ShapeType` is an interface that contains information required by LDO to create a Linked Data Object. ShapeTypes are generated by the `@ldo/cli` `build` command, and it contains the following data:
|
|
11
|
+
*
|
|
12
|
+
* - ShEx Schema
|
|
13
|
+
* - Generated Typescript Typings
|
|
14
|
+
* - Generated Context
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* The following is the ShapeType generated for the example `FoafProfile.shex` file.
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import { ShapeType } from "ldo";
|
|
20
|
+
* import { foafProfileSchema } from "./foafProfile.schema";
|
|
21
|
+
* import { foafProfileContext } from "./foafProfile.context";
|
|
22
|
+
* import { FoafProfile } from "./foafProfile.typings";
|
|
23
|
+
*
|
|
24
|
+
* export const FoafProfileShapeType: ShapeType<FoafProfile> = {
|
|
25
|
+
* schema: foafProfileSchema,
|
|
26
|
+
* shape: "https://example.com/FoafProfile",
|
|
27
|
+
* context: foafProfileContext,
|
|
28
|
+
* };
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* This can be imported and used to create a Linked Data Object.
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import { FoafProfileShapeType } from "./_ldo/foafProfile.shapeTypes";
|
|
34
|
+
* import { FoafProfile } from "./_ldo/foafProfile.typings";
|
|
35
|
+
*
|
|
36
|
+
* const profile: FoafProfile = ldoDataset
|
|
37
|
+
* .usingType(FoafProfileShapeType)
|
|
38
|
+
* .fromSubject("https://example.com/profile.ttl#me");
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
type ShapeType<Type extends LdoBase> = {
|
|
42
|
+
/**
|
|
43
|
+
* The ShEx Schema
|
|
44
|
+
*/
|
|
45
|
+
schema: Schema;
|
|
46
|
+
/**
|
|
47
|
+
* The key of the shape within the schema to which this ShapeType refers
|
|
48
|
+
*/
|
|
49
|
+
shape: string;
|
|
50
|
+
/**
|
|
51
|
+
* A JSON-LD context generated for this Schema
|
|
52
|
+
*/
|
|
53
|
+
context: ContextDefinition;
|
|
54
|
+
/**
|
|
55
|
+
* This field is optional and the `@ldo/cli` `build` command will not provide this field. The `exampleData` field's primary purpose is to force the TypeScript parser to recognize the provided `Type` so it can be auto-inferenced in the `LdoDataset.usingType` method.
|
|
56
|
+
*/
|
|
57
|
+
exampleData?: Type;
|
|
58
|
+
}; //#endregion
|
|
59
|
+
//#endregion
|
|
60
|
+
export { ShapeType };
|
|
61
|
+
//# sourceMappingURL=ShapeType.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShapeType.d.cts","names":["Schema","LdoBase","ContextDefinition","ShapeType","Type","schema","shape","context","exampleData"],"sources":["../../../../../ldo/dist/ShapeType.d.mts"],"mappings":";;;;;;AAE2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,KAqCtCG,SAAAA,cAAuBF,OAAAA;;;;EAI1BI,MAAAA,EAAQL,MAAAA;;;;EAIRM,KAAAA;;;;EAIAC,OAAAA,EAASL,iBAAAA;;;;EAITM,WAAAA,GAAcJ,IAAAA;AAAAA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { LdoBase } from "./util.mjs";
|
|
2
|
+
import { Schema } from "./node_modules/@types/shexj/index.mjs";
|
|
3
|
+
import { ContextDefinition } from "jsonld";
|
|
4
|
+
|
|
5
|
+
//#region ../ldo/dist/ShapeType.d.mts
|
|
6
|
+
//#region src/ShapeType.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* @category Types
|
|
9
|
+
*
|
|
10
|
+
* A `ShapeType` is an interface that contains information required by LDO to create a Linked Data Object. ShapeTypes are generated by the `@ldo/cli` `build` command, and it contains the following data:
|
|
11
|
+
*
|
|
12
|
+
* - ShEx Schema
|
|
13
|
+
* - Generated Typescript Typings
|
|
14
|
+
* - Generated Context
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* The following is the ShapeType generated for the example `FoafProfile.shex` file.
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import { ShapeType } from "ldo";
|
|
20
|
+
* import { foafProfileSchema } from "./foafProfile.schema";
|
|
21
|
+
* import { foafProfileContext } from "./foafProfile.context";
|
|
22
|
+
* import { FoafProfile } from "./foafProfile.typings";
|
|
23
|
+
*
|
|
24
|
+
* export const FoafProfileShapeType: ShapeType<FoafProfile> = {
|
|
25
|
+
* schema: foafProfileSchema,
|
|
26
|
+
* shape: "https://example.com/FoafProfile",
|
|
27
|
+
* context: foafProfileContext,
|
|
28
|
+
* };
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* This can be imported and used to create a Linked Data Object.
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import { FoafProfileShapeType } from "./_ldo/foafProfile.shapeTypes";
|
|
34
|
+
* import { FoafProfile } from "./_ldo/foafProfile.typings";
|
|
35
|
+
*
|
|
36
|
+
* const profile: FoafProfile = ldoDataset
|
|
37
|
+
* .usingType(FoafProfileShapeType)
|
|
38
|
+
* .fromSubject("https://example.com/profile.ttl#me");
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
type ShapeType<Type extends LdoBase> = {
|
|
42
|
+
/**
|
|
43
|
+
* The ShEx Schema
|
|
44
|
+
*/
|
|
45
|
+
schema: Schema;
|
|
46
|
+
/**
|
|
47
|
+
* The key of the shape within the schema to which this ShapeType refers
|
|
48
|
+
*/
|
|
49
|
+
shape: string;
|
|
50
|
+
/**
|
|
51
|
+
* A JSON-LD context generated for this Schema
|
|
52
|
+
*/
|
|
53
|
+
context: ContextDefinition;
|
|
54
|
+
/**
|
|
55
|
+
* This field is optional and the `@ldo/cli` `build` command will not provide this field. The `exampleData` field's primary purpose is to force the TypeScript parser to recognize the provided `Type` so it can be auto-inferenced in the `LdoDataset.usingType` method.
|
|
56
|
+
*/
|
|
57
|
+
exampleData?: Type;
|
|
58
|
+
}; //#endregion
|
|
59
|
+
//#endregion
|
|
60
|
+
export { ShapeType };
|
|
61
|
+
//# sourceMappingURL=ShapeType.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShapeType.d.mts","names":["Schema","LdoBase","ContextDefinition","ShapeType","Type","schema","shape","context","exampleData"],"sources":["../../../../../ldo/dist/ShapeType.d.mts"],"mappings":";;;;;;AAE2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,KAqCtCG,SAAAA,cAAuBF,OAAAA;;;;EAI1BI,MAAAA,EAAQL,MAAAA;;;;EAIRM,KAAAA;;;;EAIAC,OAAAA,EAASL,iBAAAA;;;;EAITM,WAAAA,GAAcJ,IAAAA;AAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LdoBase as LdoBase$1 } from "./util.cjs";
|
|
2
|
+
import { ShapeType } from "./ShapeType.cjs";
|
|
3
|
+
import { LdSet } from "../../jsonld-dataset-proxy/dist/setProxy/ldSet/LdSet.cjs";
|
|
4
|
+
//#region ../ldo/dist/index.d.mts
|
|
5
|
+
//#region src/index.d.ts
|
|
6
|
+
type LdoBase = LdoBase$1; //#endregion
|
|
7
|
+
//#endregion
|
|
8
|
+
export { LdoBase };
|
|
9
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":["LdoBase","LdoBase$1","ShapeType","LdoBuilder","ILdoDataset","LdoTransactionDataset","LdoDataset","parseRdf","commitTransaction","getDataset","getRdfNode","graphOf","languagesOf","serialize","setLanguagePreferences","startTransaction","toJsonLd","toNTriples","toSparqlUpdate","toTurtle","transactionChanges","write","createLdoDataset","createLdoDatasetFactory","LdSet","LdoJsonldContext","set"],"sources":["../../../../../ldo/dist/index.d.mts"],"mappings":";;;;;KAYKA,OAAAA,GAAUC,SAAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LdoBase as LdoBase$1 } from "./util.mjs";
|
|
2
|
+
import { ShapeType } from "./ShapeType.mjs";
|
|
3
|
+
import { LdSet } from "../../jsonld-dataset-proxy/dist/setProxy/ldSet/LdSet.mjs";
|
|
4
|
+
//#region ../ldo/dist/index.d.mts
|
|
5
|
+
//#region src/index.d.ts
|
|
6
|
+
type LdoBase = LdoBase$1; //#endregion
|
|
7
|
+
//#endregion
|
|
8
|
+
export { LdoBase };
|
|
9
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":["LdoBase","LdoBase$1","ShapeType","LdoBuilder","ILdoDataset","LdoTransactionDataset","LdoDataset","parseRdf","commitTransaction","getDataset","getRdfNode","graphOf","languagesOf","serialize","setLanguagePreferences","startTransaction","toJsonLd","toNTriples","toSparqlUpdate","toTurtle","transactionChanges","write","createLdoDataset","createLdoDatasetFactory","LdSet","LdoJsonldContext","set"],"sources":["../../../../../ldo/dist/index.d.mts"],"mappings":";;;;;KAYKA,OAAAA,GAAUC,SAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|