folder-to-rdf
v0.2.0
Published
Get an RDF graph of the contents of a folder
Downloads
15
Readme
folder-to-rdf
Create an RDF-ext compatible graph of a folder. This library looks at a folder
and tries to parse the Linked Data files and then returns what is in the folder in a RDF-graph
Like ls
, with Linked Data output
Install
$ npm install --save folder-to-rdf
Usage
Simple
var opts = {
suffixMeta: '.meta',
skipFiles: ['secret*', '.git', '*.pem'],
posix: true
}
var ls = require('folder-to-rdf')(opts)
ls('./', function(err, graph) {
console.log(graph.toString())
})
Test
npm test
License
MIT © Nicola Greco 2015