- From: Baptiste Lafontaine <baptiste33@gmail.com>
- Date: Mon, 14 Nov 2011 08:06:03 +0100
- To: public-wai-ert@w3.org
Hello, As part of a student projet I've started a little node.js EARL file generator. Node.js is a form of server-side of javascript. (see http://en.wikipedia.org/wiki/Nodejs) I've tried to establish equivalent between the specification and an object oriented model. A simple EARL file with an assertion and a result look like : var earlDocument = new earl.EarlDocument(); // add wit prefix earlDocument.setPrefix("wit", "http://purl.org/dc/terms/"); earlDocument.addAssertion(":assert1", ":certificate", "wit:certificateProvidedSAN").toRDF(); earlDocument.getAssertion(":assert1").addResult("earl:passed").toRDF(); earlDocument.writeFile('test.n3'); Other EARL class are not implemented, but since the project is on github any comment/help/fork (and push request) is welcome ! Code is here : https://github.com/magnetik/node-earl It's quite simple to read it, even for non javascript expert. RDF are generated in .toRDF functions. Is there any plan of doing a standard EARL interface ? (Like the one of RDF : http://www.w3.org/TR/rdf-interfaces/#) Thanks for your attention, once again any comment is welcome ! -- Baptiste Lafontaine Etudiant Télécom SudParis CV : http://magnetik.org/fr/curriculum-vitae/
Received on Monday, 14 November 2011 07:07:00 UTC