Updates to REST API

33 views
Skip to first unread message

Ben Goertzel

unread,
Jun 17, 2017, 1:53:33 AM6/17/17
to opencog
In a private discussion on a commercial project, Linas noted to me in regard to

http://wiki.opencog.org/w/REST_API

that the REST API can use some updating... to wit:

-- that API is no longer consistent with the changes to attention
values from Misgana's work.

-- That API also doesn't support the new values subsystem, which makes
it less useful/interesting than it otherwise could be.

-- listing the incoming set as part of the atom is going to hurt
efficiency, for larger datasets.

As we are using the REST API for the Atomspace Visualizer and the Mozi
demo, it will be useful to make sure it's updated pretty soon...

thanks
ben



--
Ben Goertzel, PhD
http://goertzel.org

"I am God! I am nothing, I'm play, I am freedom, I am life. I am the
boundary, I am the peak." -- Alexander Scriabin

Misgana Bayetta

unread,
Jun 17, 2017, 5:45:28 AM6/17/17
to opencog
The REST API has two request handlers with regards to the attention system: One fetches the set of atoms having STI values within a certain range and the other one returns all atoms in the attentional focus. Both of these functionalities are not affected by the recent changes I made.

BTW, I had been wondering if a gradual replacement of the current REST API with a guile one could be beneficial, since guile atomspace API is less buggy and well maintained than the python one. There is a nice guile rest api library here  http://web-artanis.com/; It is under the GNU project.       

--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/CACYTDBf_L%3D1T4yy5RSWADCie2Vu1JNSjeoqK%3DADNHEqfbKArKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Belachew Misgana Bayetta
'For everyone who asks receives, and the one who seeks finds, and to the one who knocks it will be opened ' --Jesus
'The future belongs to those who believe in the beauty of their dreams' --Eleanor Rusvelt

Linas Vepstas

unread,
Jun 17, 2017, 3:31:53 PM6/17/17
to opencog
Huh. A rest api for guile. I like that!

I think the current rest API still treats STI as a short integer, and vlti as a boolean flag; but I thought you had moved to floats for all three of these, right?

--linas

Reply all
Reply to author
Forward
0 new messages