Execute SWRL rules using command line

5 views
Skip to first unread message

harshal patni

unread,
Nov 4, 2014, 1:08:20 AM11/4/14
to sta...@clarkparsia.com
Hello Everyone,
           I am new to Stardog. I have written a SWRL query (that does not make sense.. just for test). When I run the query using command line it gives an error - 

Command Line query - ./stardog query "testJena;reasoning=SL" "ClassTest1(?x), DPTest1(?x, "Test") -> ClassTest2(?x)"

Error - Not a valid query string or a file: ClassTest1(?x), DPTest1(?x, Test) -> ClassTest2(?x)


DB Name - testJena

Reasoning Type - SL (I think this includse SWRL queries as well)


Query explanation - All I am trying to say is that "if an instance of ClassTest1 has PropertyName 'Test'  then it should also be an instance of ClassTest2"


Could somebody help me resolve this issue? Am I making a mistake in the SWRL format


Thanks in advance,

Harsh






Mike Grove

unread,
Nov 4, 2014, 6:45:31 AM11/4/14
to stardog
On Tue, Nov 4, 2014 at 1:08 AM, harshal patni <patni....@gmail.com> wrote:
Hello Everyone,
           I am new to Stardog. I have written a SWRL query (that does not make sense.. just for test). When I run the query using command line it gives an error - 

Command Line query - ./stardog query "testJena;reasoning=SL" "ClassTest1(?x), DPTest1(?x, "Test") -> ClassTest2(?x)"

Error - Not a valid query string or a file: ClassTest1(?x), DPTest1(?x, Test) -> ClassTest2(?x)


Stardog only accepts SPARQL queries.

You might consider reading the chapter in the documentation [1] that explains how to use rules in Stardog.

Cheers,

Mike


DB Name - testJena

Reasoning Type - SL (I think this includse SWRL queries as well)


Query explanation - All I am trying to say is that "if an instance of ClassTest1 has PropertyName 'Test'  then it should also be an instance of ClassTest2"


Could somebody help me resolve this issue? Am I making a mistake in the SWRL format


Thanks in advance,

Harsh






--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

Reply all
Reply to author
Forward
0 new messages