Thank you that does solve part of the problem.However I do have a follow up question.The numeric part of identifier for the blank node keeps changing even if the input json-ld does not change. This is the part that i have highlighted in red below. This makes the same b0 node appear to be different between 2 runs through the parser even though it is still b0.
I was trying to use @list container type instead of @set in my JSON-LD context since I need to preserve order information. This results in blank nodes in the rdf.Without the blank nodes it was simple. Rio parser would create triples or quads that could be directly loaded to a remote repository.RDFParser rdfParser = Rio.createParser(RDFFormat.JSONLD);StatementCollector statementCollector = new StatementCollector();rdfParser.setRDFHandler(statementCollector);rdfParser.parse(is, path);// get the statement from the collectorCollection<Statement> statements = statementCollector.getStatements();// add/remove statements from specified named graph using a RepositoryConnectionconnection.add(statements, namedGraph);With blank nodes this results in error unless I use Skolem IRIs.
However, in my case I also need to track statements that may have changed for a named graph in subsequent requests. The Skolem IRIs for all blank nodes are flagged as changes even if none of the container items have changed.So to me it appears that either I should not use @list and find some other way to preserve order information or the comparison logic should change.
--
You received this message because you are subscribed to the Google Groups "RDF4J Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdf4j-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdf4j-users/f555bc65-1896-4f5f-8a91-ffba4566181a%40beta.fastmail.com.
Hi,
You might want to look into Models.isomorphic
https://rdf4j.org/javadoc/latest/index.html?org/eclipse/rdf4j/model/util/Models.html
Best regards
Bart
To view this discussion on the web visit https://groups.google.com/d/msgid/rdf4j-users/CAOy%2BA5bKE%3D2-2Vm8a%2B4W1hijZbBmMzFBRZey3nK%2BDnmnHy7Tjw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdf4j-users/AM0PR07MB5476819FC57F1CCD27196108CEDB0%40AM0PR07MB5476.eurprd07.prod.outlook.com.