Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-985

Iterate using Apache Jena ExtendedIterator on Graph with big amount of triples

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: Jena 2.13.0
    • Fix Version/s: Jena 3.0.1
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Description

      I'm generating Apache Jena Graph from DBpedia dumps and now I want iterate through all "dbpedia-owl:abstract".
      So I do something like this:

          ExtendedIterator<Triple> iterator = Graph.find(Node.ANY, NodeFactory.createURI("dbpedia-owl:abstract"), Node.ANY);
      

      But then I try to iterate, memory consumption is increased, so looks like "ExtendedIterator" store found nodes.
      I use VisualVM profiler and found that while I iterate, count of "com.hp.hpl.jena.graph.Node_URI" is increasing.
      I try to do "iterator.reset()" but this takes no effect.

      Is this bug or feature?

      Can I iterate through all DBpedia abstracts without storing nodes and without increasing consumption of memory that gc can't freed?

      Sorry for my bad english.

        Attachments

          Activity

            People

            • Assignee:
              andy Andy Seaborne
              Reporter:
              Hronom Yevhen Tienkaiev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: