There are many ways of doing this.  The simplest one is probably this:

(EvaluationLink
     (PredicateNode "Vishnu's special ID43")
     (InheritanceLink (stv 0.9 0.9)
          (ConceptNode "Einstein")
          (ConceptNode "man"))))

which is conceptually the same thing as

(VishnuSpecialLink
    (PredicateNode "ID43")
    (InheritanceLink (stv 0.9 0.9)
       (ConceptNode "Einstein")
       (ConceptNode "man"))))

--linas

On Tue, Mar 14, 2017 at 10:35 PM, Vishnu Priya <vishnupriya...@gmail.com>
wrote:

> Hi,
>
> I tried DefineLink. But the problem is i can define my ID only once. Since
> it is used to give an unique name.
>
> (DefineLink
> (DefinedSchemaNode "ID1")
> (InheritanceLink (stv 0.9 0.9)
>     (ConceptNode "Einstein")
>     (ConceptNode "man")))
>
> (DefineLink
> (DefinedSchemaNode "ID1")
> (ListLink
>     (ConceptNode "Peirce")
>     (ConceptNode "man")))
>
> I cannot do the above assigning  same IDs in two different places. It
> throws an Exception saying  ID1 is already defined.
>
> Is there exists something,  so that i can handle such situation?
>
> Thanks,
> Vishnu
>
>
>
>
>
>
>
>> --
> 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/69e9f165-15f6-40e8-b8a9-5f5fde4a24a1%40googlegroups.com
> <https://groups.google.com/d/msgid/opencog/69e9f165-15f6-40e8-b8a9-5f5fde4a24a1%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/CAHrUA36YAb20Zr%2Bu9SrGwqOFcH5vFfdVV1eg59XCycww%2BGuYvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to