Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lsq Enrichment gets stuck when adding many items to an RDF-backed List #47

Open
Aklakan opened this issue May 8, 2023 · 0 comments
Open

Comments

@Aklakan
Copy link
Member

Aklakan commented May 8, 2023

List<LsqTriplePattern> bgpTps = bgpCtxRes.getTriplePatterns();
// This variant has to traverse the RDF list on every add
for(org.spinrdf.model.Triple tp : e.getValue()) {
// System.err.println("TP:" + tp);
    bgpTps.add(tp.as(LsqTriplePattern.class)); // ISSUE: bgpTps is a view over an RDF List; each add has to iterate all items
}

The solution is to use bgpTps.addAll() - FilteredList in aksw-commons 0.9.6 has been optimized for this case.

Aklakan added a commit that referenced this issue May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant