deep-taxonomy-benchmark
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -1,3 +0,2 @@ | ||
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>; | ||
export * from './deepTaxonomy'; | ||
export * from './timbl'; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (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" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.generateDeepTaxonomy = exports.TARGET_RESULT = void 0; | ||
const n3_1 = require("n3"); | ||
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`)); | ||
function generateDeepTaxonomy(size, extended = false) { | ||
const store = new n3_1.Store(); | ||
if (extended) { | ||
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`))); | ||
} | ||
} | ||
else { | ||
store.addQuad(new n3_1.Quad(new n3_1.NamedNode(`${ES}ind`), TYPE, new n3_1.NamedNode(`${ES}N0`))); | ||
} | ||
store.addQuad(new n3_1.Quad(new n3_1.NamedNode(`${ES}N${size}`), SUBCLASS_OF, new n3_1.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}`)), | ||
]); | ||
} | ||
return store; | ||
} | ||
exports.generateDeepTaxonomy = generateDeepTaxonomy; | ||
__exportStar(require("./deepTaxonomy"), exports); | ||
__exportStar(require("./timbl"), exports); |
{ | ||
"name": "deep-taxonomy-benchmark", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Generate the Deep Taxonomy Benchmark for testing RDF Reasoners", | ||
@@ -17,4 +17,4 @@ "main": "dist/index.js", | ||
"test": "jest", | ||
"lint": "eslint lib/* __tests__/* --ext .ts", | ||
"lint:fix": "eslint lib/* __tests__/* --ext .ts --fix", | ||
"lint": "eslint lib/*.ts __tests__/* --ext .ts", | ||
"lint:fix": "eslint lib/*.ts __tests__/* --ext .ts --fix", | ||
"build": "tsc", | ||
@@ -41,2 +41,3 @@ "prepare": "tsc", | ||
"dependencies": { | ||
"event-emitter-promisify": "^1.1.0", | ||
"n3": "^1.16.2" | ||
@@ -46,2 +47,3 @@ }, | ||
"@types/jest": "^28.1.8", | ||
"@types/n3": "^1.10.4", | ||
"@typescript-eslint/eslint-plugin": "^5.37.0", | ||
@@ -56,4 +58,3 @@ "@typescript-eslint/parser": "^5.37.0", | ||
"ts-jest": "^28.0.8", | ||
"typescript": "^4.8.3", | ||
"@types/n3": "^1.10.4" | ||
"typescript": "^4.8.3" | ||
}, | ||
@@ -60,0 +61,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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
10953
11
132
2
1
+ Addedevent-emitter-promisify@1.1.0(transitive)