Using Python I managed to make myself a kind of dictionary of terms and their meaning and it’s rather big – x00,000 items (can’t estimate right now as they are stored in multiple files by first letter).
Files are pickled dictionary objects with this structure:
dict{word, (attribute,
kind,
[meanings],
[examples],
[connections]
)
}
If it matters it’s Python dictionary object, with key as string and value as tuple, and then this tuple consists of either string or list objects.
Now I plan to put them all in sqlite3 database as it’s easy with Python. Before I do that I thought to ask for advice if sqlite3 if good choice as I’ve never done any real database task before.
I know that answer depends of what I want to do with this data (besides it’s structure), but let’s say I just want it to be stored locally in one place (file) and be reasonable easy to access (query) and possibly transform.
Yes, I’ve used sqlite3 for this kind of thing. The dictionary values had to first be pickled though:
The above will keep you database in a single file. You can navigate the object like a regular python dictionary. Since the values are pickled in a single field, sqlite won’t give you any additional query options. Other flatfile storage will have similar restrictions. If you need to write queries that traverse a hierarchical structure, consider using a NoSQL database instead.