rdflib 2.2.34 → 2.2.35-2bb9ed0b
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/515.rdflib.min.js +3 -0
- package/dist/515.rdflib.min.js.map +1 -0
- package/dist/789.rdflib.min.js +1 -0
- package/dist/rdflib.min.js +1 -1
- package/dist/rdflib.min.js.LICENSE.txt +0 -2
- package/dist/rdflib.min.js.map +1 -1
- package/esm/blank-node.js +57 -85
- package/esm/class-order.js +1 -1
- package/esm/collection.js +70 -106
- package/esm/default-graph.js +13 -33
- package/esm/empty.js +8 -26
- package/esm/factories/canonical-data-factory.js +33 -30
- package/esm/factories/extended-term-factory.js +18 -14
- package/esm/factories/factory-types.js +1 -1
- package/esm/factories/rdflib-data-factory.js +9 -11
- package/esm/fetcher.js +1364 -1668
- package/esm/formula.js +631 -739
- package/esm/index.js +31 -51
- package/esm/jsonldparser.js +19 -26
- package/esm/jsonparser.js +1 -1
- package/esm/lists.js +41 -86
- package/esm/literal.js +120 -157
- package/esm/log.js +7 -7
- package/esm/n3parser.js +1008 -1090
- package/esm/named-node.js +69 -99
- package/esm/namespace.js +2 -4
- package/esm/node-internal.js +73 -97
- package/esm/node.js +1 -2
- package/esm/parse.js +3 -3
- package/esm/patch-parser.js +1 -2
- package/esm/query.js +15 -30
- package/esm/rdfaparser.js +775 -846
- package/esm/rdfxmlparser.js +348 -365
- package/esm/serialize.js +2 -3
- package/esm/serializer.js +834 -889
- package/esm/sparql-to-query.js +0 -2
- package/esm/statement.js +52 -72
- package/esm/store.js +852 -963
- package/esm/types.js +26 -21
- package/esm/update-manager.js +963 -1104
- package/esm/updates-via.js +104 -134
- package/esm/uri.js +3 -3
- package/esm/utils/default-graph-uri.js +2 -2
- package/esm/utils/terms.js +4 -5
- package/esm/utils-js.js +5 -6
- package/esm/utils.js +7 -6
- package/esm/variable.js +32 -58
- package/esm/xsd.js +2 -2
- package/lib/blank-node.js +56 -83
- package/lib/class-order.js +2 -3
- package/lib/collection.js +69 -104
- package/lib/default-graph.js +13 -32
- package/lib/empty.js +8 -25
- package/lib/factories/canonical-data-factory.js +36 -34
- package/lib/factories/extended-term-factory.js +19 -16
- package/lib/factories/factory-types.js +2 -3
- package/lib/factories/rdflib-data-factory.js +10 -13
- package/lib/fetcher.js +1394 -1693
- package/lib/formula.js +631 -738
- package/lib/index.js +66 -89
- package/lib/jsonldparser.js +21 -32
- package/lib/jsonparser.js +3 -4
- package/lib/lists.js +47 -87
- package/lib/literal.js +120 -156
- package/lib/log.js +8 -9
- package/lib/n3parser.js +1011 -1096
- package/lib/named-node.js +69 -98
- package/lib/namespace.js +2 -4
- package/lib/node-internal.js +72 -95
- package/lib/node.js +2 -4
- package/lib/parse.js +5 -6
- package/lib/patch-parser.js +1 -2
- package/lib/query.js +19 -32
- package/lib/rdfaparser.js +777 -849
- package/lib/rdfxmlparser.js +350 -366
- package/lib/serialize.js +2 -3
- package/lib/serializer.js +838 -892
- package/lib/sparql-to-query.js +0 -2
- package/lib/statement.js +54 -74
- package/lib/store.js +873 -978
- package/lib/types.js +22 -43
- package/lib/update-manager.js +972 -1111
- package/lib/updates-via.js +105 -134
- package/lib/uri.js +3 -3
- package/lib/utils/default-graph-uri.js +2 -4
- package/lib/utils/terms.js +4 -6
- package/lib/utils-js.js +11 -13
- package/lib/utils.js +6 -7
- package/lib/variable.js +34 -60
- package/lib/xsd-internal.js +2 -3
- package/lib/xsd.js +3 -4
- package/package.json +31 -31
- package/src/n3parser.js +1 -1
- package/src/rdfxmlparser.js +2 -1
- package/src/serializer.js +1 -1
- package/.babelrc +0 -20
- package/dist/670.rdflib.min.js +0 -1
- package/dist/730.rdflib.min.js +0 -3
- package/dist/730.rdflib.min.js.map +0 -1
- /package/dist/{730.rdflib.min.js.LICENSE.txt → 515.rdflib.min.js.LICENSE.txt} +0 -0
package/lib/types.js
CHANGED
|
@@ -4,48 +4,28 @@ 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
|
-
|
|
8
|
-
exports.
|
|
9
|
-
|
|
10
|
-
exports.
|
|
11
|
-
|
|
12
|
-
exports.LiteralTermType = LiteralTermType;
|
|
13
|
-
var VariableTermType = "Variable";
|
|
14
|
-
exports.VariableTermType = VariableTermType;
|
|
15
|
-
var DefaultGraphTermType = "DefaultGraph";
|
|
7
|
+
const NamedNodeTermType = exports.NamedNodeTermType = "NamedNode";
|
|
8
|
+
const BlankNodeTermType = exports.BlankNodeTermType = "BlankNode";
|
|
9
|
+
const LiteralTermType = exports.LiteralTermType = "Literal";
|
|
10
|
+
const VariableTermType = exports.VariableTermType = "Variable";
|
|
11
|
+
const DefaultGraphTermType = exports.DefaultGraphTermType = "DefaultGraph";
|
|
16
12
|
// Non-RDF/JS types:
|
|
17
|
-
exports.
|
|
18
|
-
|
|
19
|
-
exports.
|
|
20
|
-
|
|
21
|
-
exports.
|
|
22
|
-
|
|
23
|
-
exports.
|
|
24
|
-
|
|
25
|
-
exports.
|
|
26
|
-
|
|
27
|
-
exports.
|
|
28
|
-
|
|
29
|
-
exports.
|
|
30
|
-
|
|
31
|
-
exports.
|
|
32
|
-
|
|
33
|
-
exports.NQuadsAltContentType = NQuadsAltContentType;
|
|
34
|
-
var NQuadsContentType = "application/n-quads";
|
|
35
|
-
exports.NQuadsContentType = NQuadsContentType;
|
|
36
|
-
var NTriplesContentType = "application/n-triples";
|
|
37
|
-
exports.NTriplesContentType = NTriplesContentType;
|
|
38
|
-
var RDFXMLContentType = "application/rdf+xml";
|
|
39
|
-
exports.RDFXMLContentType = RDFXMLContentType;
|
|
40
|
-
var SPARQLUpdateContentType = "application/sparql-update";
|
|
41
|
-
exports.SPARQLUpdateContentType = SPARQLUpdateContentType;
|
|
42
|
-
var SPARQLUpdateSingleMatchContentType = "application/sparql-update-single-match";
|
|
43
|
-
exports.SPARQLUpdateSingleMatchContentType = SPARQLUpdateSingleMatchContentType;
|
|
44
|
-
var TurtleContentType = "text/turtle";
|
|
45
|
-
exports.TurtleContentType = TurtleContentType;
|
|
46
|
-
var TurtleLegacyContentType = "application/x-turtle";
|
|
47
|
-
exports.TurtleLegacyContentType = TurtleLegacyContentType;
|
|
48
|
-
var XHTMLContentType = "application/xhtml+xml";
|
|
13
|
+
const CollectionTermType = exports.CollectionTermType = "Collection";
|
|
14
|
+
const EmptyTermType = exports.EmptyTermType = "Empty";
|
|
15
|
+
const GraphTermType = exports.GraphTermType = "Graph";
|
|
16
|
+
const HTMLContentType = exports.HTMLContentType = "text/html";
|
|
17
|
+
const JSONLDContentType = exports.JSONLDContentType = "application/ld+json";
|
|
18
|
+
const N3ContentType = exports.N3ContentType = "text/n3";
|
|
19
|
+
const N3LegacyContentType = exports.N3LegacyContentType = "application/n3";
|
|
20
|
+
const NQuadsAltContentType = exports.NQuadsAltContentType = "application/nquads";
|
|
21
|
+
const NQuadsContentType = exports.NQuadsContentType = "application/n-quads";
|
|
22
|
+
const NTriplesContentType = exports.NTriplesContentType = "application/n-triples";
|
|
23
|
+
const RDFXMLContentType = exports.RDFXMLContentType = "application/rdf+xml";
|
|
24
|
+
const SPARQLUpdateContentType = exports.SPARQLUpdateContentType = "application/sparql-update";
|
|
25
|
+
const SPARQLUpdateSingleMatchContentType = exports.SPARQLUpdateSingleMatchContentType = "application/sparql-update-single-match";
|
|
26
|
+
const TurtleContentType = exports.TurtleContentType = "text/turtle";
|
|
27
|
+
const TurtleLegacyContentType = exports.TurtleLegacyContentType = "application/x-turtle";
|
|
28
|
+
const XHTMLContentType = exports.XHTMLContentType = "application/xhtml+xml";
|
|
49
29
|
|
|
50
30
|
/**
|
|
51
31
|
* A valid mime type header
|
|
@@ -71,5 +51,4 @@ var XHTMLContentType = "application/xhtml+xml";
|
|
|
71
51
|
/** An RDF/JS Graph */
|
|
72
52
|
// | Formula
|
|
73
53
|
|
|
74
|
-
/** All the types that a .fromValue() method might return */
|
|
75
|
-
exports.XHTMLContentType = XHTMLContentType;
|
|
54
|
+
/** All the types that a .fromValue() method might return */
|