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? 

Johannes
 

> On Thursday, February 21, 2019 at 5:38:04 PM UTC, linas wrote:
>>
>> 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.  
>>
>> 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.
>>
>> 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
>>
>>
>> On Thu, Feb 21, 2019 at 7:13 AM Johannes Castner <[email protected]> 
>> wrote:
>>
>>> Well, so I'd like to be able to merge JSON-LD ontologies with obo 
>>> ontologies and owl ontologies, just the way that pronto does for owl and 
>>> obo (here's my branch of pronto where I've already began building some JSON 
>>> tools: https://github.com/jac2130/pronto).  Ultimately, I think that 
>>> loading in, merging and converting between ontology formats might be a 
>>> common enough activity and one that getting right is worth the effort, so 
>>> that it is worth the effort in having one tool that can load and convert 
>>> any ontology and then also one code that loads ontological information in 
>>> the most correct way possible into the AtomSpace.  It makes no sense to me 
>>> why there is one tool to load some genome ontology and another one to load 
>>> in ConceptNet--there should be one tool for loading various formats into 
>>> the AtomSpace and also that converts output from the opencog system back to 
>>> those common formats (in particular, JSON-LD), so that it can be used in 
>>> the usual way by other applications.  The other thing that seems 
>>> sub-optimal with this code is that it loads the CSV version rather than 
>>> engaging with the JSON-LD data directly.  Doing the latter would allow 
>>> effortlessly merging other JSON-LD data with ConceptNet and adding all of 
>>> that into the AtomSpace in a consistent way that can be improved and 
>>> interrogated in a clean way such that it applies to all ontologies in a 
>>> uniform way.  I'll be working on such code, lest you think it is a waste of 
>>> time?   
>>>
>>> johannes
>>>
>>> On Thursday, February 21, 2019 at 3:59:43 AM UTC, amebel@hr wrote:
>>>>
>>>> Hi Johannes*,*
>>>>
>>>> The script is found at 
>>>> https://github.com/opencog/external-tools/tree/master/cnet_importer
>>>>
>>>> On Thursday, February 21, 2019 at 12:45:22 AM UTC+8, Ben Goertzel wrote:
>>>>>
>>>>> We already have code that imports ConceptNet into Atomspace. 
>>>>>
>>>>> Amen has worked with it... 
>>>>>
>>>>> On Thu, Feb 21, 2019 at 12:43 AM Linas Vepstas <[email protected]> 
>>>>> wrote: 
>>>>> > 
>>>>> > I think that, for starters, importing the concept-net data into the 
>>>>> atomspace would be a good start. 
>>>>> > 
>>>>> > This would be a multi-step process: 
>>>>> > 1) import it any-old-how 
>>>>> > 2) import it such that the format is compatible with the existing 
>>>>> nlp subsystem 
>>>>> > 3) build some rudimentary question-answering system (on that can 
>>>>> only answer 1 or 2 or 3 question types, from the imported data 
>>>>> > 4) see if you can do anything whizzy with PLN 
>>>>> > 
>>>>> > I think I ordered this in terms of difficulty/complexity.  I think I 
>>>>> would be very interested in looking at, overseeing, advising steps 2,3... 
>>>>> > 
>>>>> > --linas 
>>>>> > 
>>>>> > On Wed, Feb 20, 2019 at 6:25 AM Johannes Castner <[email protected]> 
>>>>> wrote: 
>>>>> >> 
>>>>> >> Hi everyone, 
>>>>> >> 
>>>>> >> I think I might want to try to improve on the solution below using 
>>>>> opencog in some way.  In particular, maybe the solution could be improved 
>>>>> by first inferring some connections between ideas that are not 
>>>>> represented 
>>>>> in ConceptNet, from the ConceptNet data -- things that are likely also 
>>>>> true 
>>>>> but that are not expressed and then doing the embeddings on the more 
>>>>> complete graph.  Any thoughts?  How does one get to more metaphorical and 
>>>>> less explicit knowledge?  I find this endlessly fascinating! 
>>>>> >> 
>>>>> >> 
>>>>> http://blog.conceptnet.io/posts/2016/conceptnet-5-5-and-conceptnet-io/ 
>>>>> >> 
>>>>> >> -- 
>>>>> >> 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 [email protected]. 
>>>>> >> To post to this group, send email to [email protected]. 
>>>>> >> 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. 
>>>>> > 
>>>>> > 
>>>>> > 
>>>>> > -- 
>>>>> > cassette tapes - analog TV - film cameras - you 
>>>>> > 
>>>>> > -- 
>>>>> > 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 [email protected]. 
>>>>> > To post to this group, send email to [email protected]. 
>>>>> > 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/CAHrUA36%2BHSM3HOW_rU7yK_5hKw6i%3Dq%3DYYfQ8i0ogkqV%3DHUxU-Q%40mail.gmail.com.
>>>>>  
>>>>>
>>>>> > For more options, visit https://groups.google.com/d/optout. 
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> Ben Goertzel, PhD 
>>>>> http://goertzel.org 
>>>>>
>>>>> "Listen: This world is the lunatic's sphere,  /  Don't always agree 
>>>>> it's real.  /  Even with my feet upon it / And the postman knowing my 
>>>>> door / My address is somewhere else." -- Hafiz 
>>>>>
>>>> -- 
>>> 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 [email protected].
>>> To post to this group, send email to [email protected].
>>> 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/015836d5-524d-4905-b837-a48755afaa5f%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/opencog/015836d5-524d-4905-b837-a48755afaa5f%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> -- 
>> cassette tapes - analog TV - film cameras - you
>>
> -- 
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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/7a268f2d-38d5-4e24-8f7c-aded497845a9%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/opencog/7a268f2d-38d5-4e24-8f7c-aded497845a9%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> cassette tapes - analog TV - film cameras - you
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/792f91f6-6786-4b9a-b8ea-54ec382f398f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to