UnifiedViews / Core

UnifiedViews
https://www.poolparty.biz/agile-data-integration
Other
30 stars 7 forks source link

Issue with LazyIterator over RDFDataUnits #605

Closed tomas-knap closed 7 years ago

tomas-knap commented 7 years ago

It may return the same entry more times!

The problem is with RDFDataUnitIterationLazy:

result = connection.getStatements(null, connection.getValueFactory().createURI(MetadataDataUnit.PREDICATE_SYMBOLIC_NAME), null, false, backingStore.getMetadataGraphnames().toArray(new URI[0]));

Suppose there are two contexts (read context), one empty (e.g. that could be imitated by having SparqlExtractor, which gives output to t-sparqlUpdate). For some strange reason, during preparing data unit for t-sparqlUpdate, this returns single data entry twice (? for each context?)

tomas-knap commented 7 years ago

Workaround: Use eager iterator