JESS: problem mapping from protege in jess

View: New views
3 Messages — Rating Filter:   Alert me  

JESS: problem mapping from protege in jess

by i34905 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hello all
my frustrating problem is that i can't get started with anythig,because i
can't map a class a class already created in protege...in jesstab ( i use
protege 3.4 with jess 7.21) i receive a message like :
  Jess reported an error in routine mapclass
       while executing (mapclass Person).  
          Message: Protege class not found: Person. But the class is
there,created already... strange enough,in the lab of my faculty it
naturally works just fine :)...I even tried to create a test class with
jesstab,then mapclass it, and it worked...but when i tried to access a
slot,it would find it ! For instance :

Jess> (deftemplate person(slot name)(slot age))
TRUE
Jess> (defclass P(is-a :THING)(slot name(type string))(slot age(type
integer)))
TRUE
Jess> (make-instance of P(name "John")(age 30))
Jess reported an error in routine make-instance
        while executing (make-instance of P (name "John") (age 30)).
  Message: Protege slot not found: name.
  Program text: ( make-instance of P ( name "John" ) ( age 30 ) )  at line
3.
Jess> (reset)
TRUE
Jess> (make-instance of P(name "John")(age 30))
Jess reported an error in routine make-instance
        while executing (make-instance of P (name "John") (age 30)).
  Message: Protege slot not found: name.
  Program text: ( make-instance of P ( name "John" ) ( age 30 ) )  at line
5.
Jess> (mapclass P)
P
Jess> (make-instance of P(name "John")(age 30))
Jess reported an error in routine make-instance
        while executing (make-instance of P (name "John") (age 30)).
  Message: Protege slot not found: name.
  Program text: ( make-instance of P ( name "John" ) ( age 30 ) )  at line
7.


What kind of error do i make?
Thx
--
View this message in context: http://www.nabble.com/problem-mapping-from-protege-in-jess-tp23508646p23508646.html
Sent from the Jess mailing list archive at Nabble.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@....
--------------------------------------------------------------------


Parent Message unknown Re: JESS: problem mapping from protege in jess

by Ernest Friedman-Hill :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On May 12, 2009, at 3:14 PM, i34905 wrote:
>
> What kind of error do i make?

I don't know, this is strange. So if you type

(ppdeftemplate object)

what do you get as a response?


---------------------------------------------------------
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@....
--------------------------------------------------------------------


Parent Message unknown Re: JESS: problem mapping from protege in jess

by Ana Tanasescu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Alin,
 
I have run your code on my computer and it works:
1. (deftemplate person(slot name)(slot age)) (my question is why did you create your template if later create a class I dont understand but this is not a mistake)
2. (defclass P(is-a :THING)(slot name(type string))(slot age(type
integer)))
3. (make-instance of P(name "John")(age 30))
4. (mapclass P)
5. (facts) (now I see your instance created in Protege)
 I work with Protege 3.3, Jesstab 1.6 and Jess 7.01p1.  I know that it is a new version of jesstab 7.102, but I didn't tested very well. 
What do you exactly want to do?
 
Ana
p.s. are you from romania?