-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Suggestion] Better Documentation and Examples #50
Comments
Hi, @faciolihenrique . Can you give some suggestions of examples you are looking for beyond what's in the README? |
Sure! I would like a real example on how initialising a store using this library using one of the available options (sqlite/postgress etc) and showing a add operation over this graph and, after that, loading a graph stored on the database. I'm struggling on doing exactly that with sqlite. |
The README has a basic example and the graph_case tests perform basic operations on the graph. |
Using this documentation I've been trying to use it with SQLite in the follwing way:
With this, i'm able to add the triple and query the graph. The problem is that i'm not able to load it following the same code |
I'll try follwing the example on the test. Thank you for your help! |
Just for clarity ... |
Just for clarity, |
Looking at the above example (with a
|
Well, I tried a lot of ways of doing it. You can check my college repo code where I used it if it is clearer: https://github.com/knowlattesgraph/knowlattes/blob/737eeba7bb639e457f9b6387f85b6fe918ade4b3/src/knowlattes/graph.py#L208 I'm not proud of this code but it works |
Thanks @faciolihenrique I've finally got it working. I believe the problem was that the db seems to get written to only on the
and although |
Semi-related to #99: it's possible to import and use This can be easily deployed inside, for example, ReadTheDocs. In-memory sqlite works great, but persistent databases need a little bit of care, due to some special filesystem work that needs to be done (e.g. |
I came here (the documents) looking for the schema requirements and the theory. |
@dmoore247 |
It also works with views. |
I've been trying to use this module, it's very great, but the code is missing some good examples on how to use and some 101 documentation for beginners. It would be nice to add it to rdflib documentation.
The text was updated successfully, but these errors were encountered: