2014-04-18 17:09:46 +02:00
TurtleValidator
2014-04-17 16:18:47 +02:00
===========
2014-04-28 15:18:16 +02:00
RDF NTriples/Turtle validator using Ruben Verborgh's [N3 NodeJS library ](https://github.com/RubenVerborgh/N3.js ). Validate Turtle and Ntriples documents on syntax and XSD datatype errors through command line.
2014-04-17 16:18:47 +02:00
2016-11-29 11:06:12 +01:00
© 2014, 2015 - IDLab - Ghent University - imec
2014-04-28 15:18:16 +02:00
Source code: https://github.com/MMLab/TurtleValidator
2014-04-17 16:18:47 +02:00
2014-04-28 15:18:16 +02:00
Install:
2014-04-17 16:18:47 +02:00
2014-04-28 15:18:16 +02:00
npm install -g turtle-validator
Examples:
2018-02-16 11:22:26 +01:00
$ ttl < path-to-file . . . >
2014-04-28 15:18:16 +02:00
$ curl http://data.linkeddatafragments.org/dbpedia -H "accept: text/turtle" | ttl
$ ttl http://triples.demo.thedatatank.com/demo.ttl
2015-07-14 19:23:35 +02:00
## Or install the browser client
```bash
2019-01-10 12:43:45 +01:00
# Equivalent to: npm build
2015-07-14 19:23:35 +02:00
npm install
browserify lib/validator.js -o public/js/ttl.js
```
Then use it in your browser using the index.html in the public folder.
2019-01-10 12:43:45 +01:00
You can run this locally as follows.
```bash
# Equivalent to: npm start
npm install
browserify lib/validator.js -o public/js/ttl.js
ws
```