Comments (3)
Hard to say for sure without your source data why your database file is as large as it is. I did a test of adding exactly 10,000 triples with 10,000 distinct subjects, 100 distinct predicates, and 1000 distinct objects and got a DB file size of 4.7MB. Repeated with all distinct sub, pred, obj and that only increased to 4.8 MB. I'm able to increase that to 19MB+ just by using longer URIs.
sqlite3 version: 3.32.2
Python version: 3.7.4
rdflib-sqlalchemy version: 0.4.0
from rdflib-sqlalchemy.
Thanks for the quick response @mwatts15 - there certainly might be some long(ish) URIs in my data. I'm wondering if there are any indexing options available to mitigate this problem?
from rdflib-sqlalchemy.
If by options you mean a flag you can specify that will create a table mapping strings to more compact identifiers, there is no such thing in rdflib-sqlalchemy, nor, as far as I have seen, is there any sqlite extension that does something similar. If you would like to implement such a feature, I would certainly be open to merging it.
from rdflib-sqlalchemy.
Related Issues (20)
- Violent deprecation warnings vs sqlalchemy 1.4.46 HOT 12
- 0.5.3: pytest is failing in 11 units HOT 3
- Maintainer Request HOT 17
- Extra "test" subdirectory in tests ? HOT 1
- Drop support for old Python versions HOT 6
- Build error for Python 2.7 for MySQL HOT 1
- Engine.has_table() method is deprecated HOT 1
- addN returns how many triples were actually added? HOT 2
- Loading a large ontology using PostgreSQL as the backend results in BTREE index error HOT 2
- How to query the database? HOT 2
- Cryptic `KeyError: LUUU` when adding an invalid triple into a graph HOT 1
- Failure when trying to search for a triple where object is a Literal with a language tag HOT 1
- When does a transaction start? HOT 1
- 0.5.0: test suite is usimg `nose` HOT 4
- Performance warning HOT 5
- N3 Formula <-> SQLAlchemy Store error HOT 3
- 0.5.3: sphinx warnings `reference target not found` HOT 3
- N3 formula/rule persistence not idempotent HOT 7
- docstring for the `configuration` argument of `rdflib_sqlalchemy.store.SQLAlchemy` seems wrong HOT 1
- Adding graph_aware for `rdflib.Dataset`
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 rdflib-sqlalchemy.