Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Expand not working if iri already found as leaf in nodes cache #7

Open
grtjn opened this issue May 30, 2019 · 0 comments
Open

Expand not working if iri already found as leaf in nodes cache #7

grtjn opened this issue May 30, 2019 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@grtjn
Copy link
Contributor

grtjn commented May 30, 2019

Keep track which nodes have been expanded, by adding this right after first sparql call:

  newIris.forEach(function(iri) {
    nodes[iri].expanded = true;
  });

And then use this to filter which iris need processing:

  if (!nodes[iri] || !nodes[iri].expanded) {
@grtjn grtjn added the bug Something isn't working label May 30, 2019
@grtjn grtjn self-assigned this May 30, 2019
@grtjn grtjn added this to the 0.1.2 milestone May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant