Re: Disabling BNode UID generation

2022-02-10 Thread Ryan Shaw
Thank you both. > On Feb 9, 2022, at 1:42 PM, Andrii Berezovskyi wrote: > > Ryan, > > Here is an example of how we use it in JUnit: >

Re: Disabling BNode UID generation

2022-02-09 Thread Andrii Berezovskyi
Ryan, Here is an example of how we use it in JUnit: https://github.com/eclipse/lyo/blob/aa3b18e4f28f3960d3a86a0b54151dccec2f139f/core/oslc4j-jena-provider/src/test/java/org/eclipse/lyo/oslc4j/provider/jena/JenaModelHelperTest.java#L64 And here is an AssertJ helper we wrote:

Re: Disabling BNode UID generation

2022-02-09 Thread Andy Seaborne
On 09/02/2022 16:09, Shaw, Ryan wrote: Thank you, Andy. I agree that working on the triple level is the correct way to approach this. I was looking for something quick and dirty that would work with textual diffing by a VCS, hence my focus on the blank node labels. Are there any examples

Re: Disabling BNode UID generation

2022-02-09 Thread Beaudet, David
I ran across an API call the other day that checks isomorphism. See the topbraid shacl library junit test runner. I think it's called by the dash test case class to make sure the resulting graph matches the expected response. On Feb 9, 2022 11:10, "Shaw, Ryan" wrote: Thank you, Andy. I

Re: Disabling BNode UID generation

2022-02-09 Thread Shaw, Ryan
Thank you, Andy. I agree that working on the triple level is the correct way to approach this. I was looking for something quick and dirty that would work with textual diffing by a VCS, hence my focus on the blank node labels. Are there any examples of how to use the isomorphism utilities in

Re: Disabling BNode UID generation

2022-02-05 Thread Andy Seaborne
On 04/02/2022 19:09, Shaw, Ryan wrote: Hello, I am trying to experiment with generating diffable N-Triples or flat Turtle files. ... Thanks, Ryan Info: There is work on a charter for "RDF Dataset Canonicalization and Hash Working Group" https://w3c.github.io/rch-wg-charter/ The end

Re: Disabling BNode UID generation

2022-02-05 Thread Andy Seaborne
Hi Ryan, There is an option when creating a parser to provide different policies for generating the internal system identfier for a blank node. RDFParser.create()..labelToNode(...)... It shouldn't depend on JenaParameters.disableBNodeUIDGeneration but there is a bug in the Turtle parser

Re: Disabling BNode UID generation

2022-02-04 Thread Shaw, Ryan
> On Feb 4, 2022, at 4:03 PM, Andy Seaborne wrote: > > Ryan, > > Please, could you show example code that illustrates what you are seeing? > Presumably it isn't a mix in one parser run because it looks like "Annn" come > from a different place than UUIDs Ids.

Re: Disabling BNode UID generation

2022-02-04 Thread Andy Seaborne
Ryan, Please, could you show example code that illustrates what you are seeing? Presumably it isn't a mix in one parser run because it looks like "Annn" come from a different place than UUIDs Ids. Which version of Jena are you running? Andy On 04/02/2022 19:09, Shaw, Ryan wrote:

Re: Disabling BNode UID generation

2022-02-04 Thread Martynas Jusevičius
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.