New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

eye-mock

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eye-mock

EYE mock solving your n3 reasoning on a server instead of client side Prolog execution

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
8
Maintainers
0
Weekly downloads
 
Created
Source

eye-mock

EYE mock solving your n3 reasoning on a server instead of client side Prolog execution

Usage

Install the package via NPM

npm install eye-mock

Import and use the function in your code

import { n3reasoner } from 'eye-mock';

const data = `
@prefix : <urn:example.org:> .
:Alice a :Person .
{ ?S a :Person } => { ?S a :Human } .
`;

const query = `{?S ?P ?O . } => {?S ?P ?O . } .`;

const options = { output: "derivations", outputType: "string", bnodeRelabeling: true };

const result = await n3reasoner(data, query, options);

Options

The options parameter is optional and can be used to configure the reasoning process. The following options are available:

  • output: What to output with implicit queries.
    • none: no implicit query is passed
    • derivations: output only new derived triples, a.k.a --pass-only-new (default)
    • deductive_closure: output deductive closure, a.k.a --pass
    • deductive_closure_plus_rules: output deductive closure plus rules, a.k.a --pass-all
    • grounded_deductive_closure_plus_rules: ground the rules and output deductive closure plus rules, a.k.a --pass-all-ground
  • outputType: The type of output
    • string: output as string (default)
    • quads: output as array of RDF/JS Quads
  • bnodeRelabeling: Whether or not to perform bnodeRelabeling
    • true: perform bnodeRelabeling (default)
    • false: do not perform bnodeRelabeling

Keywords

eye

FAQs

Package last updated on 29 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts