@dxos/echo-memory 0.0.0-stage → 0.0.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/LICENSE +105 -0
- package/dist/lib/Fact.mjs +1 -0
- package/dist/lib/FactFeed.mjs +1 -0
- package/dist/lib/Graph.mjs +1 -0
- package/dist/lib/Hash.mjs +1 -0
- package/dist/lib/Mapping.mjs +1 -0
- package/dist/lib/MemoryError.mjs +1 -0
- package/dist/lib/MemoryQuery.mjs +1 -0
- package/dist/lib/MemoryService.mjs +1 -0
- package/dist/lib/Ontology.mjs +1 -0
- package/dist/lib/Pipeline.mjs +1 -0
- package/dist/lib/Predicate.mjs +1 -0
- package/dist/lib/Rdf.mjs +1 -0
- package/dist/lib/RdfStore.mjs +1 -0
- package/dist/lib/Sparql.mjs +1 -0
- package/dist/lib/Subscription.mjs +1 -0
- package/dist/lib/Trig.mjs +1 -0
- package/dist/lib/Vocab.mjs +1 -0
- package/dist/lib/Vocabularies.mjs +1 -0
- package/dist/lib/chunk-Fact.mjs +245 -0
- package/dist/lib/chunk-Fact.mjs.map +1 -0
- package/dist/lib/chunk-FactFeed.mjs +29 -0
- package/dist/lib/chunk-FactFeed.mjs.map +1 -0
- package/dist/lib/chunk-Graph.mjs +147 -0
- package/dist/lib/chunk-Graph.mjs.map +1 -0
- package/dist/lib/chunk-Hash.mjs +16 -0
- package/dist/lib/chunk-Hash.mjs.map +1 -0
- package/dist/lib/chunk-Mapping.mjs +226 -0
- package/dist/lib/chunk-Mapping.mjs.map +1 -0
- package/dist/lib/chunk-MemoryError.mjs +10 -0
- package/dist/lib/chunk-MemoryError.mjs.map +1 -0
- package/dist/lib/chunk-MemoryQuery.mjs +99 -0
- package/dist/lib/chunk-MemoryQuery.mjs.map +1 -0
- package/dist/lib/chunk-MemoryService.mjs +31 -0
- package/dist/lib/chunk-MemoryService.mjs.map +1 -0
- package/dist/lib/chunk-Ontology.mjs +529 -0
- package/dist/lib/chunk-Ontology.mjs.map +1 -0
- package/dist/lib/chunk-Pipeline.mjs +84 -0
- package/dist/lib/chunk-Pipeline.mjs.map +1 -0
- package/dist/lib/chunk-Predicate.mjs +66 -0
- package/dist/lib/chunk-Predicate.mjs.map +1 -0
- package/dist/lib/chunk-Rdf.mjs +120 -0
- package/dist/lib/chunk-Rdf.mjs.map +1 -0
- package/dist/lib/chunk-RdfStore.mjs +60 -0
- package/dist/lib/chunk-RdfStore.mjs.map +1 -0
- package/dist/lib/chunk-Sparql.mjs +153 -0
- package/dist/lib/chunk-Sparql.mjs.map +1 -0
- package/dist/lib/chunk-Subscription.mjs +44 -0
- package/dist/lib/chunk-Subscription.mjs.map +1 -0
- package/dist/lib/chunk-Trig.mjs +106 -0
- package/dist/lib/chunk-Trig.mjs.map +1 -0
- package/dist/lib/chunk-Vocab.mjs +164 -0
- package/dist/lib/chunk-Vocab.mjs.map +1 -0
- package/dist/lib/chunk-Vocabularies.mjs +343 -0
- package/dist/lib/chunk-Vocabularies.mjs.map +1 -0
- package/dist/lib/chunk-rolldown-runtime.mjs +13 -0
- package/dist/lib/index.mjs +19 -0
- package/dist/types/src/Fact.d.ts +339 -0
- package/dist/types/src/Fact.d.ts.map +1 -0
- package/dist/types/src/Fact.test.d.ts +2 -0
- package/dist/types/src/Fact.test.d.ts.map +1 -0
- package/dist/types/src/FactFeed.d.ts +11 -0
- package/dist/types/src/FactFeed.d.ts.map +1 -0
- package/dist/types/src/FactFeed.test.d.ts +2 -0
- package/dist/types/src/FactFeed.test.d.ts.map +1 -0
- package/dist/types/src/Graph.d.ts +31 -0
- package/dist/types/src/Graph.d.ts.map +1 -0
- package/dist/types/src/Graph.test.d.ts +2 -0
- package/dist/types/src/Graph.test.d.ts.map +1 -0
- package/dist/types/src/Hash.d.ts +3 -0
- package/dist/types/src/Hash.d.ts.map +1 -0
- package/dist/types/src/Mapping.d.ts +18 -0
- package/dist/types/src/Mapping.d.ts.map +1 -0
- package/dist/types/src/Mapping.test.d.ts +2 -0
- package/dist/types/src/Mapping.test.d.ts.map +1 -0
- package/dist/types/src/MemoryError.d.ts +33 -0
- package/dist/types/src/MemoryError.d.ts.map +1 -0
- package/dist/types/src/MemoryQuery.d.ts +136 -0
- package/dist/types/src/MemoryQuery.d.ts.map +1 -0
- package/dist/types/src/MemoryQuery.test.d.ts +2 -0
- package/dist/types/src/MemoryQuery.test.d.ts.map +1 -0
- package/dist/types/src/MemoryService.d.ts +72 -0
- package/dist/types/src/MemoryService.d.ts.map +1 -0
- package/dist/types/src/Ontology.d.ts +115 -0
- package/dist/types/src/Ontology.d.ts.map +1 -0
- package/dist/types/src/Ontology.test.d.ts +2 -0
- package/dist/types/src/Ontology.test.d.ts.map +1 -0
- package/dist/types/src/Pipeline.d.ts +103 -0
- package/dist/types/src/Pipeline.d.ts.map +1 -0
- package/dist/types/src/Predicate.d.ts +17 -0
- package/dist/types/src/Predicate.d.ts.map +1 -0
- package/dist/types/src/Predicate.test.d.ts +2 -0
- package/dist/types/src/Predicate.test.d.ts.map +1 -0
- package/dist/types/src/Rdf.d.ts +33 -0
- package/dist/types/src/Rdf.d.ts.map +1 -0
- package/dist/types/src/Rdf.test.d.ts +2 -0
- package/dist/types/src/Rdf.test.d.ts.map +1 -0
- package/dist/types/src/RdfStore.d.ts +471 -0
- package/dist/types/src/RdfStore.d.ts.map +1 -0
- package/dist/types/src/Sparql.d.ts +58 -0
- package/dist/types/src/Sparql.d.ts.map +1 -0
- package/dist/types/src/Sparql.test.d.ts +2 -0
- package/dist/types/src/Sparql.test.d.ts.map +1 -0
- package/dist/types/src/Subscription.d.ts +100 -0
- package/dist/types/src/Subscription.d.ts.map +1 -0
- package/dist/types/src/Trig.d.ts +8 -0
- package/dist/types/src/Trig.d.ts.map +1 -0
- package/dist/types/src/Trig.test.d.ts +2 -0
- package/dist/types/src/Trig.test.d.ts.map +1 -0
- package/dist/types/src/Vocab.d.ts +90 -0
- package/dist/types/src/Vocab.d.ts.map +1 -0
- package/dist/types/src/Vocabularies.d.ts +45 -0
- package/dist/types/src/Vocabularies.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +19 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +133 -3
- package/src/Fact.test.ts +74 -0
- package/src/Fact.ts +269 -0
- package/src/FactFeed.test.ts +40 -0
- package/src/FactFeed.ts +38 -0
- package/src/Graph.test.ts +106 -0
- package/src/Graph.ts +158 -0
- package/src/Hash.ts +15 -0
- package/src/Mapping.test.ts +197 -0
- package/src/Mapping.ts +320 -0
- package/src/MemoryError.ts +10 -0
- package/src/MemoryQuery.test.ts +67 -0
- package/src/MemoryQuery.ts +114 -0
- package/src/MemoryService.ts +89 -0
- package/src/Ontology.test.ts +94 -0
- package/src/Ontology.ts +571 -0
- package/src/Pipeline.ts +97 -0
- package/src/Predicate.test.ts +47 -0
- package/src/Predicate.ts +89 -0
- package/src/Rdf.test.ts +104 -0
- package/src/Rdf.ts +158 -0
- package/src/RdfStore.ts +111 -0
- package/src/Sparql.test.ts +72 -0
- package/src/Sparql.ts +237 -0
- package/src/Subscription.ts +47 -0
- package/src/Trig.test.ts +199 -0
- package/src/Trig.ts +170 -0
- package/src/Vocab.ts +134 -0
- package/src/Vocabularies.ts +204 -0
- package/src/index.ts +22 -0
- package/README.md +0 -3
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as Rdf from './Rdf.ts';
|
|
2
|
+
export type WriteOptions = {
|
|
3
|
+
/** Namespaces to abbreviate IRIs with, by prefix; a later prefix for the same namespace replaces an earlier one. */
|
|
4
|
+
readonly prefixes?: Readonly<Record<string, string>>;
|
|
5
|
+
};
|
|
6
|
+
/** Serializes quads as TriG, in the order given; consecutive quads that share a graph and subject are grouped. */
|
|
7
|
+
export declare const write: (quads: Iterable<Rdf.Quad>, { prefixes }?: WriteOptions) => string;
|
|
8
|
+
//# sourceMappingURL=Trig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Trig.d.ts","sourceRoot":"","sources":["../../../src/Trig.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAyDhC,MAAM,MAAM,YAAY,GAAG;IACzB,oHAAoH;IACpH,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACtD,CAAC;AAEF,kHAAkH;AAClH,eAAO,MAAM,KAAK,UAAW,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,iBAAqB,YAAY,KAAQ,MAoGvF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Trig.test.d.ts","sourceRoot":"","sources":["../../../src/Trig.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import * as Fact from './Fact.ts';
|
|
2
|
+
/** Semantic-index vocabulary (provenance and factuality predicates). */
|
|
3
|
+
export declare const SX = "https://dxos.org/semantic#";
|
|
4
|
+
/** W3C PROV-O. */
|
|
5
|
+
export declare const PROV = "http://www.w3.org/ns/prov#";
|
|
6
|
+
/** Entity IRI prefix. */
|
|
7
|
+
export declare const ENTITY = "https://dxos.org/semantic/entity/";
|
|
8
|
+
/** Fact-node IRI prefix; a stored fact without an explicit graph is the graph of this IRI. */
|
|
9
|
+
export declare const FACT = "https://dxos.org/semantic/fact/";
|
|
10
|
+
/** Named-graph IRI prefix for graphs the extractor names. */
|
|
11
|
+
export declare const GRAPH = "https://dxos.org/semantic/graph/";
|
|
12
|
+
/** Ontology namespace: predicates and entity classes. */
|
|
13
|
+
export declare const DX = "https://dxos.org/ontology/";
|
|
14
|
+
export declare const RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
|
|
15
|
+
export declare const RDFS = "http://www.w3.org/2000/01/rdf-schema#";
|
|
16
|
+
export declare const OWL = "http://www.w3.org/2002/07/owl#";
|
|
17
|
+
export declare const XSD = "http://www.w3.org/2001/XMLSchema#";
|
|
18
|
+
export declare const SKOS = "http://www.w3.org/2004/02/skos/core#";
|
|
19
|
+
export declare const DCTERMS = "http://purl.org/dc/terms/";
|
|
20
|
+
export declare const SCHEMA = "https://schema.org/";
|
|
21
|
+
export declare const FOAF = "http://xmlns.com/foaf/0.1/";
|
|
22
|
+
export declare const ORG = "http://www.w3.org/ns/org#";
|
|
23
|
+
/** SIOC: online communities (posts, replies, channels, members). */
|
|
24
|
+
export declare const SIOC = "http://rdfs.org/sioc/ns#";
|
|
25
|
+
/** Brain namespaces: each brain mints the predicates its extractors invent under its own IRI. */
|
|
26
|
+
export declare const BRAIN = "https://dxos.org/semantic/brain/";
|
|
27
|
+
/** The graph holding the brain's predicate metadata (labels, descriptions, synonyms). */
|
|
28
|
+
export declare const ONTOLOGY_GRAPH = "https://dxos.org/semantic/graph/ontology";
|
|
29
|
+
export declare const RDF_TYPE = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type";
|
|
30
|
+
export declare const RDFS_LABEL = "http://www.w3.org/2000/01/rdf-schema#label";
|
|
31
|
+
export declare const RDFS_COMMENT = "http://www.w3.org/2000/01/rdf-schema#comment";
|
|
32
|
+
export declare const RDFS_DOMAIN = "http://www.w3.org/2000/01/rdf-schema#domain";
|
|
33
|
+
export declare const RDFS_RANGE = "http://www.w3.org/2000/01/rdf-schema#range";
|
|
34
|
+
export declare const RDFS_IS_DEFINED_BY = "http://www.w3.org/2000/01/rdf-schema#isDefinedBy";
|
|
35
|
+
export declare const RDF_PROPERTY = "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property";
|
|
36
|
+
export declare const OWL_SAME_AS = "http://www.w3.org/2002/07/owl#sameAs";
|
|
37
|
+
export declare const OWL_INVERSE_OF = "http://www.w3.org/2002/07/owl#inverseOf";
|
|
38
|
+
export declare const OWL_EQUIVALENT_PROPERTY = "http://www.w3.org/2002/07/owl#equivalentProperty";
|
|
39
|
+
export declare const OWL_DEPRECATED = "http://www.w3.org/2002/07/owl#deprecated";
|
|
40
|
+
export declare const SKOS_ALT_LABEL = "http://www.w3.org/2004/02/skos/core#altLabel";
|
|
41
|
+
export declare const SKOS_EXAMPLE = "http://www.w3.org/2004/02/skos/core#example";
|
|
42
|
+
export declare const DCTERMS_CREATED = "http://purl.org/dc/terms/created";
|
|
43
|
+
export declare const DCTERMS_CREATOR = "http://purl.org/dc/terms/creator";
|
|
44
|
+
export declare const DCTERMS_IS_REPLACED_BY = "http://purl.org/dc/terms/isReplacedBy";
|
|
45
|
+
/** The version of the seed vocabulary a store holds, stated about the ontology graph. */
|
|
46
|
+
export declare const SX_SEED = "https://dxos.org/semantic#seed";
|
|
47
|
+
/** The shorthand rules use for a predicate (`member_of`). */
|
|
48
|
+
export declare const SX_SHORTHAND = "https://dxos.org/semantic#shorthand";
|
|
49
|
+
/** The class of every stored graph, so an unconstrained query can enumerate them. */
|
|
50
|
+
export declare const SX_GRAPH = "https://dxos.org/semantic#Graph";
|
|
51
|
+
/** Named node in the `sx:` namespace. */
|
|
52
|
+
export declare const sx: (name: string) => import("@rdfjs/types").NamedNode<string>;
|
|
53
|
+
/** Named node in the `prov:` namespace. */
|
|
54
|
+
export declare const prov: (name: string) => import("@rdfjs/types").NamedNode<string>;
|
|
55
|
+
/** IRI for an entity id. */
|
|
56
|
+
export declare const entityIri: (id: string) => import("@rdfjs/types").NamedNode<string>;
|
|
57
|
+
/** IRI for a fact id. */
|
|
58
|
+
export declare const factIri: (id: string) => import("@rdfjs/types").NamedNode<string>;
|
|
59
|
+
/** IRI for a named graph. */
|
|
60
|
+
export declare const graphIri: (name: string) => import("@rdfjs/types").NamedNode<string>;
|
|
61
|
+
/** Named node in the `dx:` namespace. */
|
|
62
|
+
export declare const dx: (name: string) => import("@rdfjs/types").NamedNode<string>;
|
|
63
|
+
/** The namespace a brain mints its predicates under. */
|
|
64
|
+
export declare const brainNamespace: (id: string) => string;
|
|
65
|
+
/** The brain namespace an IRI was minted in, if it was minted in one. */
|
|
66
|
+
export declare const brainNamespaceOf: (iri: string) => string | undefined;
|
|
67
|
+
/** The namespace of a brain that has no id of its own (a preview, a test). */
|
|
68
|
+
export declare const LOCAL_BRAIN: string;
|
|
69
|
+
/**
|
|
70
|
+
* IRI of an entity the extractor named but could not resolve: local to the graph that mentions it, since a label
|
|
71
|
+
* alone does not say that two graphs mean the same thing.
|
|
72
|
+
*/
|
|
73
|
+
export declare const localEntityIri: (graph: string, id: string) => import("@rdfjs/types").NamedNode<`${string}#${string}`>;
|
|
74
|
+
/** The slug of a graph-local entity IRI (see {@link localEntityIri}), if it is one of `graph`'s. */
|
|
75
|
+
export declare const localEntityId: (graph: string, iri: string) => string | undefined;
|
|
76
|
+
/** The suffix every graph-local IRI of an entity slug ends with, whichever graph it is local to. */
|
|
77
|
+
export declare const localEntitySuffix: (id: string) => string;
|
|
78
|
+
/** True for an absolute IRI (`did:key:…`, `echo://…`, `mailto:…`); entity slugs never contain `:`. */
|
|
79
|
+
export declare const isIri: (value: string) => boolean;
|
|
80
|
+
/** The node for an entity key: an absolute IRI as itself, a slug local to `graph` (under {@link ENTITY} when none). */
|
|
81
|
+
export declare const entityNode: (key: string, graph?: string) => import("@rdfjs/types").NamedNode<string>;
|
|
82
|
+
/** Inverse of {@link entityNode}: the slug for an IRI local to `graph` or under {@link ENTITY}, any other IRI unchanged. */
|
|
83
|
+
export declare const entityKey: (iri: string, graph?: string) => Fact.EntityKey;
|
|
84
|
+
/** Plain string literal. */
|
|
85
|
+
export declare const str: (value: string) => import("@rdfjs/types").Literal;
|
|
86
|
+
/** Inverse of {@link entityIri}; throws on a non-entity IRI. */
|
|
87
|
+
export declare const entityIdFromIri: (iri: string) => string;
|
|
88
|
+
/** Inverse of {@link factIri}; throws on a non-fact IRI. */
|
|
89
|
+
export declare const factIdFromIri: (iri: string) => string;
|
|
90
|
+
//# sourceMappingURL=Vocab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Vocab.d.ts","sourceRoot":"","sources":["../../../src/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B,CAAC;AAE5F,oGAAoG;AACpG,eAAO,MAAM,iBAAiB,OAAQ,MAAM,KAAG,MAAsC,CAAC;AAEtF,sGAAsG;AACtG,eAAO,MAAM,KAAK,UAAW,MAAM,KAAG,OAA6C,CAAC;AAEpF,uHAAuH;AACvH,eAAO,MAAM,UAAU,QAAS,MAAM,UAAU,MAAM,6CAC2C,CAAC;AAElG,4HAA4H;AAC5H,eAAO,MAAM,SAAS,QAAS,MAAM,UAAU,MAAM,KAAG,IAAI,CAAC,SAI1D,CAAC;AAEJ,4BAA4B;AAC5B,eAAO,MAAM,GAAG,UAAW,MAAM,mCAAmB,CAAC;AACrD,gEAAgE;AAChE,eAAO,MAAM,eAAe,QAAS,MAAM,WAK1C,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,aAAa,QAAS,MAAM,WAKxC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as Ontology from './Ontology.ts';
|
|
2
|
+
/**
|
|
3
|
+
* A published vocabulary's predicates, under that vocabulary's own IRIs, as a pack an ontology can be seeded with. The
|
|
4
|
+
* packs cover what conversations mostly state (people, organizations, work, discussion threads); each lists a curated
|
|
5
|
+
* subset, since every predicate shown to the extractor costs prompt tokens.
|
|
6
|
+
*/
|
|
7
|
+
export type Pack = {
|
|
8
|
+
/** Short id a configuration names the pack by (`schema`, `foaf`). */
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly label: string;
|
|
11
|
+
/** The vocabulary's namespace IRI; `rdfs:isDefinedBy` of every entry. */
|
|
12
|
+
readonly namespace: string;
|
|
13
|
+
readonly entries: ReadonlyArray<Ontology.Entry>;
|
|
14
|
+
};
|
|
15
|
+
/** schema.org beyond the seed: authorship, employment, organizational structure, events and software. */
|
|
16
|
+
export declare const SCHEMA: Pack;
|
|
17
|
+
/** FOAF: people, their interests, projects and what they made. */
|
|
18
|
+
export declare const FOAF: Pack;
|
|
19
|
+
/** Dublin Core terms: documents, their subjects, versions and references. */
|
|
20
|
+
export declare const DCTERMS: Pack;
|
|
21
|
+
/** W3C Organization Ontology: reporting lines, posts and units. */
|
|
22
|
+
export declare const ORG: Pack;
|
|
23
|
+
/** SIOC: online-community structure, so chat threads read as posts, replies and channels. */
|
|
24
|
+
export declare const SIOC: Pack;
|
|
25
|
+
/** Every pack, in the order {@link compose} prefers them when two claim one surface form. */
|
|
26
|
+
export declare const ALL: ReadonlyArray<Pack>;
|
|
27
|
+
/** The pack a configuration names, if any. */
|
|
28
|
+
export declare const get: (id: string) => Pack | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* An ontology seeded with these packs on top of `base` (the default seed). A pack predicate the ontology already
|
|
31
|
+
* defines, or whose surface form an earlier one claims, is left out, so packs compose in any combination.
|
|
32
|
+
*/
|
|
33
|
+
export declare const compose: (packs: ReadonlyArray<Pack>, base?: Ontology.Ontology) => Ontology.Ontology;
|
|
34
|
+
/**
|
|
35
|
+
* The ontology extraction uses when the caller names none: the seed plus every pack, so facts land on
|
|
36
|
+
* published predicates (schema.org, FOAF, …) rather than freshly minted ones.
|
|
37
|
+
*/
|
|
38
|
+
export declare const DEFAULT: Ontology.Ontology;
|
|
39
|
+
/**
|
|
40
|
+
* The packs a comma-separated list of ids names (`schema,foaf,sioc`; `all` for every pack; `none` for
|
|
41
|
+
* the bare seed).
|
|
42
|
+
* @throws Error naming an unknown id.
|
|
43
|
+
*/
|
|
44
|
+
export declare const parse: (ids: string) => Pack[];
|
|
45
|
+
//# sourceMappingURL=Vocabularies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Vocabularies.d.ts","sourceRoot":"","sources":["../../../src/Vocabularies.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAG1C;;;;GAIG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,yEAAyE;IACzE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;CACjD,CAAC;AAuBF,yGAAyG;AACzG,eAAO,MAAM,MAAM,EAAE,IAgDnB,CAAC;AAEH,kEAAkE;AAClE,eAAO,MAAM,IAAI,EAAE,IAkBjB,CAAC;AAEH,6EAA6E;AAC7E,eAAO,MAAM,OAAO,EAAE,IAYpB,CAAC;AAEH,mEAAmE;AACnE,eAAO,MAAM,GAAG,EAAE,IAWhB,CAAC;AAEH,6FAA6F;AAC7F,eAAO,MAAM,IAAI,EAAE,IAajB,CAAC;AAEH,6FAA6F;AAC7F,eAAO,MAAM,GAAG,EAAE,aAAa,CAAC,IAAI,CAAsC,CAAC;AAE3E,8CAA8C;AAC9C,eAAO,MAAM,GAAG,OAAQ,MAAM,KAAG,IAAI,GAAG,SAAyD,CAAC;AAElG;;;GAGG;AACH,eAAO,MAAM,OAAO,UAAW,aAAa,CAAC,IAAI,CAAC,SAAQ,QAAQ,CAAC,QAAQ,KAAsB,QAAQ,CAAC,QACnD,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,QAAuB,CAAC;AAEvD;;;;GAIG;AACH,eAAO,MAAM,KAAK,QAAS,MAAM,KAAG,IAAI,EAkBvC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * as Fact from './Fact.ts';
|
|
2
|
+
export * as FactFeed from './FactFeed.ts';
|
|
3
|
+
export * as Graph from './Graph.ts';
|
|
4
|
+
export * as Hash from './Hash.ts';
|
|
5
|
+
export * as Mapping from './Mapping.ts';
|
|
6
|
+
export * as MemoryError from './MemoryError.ts';
|
|
7
|
+
export * as MemoryQuery from './MemoryQuery.ts';
|
|
8
|
+
export * as MemoryService from './MemoryService.ts';
|
|
9
|
+
export * as Ontology from './Ontology.ts';
|
|
10
|
+
export * as Pipeline from './Pipeline.ts';
|
|
11
|
+
export * as Predicate from './Predicate.ts';
|
|
12
|
+
export * as Rdf from './Rdf.ts';
|
|
13
|
+
export * as RdfStore from './RdfStore.ts';
|
|
14
|
+
export * as Sparql from './Sparql.ts';
|
|
15
|
+
export * as Subscription from './Subscription.ts';
|
|
16
|
+
export * as Trig from './Trig.ts';
|
|
17
|
+
export * as Vocab from './Vocab.ts';
|
|
18
|
+
export * as Vocabularies from './Vocabularies.ts';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC"}
|