Guys, just wanted to point out this possibly relevant example

https://github.com/opencog/opencog/tree/master/examples/pln/which-product

Nil

On 02/12/2017 06:22 AM, Ben Goertzel wrote:
A more typical idiom would be

EvaluationLink
     PredicateNode "Price"
     ListLink
          ConceptNode "18 oz. jar Skippy peanut butter"
          QuantityNode "$7"

or e.g.

ContextLink
     AndLink
            ConceptNode "Addis Ababa"
            TimeNode "2017"
     EvaluationLink
            PredicateNode "Price"
            ListLink
                  ConceptNode "18 oz. jar Skippy peanut butter"
                  QuantityNode "$7"


If we want to say that every peanut butter jar has a price, we could say

ForAllLink $X
     ImplicationLink
           InheritanceLink
                $X
                ConceptNode "peanut butter jar"
           ThereExistsLink $P
                EvaluationLink
                       PredicateNode "Price"
                       ListLink
                               ConceptNode $X
                               QuantityNode $P

   and we could also make an abstraction using DefineLink that would let us say

EvaluationLink
      DefinedPredicateNode "hasQuantitativeProperty"
      ListLink
             ConceptNode "peanut butter jar"
             PredicateNode "price"

where the

      DefinedPredicateNode "hasQuantitativeProperty"
      ListLInk
             $Con
             $Prop

is set up with DefineLink to mean

ForAllLink $X
     ImplicationLink
           InheritanceLink
                $X
                ConceptNode $Con
           ThereExistsLink $P
                EvaluationLink
                       PredicateNode $Prop
                       ListLink
                               ConceptNode $X
                               QuantityNode $P

So I guess

      DefinedPredicateNode "hasQuantitativeProperty"

is the syntactic sugar you're looking for, maybe, but you would have to build it
(apologies the above syntax is not exact...)

ben

On Sat, Feb 11, 2017 at 3:07 PM, Alex <[email protected]> wrote:
Hi!

Should I write:
  OwnerPartLink Good Price
Or is some syntactic sugar available especially for those kinds of link?

--
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/355d434e-0713-4a9c-802d-f2082c28fc37%40googlegroups.com.
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/6bf212dc-bc2b-ccf4-57a2-c0b11f22b305%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to