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, <vishnupriya...@gmail.com> 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 opencog+unsubscr...@googlegroups.com. > To post to this group, send email to opencog@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/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 opencog+unsubscr...@googlegroups.com. To post to this group, send email to opencog@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/CAHrUA36hDuPGgDBN51-sDgihTWe5HksZ831ddcP2dN-db77C7w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.