Yes linas. I had a look. 
I got it working :-)
Thank you.

--Vishnu

On Wednesday, 28 September 2016 00:05:33 UTC+2, linas wrote:
>
> The cog-incoming-set will return all links that contain some given atom. 
> From this, you can build simple utilities that do what you want.  In fact, 
> many of those simple utilities have been built. See 
>  cog-get-partner cog-chase-link cog-get-link cog-get-pred cog-get-reference 
>  Look in the file here:
>
> https://github.com/opencog/atomspace/blob/master/opencog/scm/utilities.scm
>
> These are all pre-loaded, already so you can view documentation online by 
> sayying, for example   ,d cog-get-link  at the guile prompt, where  ,d is 
> short for ,describe   Note the leading comma.
>
> ,a is short for ,apropos and also works
>  
> --linas
>
> On Tue, Sep 27, 2016 at 9:15 AM, <[email protected] <javascript:>> 
> wrote:
>
>> Hello All,
>>
>> I want a query such that, 
>> when i have a particular concept node, it should return the list of 
>> concept nodes linked to it. 
>>
>> For eg:
>>
>> I have the following
>>
>> (EvaluationLink(PredicateNode "info ")(ListLink(ConceptNode  "[-77.0325, 
>> 38.8749]")(ConceptNode  "090")(ConceptNode  "Washington")(ConceptNode 
>>  "hello there")))
>>
>> (EvaluationLink(PredicateNode "info ")(ListLink(ConceptNode  "[-77.0325, 
>> 38.8749]")(ConceptNode  "090")(ConceptNode  "Montgomery")(ConceptNode 
>>  "want coffee ")))
>>
>> (EvaluationLink(PredicateNode "info ")(ListLink(ConceptNode  " 
>> ")(ConceptNode  "111")(ConceptNode  "Sydney")(ConceptNode  "pressure is 
>> about..")))
>>
>>
>> When i have ConceptNode "090", return all other concept nodes associated 
>> with it. something like below:
>>
>> [-77.0325, 38.8749], Washington, hello there
>> [-77.0325, 38.8749],  Montgomery,  want coffee
>>
>> How can i search? How to write a query for this ? 
>>
>> Thanks in advance.
>>
>> -- 
>> 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/250186a9-fb14-46fc-a274-9e4d75b5350b%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/opencog/250186a9-fb14-46fc-a274-9e4d75b5350b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/16839799-6c9f-4540-9432-24eb9de7c15f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to