You've written the rule as if there's a "Customer" template with a
slot named "customer-id". I don't see where such a template is defined
anywhere; I see the classic JessTab "object" templates, and that's
about it. The error message means that Jess thinks Customer is an
ordered fact, and the "(" character that begins the customer-id slot
is an unexpected character, a "bad slot value". I think Jess 7 gives a
better error message here, something that explicitly says that ordered
facts don't have slots.


 I think vsingh wrote:
[Charset utf-8 unsupported, filtering to ASCII...]
> 
> Here is what i menat to say......Can you help me debug the error...this will
> help me clear my concept...thanks
> 
> 
> 
> 
> 
> 
> Heres the o/p of JTab 
> 
> 
> 
> (facts)
> f-0   (MAIN::object (is-a Product) (is-a-name "Product") (OBJECT
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLIndividual>)
> (rdfs:label ) (owl:versionInfo ) (rdfs:comment ) (rdfs:member ) (:NAME
> "Monitor") (rdfs:isDefinedBy ) (rdfs:seeAlso ) (owl:differentFrom )
> (owl:sameAs ) (rdf:value ) (protege:inferredType ) (rdf:type
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLNamedClass>)
> (ObjectProperty_22 ) (hastype ) (ObjectProperty_32 ) (price 100)
> (productname "Monitor") (haspartnumber 1002) (category "Computer Parts")
> (requires ))
> f-1   (MAIN::object (is-a Product) (is-a-name "Product") (OBJECT
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLIndividual>)
> (rdfs:label ) (owl:versionInfo ) (rdfs:comment ) (rdfs:member ) (:NAME
> "Desktop") (rdfs:isDefinedBy ) (rdfs:seeAlso ) (owl:differentFrom )
> (owl:sameAs ) (rdf:value ) (protege:inferredType ) (rdf:type
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLNamedClass>)
> (ObjectProperty_22 ) (hastype ) (ObjectProperty_32 ) (price 500)
> (productname "Desktop") (haspartnumber 1001) (category "Computer Assembly")
> (requires
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLIndividual>))
> f-2   (MAIN::object (is-a Customer) (is-a-name "Customer") (OBJECT
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLIndividual>)
> (rdfs:label ) (owl:versionInfo ) (rdfs:comment ) (rdfs:member ) (:NAME
> "TomBell") (rdfs:isDefinedBy ) (rdfs:seeAlso ) (owl:differentFrom )
> (owl:sameAs ) (rdf:value ) (protege:inferredType ) (rdf:type
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLNamedClass>)
> (ObjectProperty_22 ) (hastype ) (ObjectProperty_32 ) (address nil) (name
> "Tom Bell") (ID 1003) (hasSalesOrder
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLIndividual>))
> f-3   (MAIN::object (is-a SalesOrder) (is-a-name "SalesOrder") (OBJECT
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLIndividual>)
> (rdfs:label ) (owl:versionInfo ) (rdfs:comment ) (rdfs:member ) (:NAME
> "SalesOrder1004") (rdfs:isDefinedBy ) (rdfs:seeAlso ) (owl:differentFrom )
> (owl:sameAs ) (rdf:value ) (protege:inferredType ) (rdf:type
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLNamedClass>)
> (ObjectProperty_22 ) (hastype ) (ObjectProperty_32 ) (OrderNumber 1004)
> (belongstoCustomerID
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLIndividual>))
> f-4   (MAIN::object (is-a LineItem) (is-a-name "LineItem") (OBJECT
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLIndividual>)
> (rdfs:label ) (owl:versionInfo ) (rdfs:comment ) (rdfs:member ) (:NAME
> "LineItem1") (rdfs:isDefinedBy ) (rdfs:seeAlso ) (owl:differentFrom )
> (owl:sameAs ) (rdf:value ) (protege:inferredType ) (rdf:type
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLNamedClass>)
> (ObjectProperty_22 ) (hastype ) (ObjectProperty_32 ) (quantity 1)
> (partnumber 1002) (belongstoOrderNumber
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLIndividual>)
> (belongstoID
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLIndividual>))
> f-5   (MAIN::object (is-a Recommend) (is-a-name "Recommend") (OBJECT
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLIndividual>)
> (rdfs:label ) (owl:versionInfo ) (rdfs:comment ) (rdfs:member ) (:NAME
> "RecommendTomBell") (rdfs:isDefinedBy ) (rdfs:seeAlso ) (owl:differentFrom )
> (owl:sameAs ) (rdf:value ) (protege:inferredType ) (rdf:type
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLNamedClass>)
> (ObjectProperty_22 ) (hastype ) (ObjectProperty_32 ) (because ) (hasType
> nil) (toOrderNumber
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLIndividual>)
> (topartnumber
> <External-Address:edu.stanford.smi.protegex.owl.model.impl.DefaultOWLIndividual>))
> For a total of 6 facts.
> 
> 
> Jess> (defmodule recommend)
> TRUE
> Jess> (defrule recommend-ipod-nano (Customer (customer-id ?id)) (not ( and
> (SalesOrder (order-number ?SalesOrder)(customer-id ?id)) (LineItem
> (order-number ?SalesOrder)(part-number ?Product)) (product (part-number
> ?Product)(name ___ipod nano___)))) => (assert (recommend (order-number
> ?SalesOrder)(part-number ?Product)))) 
> Jess reported an error in routine Jesp.parsePattern.
>   Message: Bad slot value .
>   Program text: ( defrule recommend-ipod-nano ( Customer (  at line 31.
>       at jess.Jesp.a(Unknown Source)
>       at jess.Jesp.a(Unknown Source)
>       at jess.Jesp.if(Unknown Source)
>       at jess.Jesp.do(Unknown Source)
>       at jess.Jesp.int(Unknown Source)
>       at jess.Jesp.for(Unknown Source)
>       at jess.Jesp.parse(Unknown Source)
>       at jess.Jesp.parse(Unknown Source)
>       at jess.Main.execute(Unknown Source)
>       at JessTab.JessTabEngine.run(JessTabEngine.java:114)
>       at java.lang.Thread.run(Unknown Source)
> 
> 
> 
> 
> 
> what does this mean........pls help....
> 
> 
> vsingh wrote:
> > 
> > Hi there,
> > 
> > I was going through JIA (recommender application) and was wondering how
> > can I go about trying to implement a similar app if I want to use the
> > exisisitng kb in protege for an e-commerece application.Can you plase give
> > me some step by step pointer...that will surely help....
> > 
> > thnaks
> > vaishali
> > 
> > 
> > 
> > friedman_hill ernest j wrote:
> >> 
> >> I think vsingh wrote:
> >> [Charset utf-8 unsupported, filtering to ASCII...]
> >>> 
> >>> Hi all,
> >>> 
> >>> I have the following doubts.Please help.
> >>> 
> >>> 1.How to use jess tab in console mode?
> >> 
> >> Don't think you can, can you? It's a GUI tool.
> >> 
> >>> 2.While trying to import protege KB for further inferencing using Jess
> >>> ,do I
> >>> need to create templates, if I am using mapclass?
> >>> 3.Since templstes defined in MAIN are the ones that are used in all
> >>> modules___.how can I use mapclass so that that information is used in
> >>> all
> >>> moduels too?
> >>> 4.How can I print out an output(inferred knowledge) back to user using
> >>> the
> >>> JessTab?
> >>> 
> >> 
> >> The Wiki page on JessTab collects some information about how ti get
> >> JessTab questions answered:
> >> 
> >> http://www.jessrules.com/jesswiki/view?JessTab
> >> 
> >> ---------------------------------------------------------
> >> Ernest Friedman-Hill  
> >> Advanced Software Research          Phone: (925) 294-2154
> >> Sandia National Labs                FAX:   (925) 294-2234
> >> PO Box 969, MS 9012                 [EMAIL PROTECTED]
> >> Livermore, CA 94550         http://herzberg.ca.sandia.gov
> >> --------------------------------------------------------------------
> >> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> >> in the BODY of a message to [EMAIL PROTECTED], NOT to the list
> >> (use your own address!) List problems? Notify
> >> [EMAIL PROTECTED]
> >> --------------------------------------------------------------------
> >> 
> >> 
> >> 
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/ASAP-JessTab-and-ProtegeKB-tf2110709.html#a5822695
> Sent from the Jess forum at Nabble.com.
> --------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the list
> (use your own address!) List problems? Notify [EMAIL PROTECTED]
> --------------------------------------------------------------------
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to