More SWRL rule errors

0 views
Skip to first unread message

Andrea Westerinen

unread,
Dec 3, 2014, 12:58:16 PM12/3/14
to sta...@clarkparsia.com
I defined the SparqlRule and statements found in the attached file.

When I run the rule (reasoning = SL), it finds no matching values.

But, when I just run the following query (in the web console):
select ?u where {graph <http://purl.org/xxx/test/f5f1bbca-2041-4d0f-84bb-f389956c1ab1> { ?u <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/xxx/nsp1#thing2> . { ?u <http://purl.org/xxx/nsp1#statusPred> <http://purl.org/xxx/StatusValues#valueP> . ?u <http://purl.org/xxx/nsp1#operationPred> <http://purl.org/xxx/nsp1#true> . {?u <http://purl.org/xxx/nsp1#countryPred> ?country . BIND (str(?country) as ?countryString) . FILTER (?countryString = 'http://purl.org/xxx/countryValues#AUS' || ?countryString = 'http://purl.org/xxx/countryValues#CAN' || ?countryString = 'http://purl.org/xxx/countryValues#USA') . } . {?u <http://purl.org/xxx/nsp1#typePred> ?type . BIND (str(?type) as ?typeString) . FILTER (?typeString = 'http://purl.org/xxx/typeValues#valueD' || ?typeString = 'http://purl.org/xxx/typeValues#valueN' || ?typeString = 'http://purl.org/xxx/typeValues#valueSC' || ?typeString = 'http://purl.org/xxx/typeValues#valueSR') . } . } }

I get the user individual defined in the statements.  I am running Stardog v2.2.1.

Shouldn't this work?

Andrea Westerinen

unread,
Dec 3, 2014, 12:59:40 PM12/3/14
to sta...@clarkparsia.com
Adding the attachment this time....

Andrea
ComplexSWRLRule.txt

Héctor Pérez-Urbina

unread,
Dec 11, 2014, 4:25:41 PM12/11/14
to stardog
Thank you for your report. I was able to reproduce the problem. I'll take a closer look and let you know what I find.

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



--
Best,
Héctor

Héctor Pérez-Urbina

unread,
Dec 11, 2014, 7:09:39 PM12/11/14
to stardog
Andrea,

In the meantime, you could use something like the attached rule.
--
Best,
Héctor
rule.ttl
Reply all
Reply to author
Forward
0 new messages