String between jess and java?

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

String between jess and java?

by hed23 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi;

i have a KB in jess format ,each fact is definate like that :
(MAIN::triple
(predicate "http://www.owl-ontologies.com/unnamed.owl#CODE_PARENT_GEOGRAPHIQUE")
(subject "http://www.owl-ontologies.com/unnamed.owl#_30M_Instance_70")
(object "30M"))

that 's my query :

(defquery search-by-systeme  
"Finds Systeme with a given name"    
(declare (variables ?Ob))
(triple (predicate ?Pr) (subject ?Sb) (object ?Ob)))

to make a query to this KB , i use java ;but a problem is when i run my query
QueryResult result1 = engine.runQueryStar("search-by-systeme", new ValueVector().add("30M"));

it dont give me any result .i know that a mistake is in argement values "30M".

so,can u help me plz ?

tks