Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicola/folder-to-rdf
Get an RDF graph of the contents of a folder
https://github.com/nicola/folder-to-rdf
Last synced: 18 days ago
JSON representation
Get an RDF graph of the contents of a folder
- Host: GitHub
- URL: https://github.com/nicola/folder-to-rdf
- Owner: nicola
- Created: 2015-08-25T02:07:05.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-26T20:37:21.000Z (over 7 years ago)
- Last Synced: 2024-10-07T23:33:09.721Z (about 1 month ago)
- Language: JavaScript
- Homepage: http://npm.im/folder-to-rdf
- Size: 17.6 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - nicola/folder-to-rdf - Get an RDF graph of the contents of a folder (others)
README
# folder-to-rdf
Create an [RDF-ext](https://rdf-ext/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
```javascript
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