Empty predicates names in reasoner

0 views
Skip to first unread message

temp...@gmail.com

unread,
Feb 5, 2016, 1:05:18 PM2/5/16
to Stardog
Hi all!

I'm using stardog reasoning SL and put rules to database.
When i send query to Stardog [SELECT * WHERE {?s ?p ?o}],
i'm receive results with empty predicates. How do i get names of inferred predicates?

Example of a table with empty predicates:


Sorry for my bad english :)

Michael Grove

unread,
Feb 5, 2016, 1:40:58 PM2/5/16
to stardog
Can you provide the data that reproduces this behavior?

Cheers,

Mike
 

Sorry for my bad english :)

--
-- --
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

temp...@gmail.com

unread,
Feb 5, 2016, 1:50:10 PM2/5/16
to Stardog
I have a problem with any data.

Example in docs:

PREFIX rule: <tag:stardog:api:rule:> PREFIX : <urn:test:> :c a :Circle ; :radius 10 . :t a :Triangle ; :base 4 ; :height 10 . :r a :Rectangle ; :width 5 ; :height 8 . :s a :Rectangle ; :width 10 ; :height 10 . [] a rule:SPARQLRule ; rule:content """ PREFIX :<urn:test:> IF { ?r a :Rectangle ; :width ?w ; :height ?h BIND (?w * ?h AS ?area) } THEN { ?r :area ?area }""" . [] a rule:SPARQLRule ; rule:content """ PREFIX :<urn:test:> IF { ?t a :Triangle ; :base ?b ; :height ?h BIND (?b * ?h / 2 AS ?area) } THEN { ?t :area ?area }""" . [] a rule:SPARQLRule ; rule:content """ PREFIX :<urn:test:> PREFIX math: <http://www.w3.org/2005/xpath-functions/math#> IF { ?c a :Circle ; :radius ?r BIND (math:pi() * math:pow(?r, 2) AS ?area) } THEN { ?c :area ?area }""" . [] a rule:SPARQLRule ; rule:content """ PREFIX :<urn:test:> IF { ?r a :Rectangle ; :width ?w ; :height ?h FILTER (?w = ?h) } THEN { ?r a :Square }""" .

пятница, 5 февраля 2016 г., 21:40:58 UTC+3 пользователь Michael Grove написал:

Evren Sirin

unread,
Feb 5, 2016, 3:56:50 PM2/5/16
to Stardog
This is a bug. It happens when the property is used only in rules but
not anywhere else. We'll fix this but for now just make sure
proeprties are defined outside the rules too. For example, adding the
triple

:area a owl:DatatypeProperty .

would fix the problem for this example.

Best,
Evren

Alexander Temp

unread,
Feb 6, 2016, 1:08:08 AM2/6/16
to sta...@clarkparsia.com
Thanks for solving my problem.

You received this message because you are subscribed to a topic in the Google Groups "Stardog" group.
To unsubscribe from this topic, visit https://groups.google.com/a/clarkparsia.com/d/topic/stardog/-7TnH-gLE4s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stardog+u...@clarkparsia.com.


Reply all
Reply to author
Forward
0 new messages