FactoryRDFCaching extends FactoryRDFStd { @Override public Node createURI(String uriStr) { try { return cache.get(uriStr, ()->RiotLib.createIRIorBNode(uriStr)) ; } catch (ExecutionException e) { throw new RiotException("Execution exception filling cache <"+uriStr+">", e) ; } } FactoryRDFCaching();  FactoryRDFCaching(int cacheSize);  FactoryRDFCaching(LabelToNode labelMapping);  FactoryRDFCaching(int cacheSize, LabelToNode labelMapping); @Override Node createURI(String uriStr); @Override Node createTypedLiteral(String lexical, RDFDatatype datatype); @Override Node createStringLiteral(String lexical); CacheInfo stats(); static final int DftNodeCacheSize; }
@Test public void factory_cache_02() { Node n1 = factory.createURI("http: Node n2 = factory.createURI("http: Node n3 = factory.createURI("http: assertSame(n1, n3); }