conn.begin();conn.add().io().format(format).stream(new FileInputStream(file));conn.commit();
[] a rule:SPARQLRule ; rule:content """ PREFIX bodyTemperature: <http://www.uzalerting.intec.ugent.be/bodyTemperature#> PREFIX feverType: <http://www.uzalerting.intec.ugent.be/feverType#> IF { ?temp a bodyTemperature:BodyTemperature . ?temp bodyTemperature:hasBodyTemperatureValue ?tempval . FILTER(?tempval > 38) } THEN { ?temp a feverType:DefinedFever }""" .
./stardog query dbname --verbose "prefix bodytemp: <http://www.uzalerting.intec.ugent.be/bodyTemperature#> prefix fever: <http://www.uzalerting.intec.ugent.be/feverType#> select * where {?y a fever:DefinedFever }"
./stardog query dbname --verbose "prefix bodytemp: <http://www.uzalerting.intec.ugent.be/bodyTemperature#> prefix fever: <http://www.uzalerting.intec.ugent.be/feverType#> select * where {?y a bodytemp:BodyTemperature . ?y bodytemp:hasBodyTemperatureValue ?x . FILTER(?x > 38)}"
Bram Gadeyne Department of Intensive Care University Hospital Ghent
--
-- --
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
To unsubscribe from this group and stop receiving emails from it, send an email to stardog+u...@clarkparsia.com.
![]() |
This email has been checked for viruses by Avast antivirus software.
|
Hi Emmelie,
I think you need to add -r SL as a parameter when you execute CLI query statements. Only with the SL reasoning level will stardog interpret user defined rules.