rdf-object
Advanced tools
Comparing version 1.2.0 to 1.3.0
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
<a name="v1.3.0"></a> | ||
## [v1.3.0](https://github.com/rubensworks/rdf-object.js/compare/v1.2.0...v1.3.0) - 2020-09-16 | ||
### Changed | ||
* [Migrate to rdf-data-factory and @types/rdf-js 4.x](https://github.com/rubensworks/rdf-object.js/commit/b65bac5a99d2b4a4149dde1c199a3b44242f15c6) | ||
<a name="v1.2.0"></a> | ||
@@ -5,0 +11,0 @@ ## [v1.2.0](https://github.com/rubensworks/rdf-object.js/compare/v1.1.0...v1.2.0) - 2020-04-07 |
23
index.js
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./lib/RdfListMaterializer")); | ||
__export(require("./lib/RdfObjectLoader")); | ||
__export(require("./lib/Resource")); | ||
__export(require("./lib/ShortcutPropertyHandler")); | ||
__export(require("./lib/SingularPropertyHandler")); | ||
__exportStar(require("./lib/RdfListMaterializer"), exports); | ||
__exportStar(require("./lib/RdfObjectLoader"), exports); | ||
__exportStar(require("./lib/Resource"), exports); | ||
__exportStar(require("./lib/ShortcutPropertyHandler"), exports); | ||
__exportStar(require("./lib/SingularPropertyHandler"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const data_model_1 = require("@rdfjs/data-model"); | ||
exports.RdfListMaterializer = void 0; | ||
const rdf_data_factory_1 = require("rdf-data-factory"); | ||
const rdf_string_1 = require("rdf-string"); | ||
const DF = new rdf_data_factory_1.DataFactory(); | ||
/** | ||
@@ -76,5 +78,5 @@ * A helper class for converting RDF lists to JavaScript RDF term term lists | ||
exports.RdfListMaterializer = RdfListMaterializer; | ||
RdfListMaterializer.RDF_FIRST = data_model_1.namedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#first'); | ||
RdfListMaterializer.RDF_REST = data_model_1.namedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#rest'); | ||
RdfListMaterializer.RDF_NIL = data_model_1.namedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#nil'); | ||
RdfListMaterializer.RDF_FIRST = DF.namedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#first'); | ||
RdfListMaterializer.RDF_REST = DF.namedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#rest'); | ||
RdfListMaterializer.RDF_NIL = DF.namedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#nil'); | ||
//# sourceMappingURL=RdfListMaterializer.js.map |
@@ -12,2 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RdfObjectLoader = void 0; | ||
const jsonld_context_parser_1 = require("jsonld-context-parser"); | ||
@@ -14,0 +15,0 @@ const rdf_string_1 = require("rdf-string"); |
@@ -24,3 +24,3 @@ import { JsonLdContextNormalized } from "jsonld-context-parser"; | ||
*/ | ||
get type(): "NamedNode" | "BlankNode" | "Literal" | "Variable" | "DefaultGraph"; | ||
get type(): "NamedNode" | "BlankNode" | "Literal" | "Variable" | "DefaultGraph" | "Quad"; | ||
/** | ||
@@ -27,0 +27,0 @@ * @return {string} The URI, blank node label, literal value or variable name of this resource. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Resource = void 0; | ||
const jsonld_context_parser_1 = require("jsonld-context-parser"); | ||
@@ -4,0 +5,0 @@ const rdf_string_1 = require("rdf-string"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ShortcutPropertyHandler = void 0; | ||
/** | ||
@@ -4,0 +5,0 @@ * A proxy handler for exposing a URI-to-? map to shortcut-to-? map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SingularPropertyHandler = void 0; | ||
/** | ||
@@ -4,0 +5,0 @@ * A proxy handler for exposing array-valued hashes |
{ | ||
"name": "rdf-object", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Loads RDF as JSON objects", | ||
@@ -34,14 +34,14 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/jest": "^25.1.0", | ||
"@types/n3": "^1.1.4", | ||
"@types/jest": "^26.0.0", | ||
"@types/n3": "^1.4.4", | ||
"arrayify-stream": "^1.0.0", | ||
"coveralls": "^3.0.0", | ||
"jest": "^25.0.0", | ||
"jest-rdf": "^1.3.0", | ||
"jest": "^26.0.0", | ||
"jest-rdf": "^1.6.0", | ||
"manual-git-changelog": "^1.0.1", | ||
"n3": "^1.0.0", | ||
"n3": "^1.6.3", | ||
"pre-commit": "^1.2.2", | ||
"rdf-quad": "^1.3.0", | ||
"rdf-quad": "^1.5.0", | ||
"streamify-string": "^1.0.1", | ||
"ts-jest": "^25.1.0", | ||
"ts-jest": "^26.0.0", | ||
"tslint": "^6.0.0", | ||
@@ -80,7 +80,7 @@ "tslint-eslint-rules": "^5.3.1", | ||
"dependencies": { | ||
"@rdfjs/data-model": "^1.1.2", | ||
"jsonld-context-parser": "^2.0.0", | ||
"rdf-string": "^1.3.1", | ||
"jsonld-context-parser": "^2.0.2", | ||
"rdf-data-factory": "^1.0.3", | ||
"rdf-string": "^1.5.0", | ||
"streamify-array": "^1.0.1" | ||
} | ||
} |
31956
503
+ Addedrdf-data-factory@^1.0.3
- Removed@rdfjs/data-model@^1.1.2
- Removed@rdfjs/data-model@1.3.4(transitive)
- Removed@rdfjs/types@2.0.1(transitive)
- Removed@types/node@22.10.9(transitive)
- Removedundici-types@6.20.0(transitive)
Updatedjsonld-context-parser@^2.0.2
Updatedrdf-string@^1.5.0