eclipse-rdf4j / rdf4j

Eclipse RDF4J: scalable RDF for Java
https://rdf4j.org/
BSD 3-Clause "New" or "Revised" License
367 stars 164 forks source link

SHACL - Add caching when "interning" Value objects #5189

Closed hmottestad closed 2 weeks ago

hmottestad commented 2 weeks ago

Most sails have their own custom implementation of IRI/Bnode/Literal (Value). Converting a generic Value like the RDF4J vocabulary RDF.TYPE into the sail specific object can make it faster later on when calling getStatement(...).

Some plan nodes already do this in the SHACL Engine, but we need a cache so that each plan node doesn't have to look up the same value as other plan nodes.