GithubHelp home page GithubHelp logo

Comments (3)

simongray avatar simongray commented on June 18, 2024

Once other complication is that copying the inferred triples from an InfModel to a TDB graph takes up a great deal of memory, e.g.

(def persisted-inf
  (-> dannet
      :db-path "resources/tdb2-inf"
      :db-type :tdb2))

(q/transact (:model persisted-inf)
  (.add (:model persisted-inf) model))

Attempting the above using the default (I think 4GB) heap space results in a an out of memory error when the model uses OWL micro inferencing.

This will need to be resolved, so that it becomes possible to infer all possible triples of some snapshot of the base graph and populate a second graph - likely a TBD, to ensure persistence - with all of the inferred data.

from dannet.

simongray avatar simongray commented on June 18, 2024

Increasing to 8GB max heap space also yielded an OutOfMemoryError when copying all triples from an InfModel to an empty TDB 2 model. It seems that unless the sweet spot is slightly above 8GB, preserving all of the triples inferred by OntModelSpec/OWL_MEM_MICRO_RULE_INF is simply out of the question.

I also tried the operation using an RDFS inference model and this completes in a very short time, likely due to little-to-no actual inference taking place. Unfortunately, there is no ready-made OntModelSpec that only infers opposite relations which is the primary need I have.

from dannet.

simongray avatar simongray commented on June 18, 2024

I initially implemented a custom Reasoner based on the OWLMicroReasoner class with a custom .rules file and closed the issue in that commit, but it turns out that no Java code is necessary, as one can simply instantiate a GenericRuleReasoner to apply the same custom rule set: fb7329d

from dannet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.