Closed Marketcentric closed 11 years ago
The n3
option in join is only used to create some ntriples out of a graph pattern (a join).
I've updated the README to explain this better.
so, is it required as the last Join conditional?
Not at all, it's just useful if you want to export your data from LevelGraph in N3 format.
ok. I tried to modify the example to remove the 'n3' option with the hopes of returning the data in native format. I set 'options' to null and got "TypeError: Cannot read property 'n3' of null". Should there be a "if (options && options.n3)" modification in the join method?
Definitely.
Please add a test, fix it, and submit a pull-request!
Il giorno lunedì 23 settembre 2013, Ross Anderson ha scritto:
ok. I tried to modify the example to remove the 'n3' option with the hopes of returning the data in native format. I set 'options' to null and got "TypeError: Cannot read property 'n3' of null". Should there be a "if (options && options.n3)" modification in the join method?
— Reply to this email directly or view it on GitHubhttps://github.com/mcollina/levelgraph-n3/issues/3#issuecomment-24892413 .
ok, will do
Thanks a million!
fyi - fun with the OpenCalais web service, N3/rdf output and graph visualization: http://viewer.opencalais.com/ http://www.opencalais.com/
article text: https://dl.dropboxusercontent.com/u/60214119/content.pdf
resulting graph visualization: https://dl.dropboxusercontent.com/u/60214119/test01.pdf
Cool! :)
Hi mcollina,
A great extension to Levelgraph, thank you. It works great at storing my N3 dataset.
Can you explain the role the "N3" option plays with the Join. Is it required? Is it required on the last conditional in the Join list? I looked at your code and saw some concatenation of streams going on, but that did not clarify it's purpose. What are the rules of its use?
Also, in your Join example you reference a predicate "http://example.org/cartoons#dumberThan" in the N3 block. Since this was not originally "put" into the db, is it inferred automatically? I am confused by your magic.
Thanks in advance for your clarifications. -ross