|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
JESS: problem mapping from protege in jesshello 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@.... -------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
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?
|
| Free embeddable forum powered by Nabble | Forum Help |