On 30/07/14 10:54, Wang Darrell wrote:
Hi there
I want to add some rules to jena.
Here is my "act.rules"
*@PREFIX yago: <http://yago-knowledge.org/resource/
@prefix, not @PREFIX
Andy
<http://yago-knowledge.org/resource/>>.*
*[rule1:*
*(?x yago:actedIn yago:Boycott_(film)) *
*-> *
*(?x yago:is yago:Actor)]*
then , Jena give me the following error message.
Expected '(' at start of clause, found yago:
At '@PREFIX yago: '
--------------------------------------------------------------------------
So I add the () to the first line which looks like
*(@PREFIX yago: <http://yago-knowledge.org/resource/
<http://yago-knowledge.org/resource/>>.)*
*[rule1:*
*(?x yago:actedIn yago:Boycott_(film)) *
*-> *
*(?x yago:is yago:Actor)]*
and there is another error message :
Unrecognized qname prefix (yago) in rule
I can't understand what the error come froe .
I just google "jena add rule" and see some example , following their code.
Hoping I can have a resolution and understand the problem here.
Thanks you.