deep-taxonomy-benchmark
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -1,3 +0,3 @@ | ||
import { Store, Quad } from 'n3'; | ||
export declare const TARGET_RESULT: Quad; | ||
export declare function generateDeepTaxonomy(size: number, extended?: boolean): Store<import("rdf-js").Quad, Quad, import("rdf-js").Quad, import("rdf-js").Quad>; | ||
import { Store } from 'n3'; | ||
export declare const TARGET_RESULT: import("n3").Quad; | ||
export declare function generateDeepTaxonomy(size: number, extended?: boolean): Store<import("@rdfjs/types").Quad, import("n3").Quad, import("@rdfjs/types").Quad, import("@rdfjs/types").Quad>; |
@@ -5,6 +5,7 @@ "use strict"; | ||
const n3_1 = require("n3"); | ||
const { namedNode, quad } = n3_1.DataFactory; | ||
const ES = 'http://eulersharp.sourceforge.net/2009/12dtb/test#'; | ||
const TYPE = new n3_1.NamedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'); | ||
const SUBCLASS_OF = new n3_1.NamedNode('http://www.w3.org/2000/01/rdf-schema#subClassOf'); | ||
exports.TARGET_RESULT = new n3_1.Quad(new n3_1.NamedNode(`${ES}ind`), TYPE, new n3_1.NamedNode(`${ES}A2`)); | ||
const TYPE = namedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'); | ||
const SUBCLASS_OF = namedNode('http://www.w3.org/2000/01/rdf-schema#subClassOf'); | ||
exports.TARGET_RESULT = quad(namedNode(`${ES}ind`), TYPE, namedNode(`${ES}A2`)); | ||
function generateDeepTaxonomy(size, extended = false) { | ||
@@ -14,14 +15,14 @@ const store = new n3_1.Store(); | ||
for (let i = 0; i < size; i += 1) { | ||
store.addQuad(new n3_1.Quad(new n3_1.NamedNode(`${ES}ind${i}`), TYPE, new n3_1.NamedNode(`${ES}N0`))); | ||
store.addQuad(quad(namedNode(`${ES}ind${i}`), TYPE, namedNode(`${ES}N0`))); | ||
} | ||
} | ||
else { | ||
store.addQuad(new n3_1.Quad(new n3_1.NamedNode(`${ES}ind`), TYPE, new n3_1.NamedNode(`${ES}N0`))); | ||
store.addQuad(quad(namedNode(`${ES}ind`), TYPE, namedNode(`${ES}N0`))); | ||
} | ||
store.addQuad(new n3_1.Quad(new n3_1.NamedNode(`${ES}N${size}`), SUBCLASS_OF, new n3_1.NamedNode(`${ES}A2`))); | ||
store.addQuad(quad(namedNode(`${ES}N${size}`), SUBCLASS_OF, namedNode(`${ES}A2`))); | ||
for (let i = 0; i < size; i += 1) { | ||
store.addQuads([ | ||
new n3_1.Quad(new n3_1.NamedNode(`${ES}N${i}`), SUBCLASS_OF, new n3_1.NamedNode(`${ES}N${i + 1}`)), | ||
new n3_1.Quad(new n3_1.NamedNode(`${ES}N${i}`), SUBCLASS_OF, new n3_1.NamedNode(`${ES}I${i + 1}`)), | ||
new n3_1.Quad(new n3_1.NamedNode(`${ES}N${i}`), SUBCLASS_OF, new n3_1.NamedNode(`${ES}J${i + 1}`)), | ||
quad(namedNode(`${ES}N${i}`), SUBCLASS_OF, namedNode(`${ES}N${i + 1}`)), | ||
quad(namedNode(`${ES}N${i}`), SUBCLASS_OF, namedNode(`${ES}I${i + 1}`)), | ||
quad(namedNode(`${ES}N${i}`), SUBCLASS_OF, namedNode(`${ES}J${i + 1}`)), | ||
]); | ||
@@ -28,0 +29,0 @@ } |
@@ -1,3 +0,5 @@ | ||
export declare function getTimbl(): Promise<import("n3").Store<import("rdf-js").Quad, import("n3").Quad, import("rdf-js").Quad, import("rdf-js").Quad>>; | ||
export declare function getFoaf(): Promise<import("n3").Store<import("rdf-js").Quad, import("n3").Quad, import("rdf-js").Quad, import("rdf-js").Quad>>; | ||
export declare function getTimblAndFoaf(): Promise<import("n3").Store<import("rdf-js").Quad, import("n3").Quad, import("rdf-js").Quad, import("rdf-js").Quad>>; | ||
export declare const getTimbl: () => Promise<import("n3").Store<import("@rdfjs/types").Quad, import("n3").Quad, import("@rdfjs/types").Quad, import("@rdfjs/types").Quad>>; | ||
export declare const getFoaf: () => Promise<import("n3").Store<import("@rdfjs/types").Quad, import("n3").Quad, import("@rdfjs/types").Quad, import("@rdfjs/types").Quad>>; | ||
export declare const getTimblAndFoaf: () => Promise<import("n3").Store<import("@rdfjs/types").Quad, import("n3").Quad, import("@rdfjs/types").Quad, import("@rdfjs/types").Quad>>; | ||
export declare const getOwl: () => Promise<import("n3").Store<import("@rdfjs/types").Quad, import("n3").Quad, import("@rdfjs/types").Quad, import("@rdfjs/types").Quad>>; | ||
export declare const getRdfs: () => Promise<import("n3").Store<import("@rdfjs/types").Quad, import("n3").Quad, import("@rdfjs/types").Quad, import("@rdfjs/types").Quad>>; |
@@ -25,28 +25,23 @@ "use strict"; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getTimblAndFoaf = exports.getFoaf = exports.getTimbl = void 0; | ||
exports.getRdfs = exports.getOwl = exports.getTimblAndFoaf = exports.getFoaf = exports.getTimbl = void 0; | ||
const path = __importStar(require("path")); | ||
const load_1 = require("./load"); | ||
function getTimbl() { | ||
return (0, load_1.load)(path.join(__dirname, 'data', 'timbl.ttl')); | ||
} | ||
const rdf_dereference_store_1 = __importDefault(require("rdf-dereference-store")); | ||
const timbl = path.join(__dirname, 'data', 'timbl.ttl'); | ||
const foaf = path.join(__dirname, 'data', 'foaf.ttl'); | ||
const owl = path.join(__dirname, 'data', 'owl.n3'); | ||
const rdfs = path.join(__dirname, 'data', 'rdfs.n3'); | ||
const getTimbl = () => (0, rdf_dereference_store_1.default)(timbl, { localFiles: true }).then(({ store }) => store); | ||
exports.getTimbl = getTimbl; | ||
function getFoaf() { | ||
return (0, load_1.load)(path.join(__dirname, 'data', 'foaf.ttl')); | ||
} | ||
const getFoaf = () => (0, rdf_dereference_store_1.default)(foaf, { localFiles: true }).then(({ store }) => store); | ||
exports.getFoaf = getFoaf; | ||
function getTimblAndFoaf() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return (0, load_1.load)(path.join(__dirname, 'data', 'foaf.ttl'), yield getTimbl()); | ||
}); | ||
} | ||
const getTimblAndFoaf = () => (0, rdf_dereference_store_1.default)([timbl, foaf], { localFiles: true }) | ||
.then(({ store }) => store); | ||
exports.getTimblAndFoaf = getTimblAndFoaf; | ||
const getOwl = () => (0, rdf_dereference_store_1.default)(owl, { localFiles: true }).then(({ store }) => store); | ||
exports.getOwl = getOwl; | ||
const getRdfs = () => (0, rdf_dereference_store_1.default)(rdfs, { localFiles: true }).then(({ store }) => store); | ||
exports.getRdfs = getRdfs; |
{ | ||
"name": "deep-taxonomy-benchmark", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Generate the Deep Taxonomy Benchmark for testing RDF Reasoners", | ||
@@ -40,13 +40,13 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"event-emitter-promisify": "^1.1.0", | ||
"n3": "^1.16.2" | ||
"n3": "^1.16.2", | ||
"rdf-dereference-store": "^1.3.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^28.1.8", | ||
"@types/n3": "^1.10.4", | ||
"@typescript-eslint/eslint-plugin": "^5.37.0", | ||
"@typescript-eslint/parser": "^5.37.0", | ||
"eslint": "^8.23.1", | ||
"@types/n3": "^1.16.4", | ||
"@typescript-eslint/eslint-plugin": "^5.62.0", | ||
"@typescript-eslint/parser": "^5.62.0", | ||
"eslint": "^8.57.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"jest": "^28.1.3", | ||
@@ -56,3 +56,3 @@ "pre-commit": "^1.2.2", | ||
"ts-jest": "^28.0.8", | ||
"typescript": "^4.8.3" | ||
"typescript": "^4.9.5" | ||
}, | ||
@@ -59,0 +59,0 @@ "jest": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
52954
0
104
+ Addedrdf-dereference-store@^1.3.0
+ Added@bergos/jsonparse@1.4.2(transitive)
+ Added@comunica/actor-abstract-mediatyped@2.10.0(transitive)
+ Added@comunica/actor-abstract-parse@2.10.0(transitive)
+ Added@comunica/actor-dereference-fallback@2.10.0(transitive)
+ Added@comunica/actor-dereference-file@2.10.0(transitive)
+ Added@comunica/actor-dereference-http@2.10.2(transitive)
+ Added@comunica/actor-dereference-rdf-parse@2.10.0(transitive)
+ Added@comunica/actor-http-fetch@2.10.2(transitive)
+ Added@comunica/actor-http-proxy@2.10.2(transitive)
+ Added@comunica/actor-rdf-parse-html@2.10.0(transitive)
+ Added@comunica/actor-rdf-parse-html-microdata@2.10.0(transitive)
+ Added@comunica/actor-rdf-parse-html-rdfa@2.10.0(transitive)
+ Added@comunica/actor-rdf-parse-html-script@2.10.0(transitive)
+ Added@comunica/actor-rdf-parse-jsonld@2.10.2(transitive)
+ Added@comunica/actor-rdf-parse-n3@2.10.0(transitive)
+ Added@comunica/actor-rdf-parse-rdfxml@2.10.0(transitive)
+ Added@comunica/actor-rdf-parse-shaclc@2.10.0(transitive)
+ Added@comunica/actor-rdf-parse-xml-rdfa@2.10.0(transitive)
+ Added@comunica/bus-dereference@2.10.0(transitive)
+ Added@comunica/bus-dereference-rdf@2.10.0(transitive)
+ Added@comunica/bus-http@2.10.2(transitive)
+ Added@comunica/bus-init@2.10.0(transitive)
+ Added@comunica/bus-rdf-parse@2.10.0(transitive)
+ Added@comunica/bus-rdf-parse-html@2.10.0(transitive)
+ Added@comunica/config-query-sparql@2.7.0(transitive)
+ Added@comunica/context-entries@2.10.0(transitive)
+ Added@comunica/core@2.10.0(transitive)
+ Added@comunica/mediator-combine-pipeline@2.10.0(transitive)
+ Added@comunica/mediator-combine-union@2.10.0(transitive)
+ Added@comunica/mediator-number@2.10.0(transitive)
+ Added@comunica/mediator-race@2.10.0(transitive)
+ Added@comunica/mediatortype-time@2.10.0(transitive)
+ Added@comunica/types@2.10.0(transitive)
+ Added@rdfjs/types@1.1.2(transitive)
+ Added@rubensworks/saxes@6.0.1(transitive)
+ Added@smessie/readable-web-to-node-stream@3.0.3(transitive)
+ Added@types/http-link-header@1.0.7(transitive)
+ Added@types/n3@1.21.1(transitive)
+ Added@types/node@18.19.6422.9.1(transitive)
+ Added@types/readable-stream@2.3.15(transitive)
+ Added@types/sparqljs@3.1.12(transitive)
+ Added@types/yargs@17.0.33(transitive)
+ Added@types/yargs-parser@21.0.3(transitive)
+ Addedasynciterator@3.9.0(transitive)
+ Addedcanonicalize@1.0.8(transitive)
+ Addedcross-fetch@3.1.84.0.0(transitive)
+ Addeddom-serializer@2.0.0(transitive)
+ Addeddomelementtype@2.3.0(transitive)
+ Addeddomhandler@5.0.3(transitive)
+ Addeddomutils@3.1.0(transitive)
+ Addedentities@4.5.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedhash.js@1.1.7(transitive)
+ Addedhtmlparser2@8.0.29.1.0(transitive)
+ Addedhttp-link-header@1.1.3(transitive)
+ Addedimmutable@4.3.7(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-stream@2.0.1(transitive)
+ Addedjsonld-context-parser@2.4.0(transitive)
+ Addedjsonld-streaming-parser@3.4.0(transitive)
+ Addedmicrodata-rdf-streaming-parser@2.0.1(transitive)
+ Addedminimalistic-assert@1.0.1(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedpromise-polyfill@1.1.6(transitive)
+ Addedrdf-data-factory@1.1.2(transitive)
+ Addedrdf-dereference@3.0.0(transitive)
+ Addedrdf-dereference-store@1.3.2(transitive)
+ Addedrdf-isomorphic@1.3.1(transitive)
+ Addedrdf-parse@3.0.0(transitive)
+ Addedrdf-string@1.6.3(transitive)
+ Addedrdf-terms@1.11.0(transitive)
+ Addedrdfa-streaming-parser@2.0.1(transitive)
+ Addedrdfxml-streaming-parser@2.4.0(transitive)
+ Addedreadable-stream-node-to-web@1.0.1(transitive)
+ Addedrelative-to-absolute-iri@1.0.7(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedshaclc-parse@1.4.0(transitive)
+ Addedsparqlalgebrajs@4.3.8(transitive)
+ Addedsparqljs@3.7.3(transitive)
+ Addedstream-to-string@1.2.1(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedundici-types@5.26.56.19.8(transitive)
+ Addedvalidate-iri@1.0.1(transitive)
+ Addedweb-streams-ponyfill@1.4.2(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
+ Addedxmlchars@2.2.0(transitive)
- Removedevent-emitter-promisify@^1.1.0