Hi Ryan,

Isn't it easier to skolemize the bnodes into URIs that you control?

If you only have URIs, then you could even hash the graph with SPARQL:
https://stackoverflow.com/questions/65798817/how-to-generate-a-hash-of-an-rdf-graph-using-sparql
It works but probably doesn't scale that well.

Martynas

On Fri, Feb 4, 2022 at 8:09 PM Shaw, Ryan <ryans...@unc.edu> wrote:
>
> Hello,
>
> I am trying to experiment with generating diffable N-Triples or flat Turtle 
> files.
>
> I was hoping that I could do this by setting 
> JenaParameters.disableBNodeUIDGeneration to true, so that blank nodes would 
> be assigned IDs in increasing order as the parser created them. But it seems 
> that only some methods of blank node creation respect this setting. When I 
> parse Turtle with BNode UID generation disabled, I get a mix of `ANNN` 
> (incremented, as expected) and random UUID BNode IDs. When I parse N-Triples 
> I get all random UUIDs.
>
> Is there any way to tap into the parsing pipeline to ensure that all BNode 
> IDs are deterministically (ideally incrementally) generated?
>
> Thanks,
> Ryan

Reply via email to