Miss any of our Open RFC calls?Watch the recordings here! »

ezs-lodex

1.1.1 • Public • Published

A collection of ezs functions for Lodex.

This package cannot be used alone. ezs has to be installed

Usage

import ezs from 'ezs';
import lodex from 'ezs-lodex';
 
ezs.use(lodex);
 
process.stdin
    .pipe(ezs('flattenPatch'))
    .pipe(process.stdout);

Statements

Table of Contents

convertJsonLdToNQuads

Take a JSON-LD object and transform it into NQuads triples.

Returns String

convertToAtom

Generate an atom XML feed from a resources feed, the LODEX configuration and model.

Parameters

  • fields Object LODEX model (optional, default {})
  • atomFeed Feed A feed of resources, see feed (optional, default {})
  • config Object LODEX configuration (with perPage) (optional, default {})

Returns String

getContext

Create a JSONLD context with prefixes and istexQuery informations in config.json

Parameters

  • config Object LODEX configuration (istexQuery: {linked, context})
  • prefixes Object Semantic web prefixes (bibo, dcterms, etc.)

Returns any JSONLD context with properties URI

convertToExtendedJsonLd

Convert the result of an ISTEX query to an extended JSON-LD

Parameters

  • data
  • feed
  • config Object LODEX configuration (with istexQuery) (optional, default {})
  • prefixes Object LOD prefixes (optional, default {bibo,dbpedia,dcterms,..})

flattenPatch

Take Object and transform all key ending byu number on array.

Returns Object

objects2columns

Take Object and ...

Returns Object

Keywords

Install

npm i [email protected]

Version

1.1.1

License

MIT

Unpacked Size

78.3 kB

Total Files

59

Last publish

Collaborators

  • avatar
  • avatar