--
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+u...@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/6d4023ae-f227-4be4-b123-5482e0b154bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/015836d5-524d-4905-b837-a48755afaa5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I can ask ConceptNet "what is an instrument?" because ConceptNet knows about "words" and "concepts". But that question makes no sense for a genome database.Johannes,Data formats never exist outside of what you want to do with it. Consider a question-answering system hooked to ConceptNet. You ask, "what is an instrument?" and it says "thermometer, violin". Two things have to happen here: first you have to analyze the English-language sentence to figure out what the question actually is, and then you have to convert the question into query that matches the format of your data. If your data is a table, then the query is very different than if your data is a tree ... and different if its a directed acyclic graph (DAG) .. or a non-directed graph, with cycles, with or without labels, ... whatever. Each one requires a different query.
The above is just for question-answering. If you want to do somethin1g else: reasoning, or statistics gathering, then .. all-change. Sometimes tables are better, sometimes DAG's are better. Formats matter, they have to fit with what you're doing. There's no one ring to rule them all.--linas
Hi Linas,I have a two questions:1) I have an issue with persistence. I'm essentially mixing usage of Scheme and python. This is important because there are some nice tools in python to prepare import of knowledge into the AtomSpace and I'm trying to extend them a bit. So in python I use:from opencog.utilities import initialize_opencog
from opencog.scheme_wrapper import scheme_evalfrom opencog.type_constructors import *atomspace = AtomSpace()
initialize_opencog(atomspace)
----------------------------------------------but then that atomspace isn't persistent. For persistence, I have this in Scheme:(sql-open "postgres://opencog_tester:cheese@localhost/opencog_test")
(sql-store)
(define x (ConceptNode "asdfasdf" (stv 0.123 0.789)))
(store-atom x)
(sql-close)How do I mix these two ways of doing things, if that's possible at all?
2) So ontologies all seem to me to have the same exact structure; they are labeled graphs where some edges are directed and others are not. For my experiments, I tend to want to put ontologies into the AtomSpace--so shouldn't there just be one set of tools to use on ontologies, rather than having one script to import one ontology and then another to import another one. Take for example the ENVO ontology; it comes in owl or obo format. Then take ConceptNet and it comes in JSON-LD. But since the structure is the same for all ontologies, I feel that it would help to have one tool that translates between these formats so that they can be merged and treated the same?
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/7a268f2d-38d5-4e24-8f7c-aded497845a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Scheme and python already share the same atomspace. However, when you did the following in python:atomspace = AtomSpace()
initialize_opencog(atomspace)you created a new, different atomspace that is not shared. These two steps are not needed. There are also other ways of working with multiple atomspaces and passing them between scheme and python, but simply skipping the above is just the simplest.
Hi Linas,
Scheme and python already share the same atomspace. However, when you did the following in python:atomspace = AtomSpace()
initialize_opencog(atomspace)you created a new, different atomspace that is not shared. These two steps are not needed. There are also other ways of working with multiple atomspaces and passing them between scheme and python, but simply skipping the above is just the simplest.But scheme_eval needs an atomspace in the first position: scheme_eval(atomspace, schemecode_string)What do I put into the first argument of this function if not a brand new Atomspace?
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/792f91f6-6786-4b9a-b8ea-54ec382f398f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/CAHrUA34iBg96pYorQb%2BWfeDiyq%2BFw%2BozCOn_g0XL5kkTvvyVHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.