Skip to content
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

Would be easiest to use BackingStore #1

Open
linas opened this issue Jun 29, 2022 · 0 comments
Open

Would be easiest to use BackingStore #1

linas opened this issue Jun 29, 2022 · 0 comments

Comments

@linas
Copy link
Member

linas commented Jun 29, 2022

I'm assuming you've lost interest in this, but .. just in case you ever plan to come back to it, I thought I'd leave some comments.

Instead of doing what you're doing here, I think there's an easier way, easier, at least, if you have access to C++ bindings to prolog. That would be to implement the get and set functions in this file: https://github.com/opencog/atomspace/blob/master/opencog/persist/api/BackingStore.h
That file has like a dozen calls in it, but only about six are really key; the others can be skipped.

There are two (actually five ...) examples of how do do this. The most readable examples are these two:
https://github.com/opencog/atomspace-rocks/tree/master/opencog/persist/monospace
and
https://github.com/opencog/atomspace-cog/tree/master/opencog/persist/cog-simple

Besides the above, I can offer general brainstorming services, e-mail me if you ever get interested again. I mean, there are also lots of other ways to do this, too...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant