« Return to Thread: JESS: object and instance in jess

Re: JESS: object and instance in jess

by Rose S :: Rate this Message:

Reply to Author | View in Thread

Hi,
my problem is in jessTab (in protege).in my ontology I have a slot that it's type is Class.
In a rule I declare the name of a class and it return me value of another slot in that object..but when I declare name of class in LHS it can not recognize it as a object(or Class name)


--- On Fri, 26/6/09, Ernest Friedman-Hill <ejfried@...> wrote:

From: Ernest Friedman-Hill <ejfried@...>
Subject: Re: JESS: object and instance in jess
To: "jess-users" <jess-users@...>
Date: Friday, 26 June, 2009, 8:06 PM


On Jun 19, 2009, at 1:44 AM, Rose S wrote:

> Hi,
> I have 2 questions:
> 1.in an instance of a class which has a slot with multiple cardinality
> how can I access and act on each value?

Search for "multifields" in the Jess manual chapter on writing rules.

>
> 2.how can I specify that a name is the name of a class in protege?
> for example in this command:
> (defglobal ?*dn* = Androgenic)
> How can declare that Androgenic is the name of a class?
>

Jess wouldn't care about this, so you'd have to be more specific: declare that it's the name of a class for the benefit of what? In other words, after you've made this declaration, what do you want to have happen?


---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences          Phone: (925) 294-2154
Sandia National Labs
PO Box 969, MS 9012                            ejfried@...
Livermore, CA 94550                             http://www.jessrules.com





--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users you@...'
in the BODY of a message to majordomo@..., NOT to the list
(use your own address!) List problems? Notify owner-jess-users@....
--------------------------------------------------------------------



New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!

 « Return to Thread: JESS: object and instance in jess