rdflib 2.2.22-2f49e8ef → 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.
Files changed (101) hide show
  1. package/dist/rdflib.min.js +1 -1
  2. package/dist/rdflib.min.js.LICENSE.txt +4 -0
  3. package/dist/rdflib.min.js.map +1 -1
  4. package/esm/blank-node.js +90 -61
  5. package/esm/class-order.js +1 -1
  6. package/esm/collection.js +106 -70
  7. package/esm/default-graph.js +33 -13
  8. package/esm/empty.js +26 -8
  9. package/esm/factories/canonical-data-factory.js +30 -33
  10. package/esm/factories/extended-term-factory.js +14 -18
  11. package/esm/factories/factory-types.js +1 -1
  12. package/esm/factories/rdflib-data-factory.js +11 -9
  13. package/esm/fetcher.js +1644 -1355
  14. package/esm/formula.js +740 -632
  15. package/esm/index.js +52 -33
  16. package/esm/jsonldparser.js +35 -19
  17. package/esm/jsonparser.js +1 -1
  18. package/esm/lists.js +86 -38
  19. package/esm/literal.js +157 -120
  20. package/esm/log.js +7 -7
  21. package/esm/n3parser.js +1085 -1008
  22. package/esm/named-node.js +99 -69
  23. package/esm/namespace.js +4 -2
  24. package/esm/node-internal.js +98 -74
  25. package/esm/node.js +1 -1
  26. package/esm/parse.js +3 -3
  27. package/esm/patch-parser.js +1 -1
  28. package/esm/query.js +16 -15
  29. package/esm/rdfaparser.js +846 -781
  30. package/esm/rdfxmlparser.js +365 -348
  31. package/esm/serialize.js +4 -11
  32. package/esm/serializer.js +886 -821
  33. package/esm/statement.js +72 -52
  34. package/esm/store.js +924 -822
  35. package/esm/types.js +21 -21
  36. package/esm/update-manager.js +983 -882
  37. package/esm/updates-via.js +134 -104
  38. package/esm/uri.js +3 -3
  39. package/esm/utils/default-graph-uri.js +2 -2
  40. package/esm/utils/terms.js +5 -4
  41. package/esm/utils-js.js +5 -5
  42. package/esm/utils.js +6 -6
  43. package/esm/variable.js +58 -32
  44. package/esm/xsd.js +2 -2
  45. package/lib/blank-node.js +88 -60
  46. package/lib/class-order.js +1 -1
  47. package/lib/collection.js +104 -69
  48. package/lib/default-graph.js +32 -13
  49. package/lib/empty.js +25 -8
  50. package/lib/factories/canonical-data-factory.js +32 -35
  51. package/lib/factories/extended-term-factory.js +14 -18
  52. package/lib/factories/factory-types.js +1 -1
  53. package/lib/factories/rdflib-data-factory.js +11 -9
  54. package/lib/fetcher.js +1646 -1385
  55. package/lib/formula.d.ts +1 -1
  56. package/lib/formula.js +739 -632
  57. package/lib/index.d.ts +1 -2
  58. package/lib/index.js +88 -70
  59. package/lib/jsonldparser.js +35 -19
  60. package/lib/jsonparser.js +1 -1
  61. package/lib/lists.js +86 -54
  62. package/lib/literal.js +156 -120
  63. package/lib/log.js +7 -7
  64. package/lib/n3parser.js +1089 -1010
  65. package/lib/named-node.js +98 -69
  66. package/lib/namespace.js +4 -2
  67. package/lib/node-internal.js +96 -73
  68. package/lib/node.js +1 -1
  69. package/lib/parse.js +6 -5
  70. package/lib/patch-parser.js +1 -1
  71. package/lib/query.js +18 -19
  72. package/lib/rdfaparser.js +848 -783
  73. package/lib/rdfxmlparser.js +366 -350
  74. package/lib/serialize.d.ts +1 -1
  75. package/lib/serialize.js +4 -13
  76. package/lib/serializer.d.ts +1 -0
  77. package/lib/serializer.js +890 -825
  78. package/lib/statement.js +74 -54
  79. package/lib/store.d.ts +1 -1
  80. package/lib/store.js +926 -844
  81. package/lib/types.js +21 -21
  82. package/lib/update-manager.d.ts +1 -1
  83. package/lib/update-manager.js +959 -865
  84. package/lib/updates-via.js +134 -105
  85. package/lib/uri.js +3 -3
  86. package/lib/utils/default-graph-uri.js +2 -2
  87. package/lib/utils/terms.js +6 -4
  88. package/lib/utils-js.js +9 -8
  89. package/lib/utils.js +6 -6
  90. package/lib/variable.js +60 -34
  91. package/lib/xsd.js +2 -2
  92. package/package.json +9 -8
  93. package/src/index.ts +0 -2
  94. package/src/jsonldparser.js +13 -4
  95. package/src/serialize.ts +4 -11
  96. package/src/serializer.js +24 -0
  97. package/src/update-manager.ts +8 -2
  98. package/esm/convert.js +0 -60
  99. package/lib/convert.d.ts +0 -2
  100. package/lib/convert.js +0 -71
  101. package/src/convert.js +0 -70
package/esm/types.js CHANGED
@@ -1,25 +1,25 @@
1
- export const NamedNodeTermType = "NamedNode";
2
- export const BlankNodeTermType = "BlankNode";
3
- export const LiteralTermType = "Literal";
4
- export const VariableTermType = "Variable";
5
- export const DefaultGraphTermType = "DefaultGraph";
1
+ export var NamedNodeTermType = "NamedNode";
2
+ export var BlankNodeTermType = "BlankNode";
3
+ export var LiteralTermType = "Literal";
4
+ export var VariableTermType = "Variable";
5
+ export var DefaultGraphTermType = "DefaultGraph";
6
6
  // Non-RDF/JS types:
7
- export const CollectionTermType = "Collection";
8
- export const EmptyTermType = "Empty";
9
- export const GraphTermType = "Graph";
10
- export const HTMLContentType = "text/html";
11
- export const JSONLDContentType = "application/ld+json";
12
- export const N3ContentType = "text/n3";
13
- export const N3LegacyContentType = "application/n3";
14
- export const NQuadsAltContentType = "application/nquads";
15
- export const NQuadsContentType = "application/n-quads";
16
- export const NTriplesContentType = "application/n-triples";
17
- export const RDFXMLContentType = "application/rdf+xml";
18
- export const SPARQLUpdateContentType = "application/sparql-update";
19
- export const SPARQLUpdateSingleMatchContentType = "application/sparql-update-single-match";
20
- export const TurtleContentType = "text/turtle";
21
- export const TurtleLegacyContentType = "application/x-turtle";
22
- export const XHTMLContentType = "application/xhtml+xml";
7
+ export var CollectionTermType = "Collection";
8
+ export var EmptyTermType = "Empty";
9
+ export var GraphTermType = "Graph";
10
+ export var HTMLContentType = "text/html";
11
+ export var JSONLDContentType = "application/ld+json";
12
+ export var N3ContentType = "text/n3";
13
+ export var N3LegacyContentType = "application/n3";
14
+ export var NQuadsAltContentType = "application/nquads";
15
+ export var NQuadsContentType = "application/n-quads";
16
+ export var NTriplesContentType = "application/n-triples";
17
+ export var RDFXMLContentType = "application/rdf+xml";
18
+ export var SPARQLUpdateContentType = "application/sparql-update";
19
+ export var SPARQLUpdateSingleMatchContentType = "application/sparql-update-single-match";
20
+ export var TurtleContentType = "text/turtle";
21
+ export var TurtleLegacyContentType = "application/x-turtle";
22
+ export var XHTMLContentType = "application/xhtml+xml";
23
23
 
24
24
  /**
25
25
  * A valid mime type header