These are chat archives for rdfjs/public

10th
May 2017
elf Pavlik
@elf-pavlik
May 10 2017 02:17
@RubenVerborgh @webr3 @timbl maybe creating a repository on github for N3 spec would make sense? you could create a clear issue for scoping of blank nodes there and get feedback from more implementers (no only javascript but various other languages that have N3 implementations)
Thomas Bergwinkl
@bergos
May 10 2017 11:58
@dmitrizagidulin can you point me to the code in rdflib which handles the prefix map, curie resolve, etc.?
webr3
@webr3
May 10 2017 13:21
@elf-pavlik yes
Dmitri Zagidulin
@dmitrizagidulin
May 10 2017 14:28
@bergos I'm not fully sure. Prefixes are held in a hashmap in IndexedFormula .namespaces, here: indexed-formula.js#L86
there's also suggestPrefix() and suggestNamespaces() methods in Serializer
@timbl would know more.
Thomas Bergwinkl
@bergos
May 10 2017 14:37
@dmitrizagidulin @timbl i want to add something like this to the rdf-ext v1: https://www.w3.org/TR/rdf-interfaces/#prefix-maps
it would be good if we could agree on something. should i just make a proposal or do you have existing code, which i should try to align to?
Dmitri Zagidulin
@dmitrizagidulin
May 10 2017 14:39
a good question. possibly? I'll let Tim get this one
Thomas Bergwinkl
@bergos
May 10 2017 14:41
it's using the same object for the methods and map itself. that's one thing i would like to change, but otherwise it would be very similar.
webr3
@webr3
May 10 2017 14:53
@bergos hehe that looks familiar
this may be useful too https://github.com/webr3/rdf.js/blob/master/additions/iri.js
it was an upgrade of
https://github.com/webr3/URI/blob/master/uris.js
that was done for rdf-interfaces approaches and to use IRI instead of URI
LOL 6,7 years ago it has been a while, maybe it is not relevant any longer
Ruben Verborgh
@RubenVerborgh
May 10 2017 15:10

@webr3

how would you even serialize N3 to TriG?

Opposite question is also a problem: how to serialize TriG to N3?

webr3
@webr3
May 10 2017 15:17
replace bnodes with variables :p (in code, when serializing)
I'd suggest they are different types for different purposes though, quite distinct
Thomas Bergwinkl
@bergos
May 10 2017 15:41
@webr3 the url module of node does already a good job for most cases, but the CURIE stuff is still relevant.
webr3
@webr3
May 10 2017 15:41
de ja vu, I think you've said that before and I forgot, sorry!
Tim Berners-Lee
@timbl
May 10 2017 19:32
"Since TriG is standardized and thus cannot change,” well there can be friendly amendments proposed if they made a mistake but if there is data out there that actually uses tha feature then that would not work.
I couldn’t find an issue in their issues https://www.w3.org/2011/rdf-wg/track/issues/closed addrssing the scope of bnodes
Tim Berners-Lee
@timbl
May 10 2017 19:38
Apart from the bnodes scope its, the question of: @webr3 how to serialize TriG to N3? …. in other words how would you dump and load a quadstore using N3? We have to pick a predicate to use betweeen the id of the document (which they call named graph) and the graph. Before we have used log:semantics for that relation.
I had a go at some code to dump the store in fact.
I think this is an importantt part of the system in fact.