W3C home > Mailing lists > Public > public-rww@w3.org > November 2012

rdflib.js question

From: Baptiste Lafontaine <baptiste33@gmail.com>
Date: Wed, 28 Nov 2012 10:24:29 +0100
Message-ID: <CANRJJJZby=e7VyJVm78JkTZHpXQek6N5+N4DSTgCTWPR66Mh9w@mail.gmail.com>
To: public-rww@w3.org
Hello,

I hope it's the right mailing list to ask such a question. It it's not
do not hesitate to redirect me to a more appropriate place.


I want to use rdflib.js it for my node webID implementation
(https://github.com/magnetik/node-webid) but I can't make it work.

My need are quite simple : I have the rdf/xml (or turtle or N3)
document as a string in a variable, I just want to parse it and make a
few simple queries on it.

I've tried something like this :
store = new rdf.IndexedFormula
rdf.parse(webID, store, $rdf.sym('http://magnetik.org/card#me'),
'application/rdf+xml')

(where store webID is a valid rdf/xml document)



I'm not very used to all RDF specific terms and the lack of
documentation or example has been blocking me for quite a while...


Thanks

Regards,
--
Baptiste Lafontaine
http://magnetik.org
+33 (0) 6 75 30 15 33
Received on Wednesday, 28 November 2012 09:25:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 28 November 2012 09:25:28 GMT