Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deep-taxonomy-benchmark

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deep-taxonomy-benchmark - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

dist/data/owl.n3

6

dist/deepTaxonomy.d.ts

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc