Comments (3)
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.
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.
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)
- Inline display of alternative language labels
- Bad DDO source relations
- Privacy page HOT 1
- Accessibility statement
- http -> https prefix conversion issue
- downloads not working in Chrome HOT 2
- Integers converted to Longs in DDS dataset HOT 1
- Missing prefix emblem
- Links to ordnet.dk
- Language negotiation error HOT 1
- Markdown links should HOT 1
- Redirect to project page HOT 2
- Annotate COR words with correctness status
- Tutorials HOT 3
- Broken scroll-to-id in SPA
- Settings panel
- Include CC licence directly in zip downloads
- Download link gone on smaller screen sizes
- SPARQL and/or visual query interface
- Labels for OEWN senses, words, and synsets HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dannet.