rdflib 2.2.22-4e175603 → 2.2.22-53d65d90
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/rdflib.min.js +1 -1
- package/dist/rdflib.min.js.LICENSE.txt +4 -0
- package/dist/rdflib.min.js.map +1 -1
- package/esm/blank-node.js +90 -61
- package/esm/class-order.js +1 -1
- package/esm/collection.js +106 -70
- package/esm/default-graph.js +33 -13
- package/esm/empty.js +26 -8
- package/esm/factories/canonical-data-factory.js +30 -33
- package/esm/factories/extended-term-factory.js +14 -18
- package/esm/factories/factory-types.js +1 -1
- package/esm/factories/rdflib-data-factory.js +11 -9
- package/esm/fetcher.js +1644 -1355
- package/esm/formula.js +740 -632
- package/esm/index.js +51 -31
- package/esm/jsonldparser.js +26 -19
- package/esm/jsonparser.js +1 -1
- package/esm/lists.js +86 -38
- package/esm/literal.js +157 -120
- package/esm/log.js +7 -7
- package/esm/n3parser.js +1085 -1008
- package/esm/named-node.js +99 -69
- package/esm/namespace.js +4 -2
- package/esm/node-internal.js +98 -74
- package/esm/node.js +1 -1
- package/esm/parse.js +3 -3
- package/esm/patch-parser.js +1 -1
- package/esm/query.js +16 -15
- package/esm/rdfaparser.js +846 -781
- package/esm/rdfxmlparser.js +365 -348
- package/esm/serialize.js +4 -20
- package/esm/serializer.js +886 -821
- package/esm/statement.js +72 -52
- package/esm/store.js +924 -822
- package/esm/types.js +21 -21
- package/esm/update-manager.js +983 -882
- package/esm/updates-via.js +134 -104
- package/esm/uri.js +3 -3
- package/esm/utils/default-graph-uri.js +2 -2
- package/esm/utils/terms.js +5 -4
- package/esm/utils-js.js +5 -5
- package/esm/utils.js +6 -6
- package/esm/variable.js +58 -32
- package/esm/xsd.js +2 -2
- package/lib/blank-node.js +88 -60
- package/lib/class-order.js +1 -1
- package/lib/collection.js +104 -69
- package/lib/default-graph.js +32 -13
- package/lib/empty.js +25 -8
- package/lib/factories/canonical-data-factory.js +32 -35
- package/lib/factories/extended-term-factory.js +14 -18
- package/lib/factories/factory-types.js +1 -1
- package/lib/factories/rdflib-data-factory.js +11 -9
- package/lib/fetcher.js +1646 -1385
- package/lib/formula.d.ts +1 -1
- package/lib/formula.js +739 -632
- package/lib/index.js +87 -66
- package/lib/jsonldparser.js +26 -19
- package/lib/jsonparser.js +1 -1
- package/lib/lists.js +86 -54
- package/lib/literal.js +156 -120
- package/lib/log.js +7 -7
- package/lib/n3parser.js +1089 -1010
- package/lib/named-node.js +98 -69
- package/lib/namespace.js +4 -2
- package/lib/node-internal.js +96 -73
- package/lib/node.js +1 -1
- package/lib/parse.js +6 -5
- package/lib/patch-parser.js +1 -1
- package/lib/query.js +18 -19
- package/lib/rdfaparser.js +848 -783
- package/lib/rdfxmlparser.js +366 -350
- package/lib/serialize.d.ts +1 -1
- package/lib/serialize.js +4 -21
- package/lib/serializer.d.ts +1 -0
- package/lib/serializer.js +890 -825
- package/lib/statement.js +74 -54
- package/lib/store.d.ts +1 -1
- package/lib/store.js +926 -844
- package/lib/types.js +21 -21
- package/lib/update-manager.d.ts +1 -1
- package/lib/update-manager.js +959 -865
- package/lib/updates-via.js +134 -105
- package/lib/uri.js +3 -3
- package/lib/utils/default-graph-uri.js +2 -2
- package/lib/utils/terms.js +6 -4
- package/lib/utils-js.js +9 -8
- package/lib/utils.js +6 -6
- package/lib/variable.js +60 -34
- package/lib/xsd.js +2 -2
- package/package.json +6 -6
- package/src/jsonldparser.js +1 -1
- package/src/serialize.ts +4 -14
- package/src/serializer.js +24 -0
- package/src/update-manager.ts +8 -2
package/lib/types.js
CHANGED
|
@@ -4,48 +4,48 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.XHTMLContentType = exports.VariableTermType = exports.TurtleLegacyContentType = exports.TurtleContentType = exports.SPARQLUpdateSingleMatchContentType = exports.SPARQLUpdateContentType = exports.RDFXMLContentType = exports.NamedNodeTermType = exports.NTriplesContentType = exports.NQuadsContentType = exports.NQuadsAltContentType = exports.N3LegacyContentType = exports.N3ContentType = exports.LiteralTermType = exports.JSONLDContentType = exports.HTMLContentType = exports.GraphTermType = exports.EmptyTermType = exports.DefaultGraphTermType = exports.CollectionTermType = exports.BlankNodeTermType = void 0;
|
|
7
|
-
|
|
7
|
+
var NamedNodeTermType = "NamedNode";
|
|
8
8
|
exports.NamedNodeTermType = NamedNodeTermType;
|
|
9
|
-
|
|
9
|
+
var BlankNodeTermType = "BlankNode";
|
|
10
10
|
exports.BlankNodeTermType = BlankNodeTermType;
|
|
11
|
-
|
|
11
|
+
var LiteralTermType = "Literal";
|
|
12
12
|
exports.LiteralTermType = LiteralTermType;
|
|
13
|
-
|
|
13
|
+
var VariableTermType = "Variable";
|
|
14
14
|
exports.VariableTermType = VariableTermType;
|
|
15
|
-
|
|
15
|
+
var DefaultGraphTermType = "DefaultGraph";
|
|
16
16
|
// Non-RDF/JS types:
|
|
17
17
|
exports.DefaultGraphTermType = DefaultGraphTermType;
|
|
18
|
-
|
|
18
|
+
var CollectionTermType = "Collection";
|
|
19
19
|
exports.CollectionTermType = CollectionTermType;
|
|
20
|
-
|
|
20
|
+
var EmptyTermType = "Empty";
|
|
21
21
|
exports.EmptyTermType = EmptyTermType;
|
|
22
|
-
|
|
22
|
+
var GraphTermType = "Graph";
|
|
23
23
|
exports.GraphTermType = GraphTermType;
|
|
24
|
-
|
|
24
|
+
var HTMLContentType = "text/html";
|
|
25
25
|
exports.HTMLContentType = HTMLContentType;
|
|
26
|
-
|
|
26
|
+
var JSONLDContentType = "application/ld+json";
|
|
27
27
|
exports.JSONLDContentType = JSONLDContentType;
|
|
28
|
-
|
|
28
|
+
var N3ContentType = "text/n3";
|
|
29
29
|
exports.N3ContentType = N3ContentType;
|
|
30
|
-
|
|
30
|
+
var N3LegacyContentType = "application/n3";
|
|
31
31
|
exports.N3LegacyContentType = N3LegacyContentType;
|
|
32
|
-
|
|
32
|
+
var NQuadsAltContentType = "application/nquads";
|
|
33
33
|
exports.NQuadsAltContentType = NQuadsAltContentType;
|
|
34
|
-
|
|
34
|
+
var NQuadsContentType = "application/n-quads";
|
|
35
35
|
exports.NQuadsContentType = NQuadsContentType;
|
|
36
|
-
|
|
36
|
+
var NTriplesContentType = "application/n-triples";
|
|
37
37
|
exports.NTriplesContentType = NTriplesContentType;
|
|
38
|
-
|
|
38
|
+
var RDFXMLContentType = "application/rdf+xml";
|
|
39
39
|
exports.RDFXMLContentType = RDFXMLContentType;
|
|
40
|
-
|
|
40
|
+
var SPARQLUpdateContentType = "application/sparql-update";
|
|
41
41
|
exports.SPARQLUpdateContentType = SPARQLUpdateContentType;
|
|
42
|
-
|
|
42
|
+
var SPARQLUpdateSingleMatchContentType = "application/sparql-update-single-match";
|
|
43
43
|
exports.SPARQLUpdateSingleMatchContentType = SPARQLUpdateSingleMatchContentType;
|
|
44
|
-
|
|
44
|
+
var TurtleContentType = "text/turtle";
|
|
45
45
|
exports.TurtleContentType = TurtleContentType;
|
|
46
|
-
|
|
46
|
+
var TurtleLegacyContentType = "application/x-turtle";
|
|
47
47
|
exports.TurtleLegacyContentType = TurtleLegacyContentType;
|
|
48
|
-
|
|
48
|
+
var XHTMLContentType = "application/xhtml+xml";
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
* A valid mime type header
|
package/lib/update-manager.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export default class UpdateManager {
|
|
|
51
51
|
* Returns a list of all bnodes occurring in a list of statements
|
|
52
52
|
* @private
|
|
53
53
|
*/
|
|
54
|
-
statementArrayBnodes(sts: Quad
|
|
54
|
+
statementArrayBnodes(sts: ReadonlyArray<Quad>): BlankNode[];
|
|
55
55
|
/**
|
|
56
56
|
* Makes a cached list of [Inverse-]Functional properties
|
|
57
57
|
* @private
|