0.2.0 • Published 10 years ago
folder-to-rdf v0.2.0
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-rdfUsage
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 testLicense
MIT © Nicola Greco 2015