« Return to Thread: JESS: problem mapping from protege in jess

JESS: problem mapping from protege in jess

by i34905 :: Rate this Message:

Reply to Author | View in Thread


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

 « Return to Thread: JESS: problem mapping from protege in jess