@valueflows/track-trace
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

@valueflows/track-trace

Implementation of track & trace algoritms in TypeScript.

Usage

yarn add @valueflows/track-trace
import { track, trace } from '@valueflows/track-trace'
import data from './store'

const entityInData = 'https://some.example/fbb63f10-ae72-4471-b1d2-a1931208932e'

;(async () => {
  for await (const node of track(data, entityInData)) console.log(node)
  for await (const node of trace(data, entityInData)) console.log(node)
})

ResultNode

Iterator iterates over results nodes described by this interface:

interface ResultNode {
  type :NamedNode,
  iri :string,
  distance :number
}

Readme

Keywords

none

Package Sidebar

Install

npm i @valueflows/track-trace

Weekly Downloads

2

Version

0.1.2

License

Unlicense

Unpacked Size

6.84 kB

Total Files

4

Last publish

Collaborators

  • sprillow-connor
  • elfpavlik
  • pospi
  • mayel