On 7/13/12 3:57 PM, Melanie Reiplinger wrote:
Am 13.07.2012 15:33, schrieb Alessandro Adamou:
Here is what worked for me:

curl -X POST -F "rules=transitivity[has(?r, ?x, ?z) . has(?r, ?z, ?y) -> has(?r, ?x, ?y)]" -F "description=Test rule" http://[stanbol]/rules/recipe/http://www.dfki.de/mere01/recipe/r1

great, works fine. Now, if I want to get the rule itself, to what URL do I send the GET? I tested
<stanbol>/rules/rule/transitivity
<stanbol>/rules/transitivity
<stanbol>/rule/transitivity
<stanbol>/rules/find/rules

The last one with query parameters is correct. Try this:

curl -H "Accept: application/rdf+xml" http://[stanbol]/rules/find/rules?name=rans

curl -H "Accept: application/rdf+xml" http://[stanbol]/rules/find/rules?description=irst

You can also ask for:

text/turtle
text/owl-manchester
text/owl-functional
application/owl+xml
application/rdf+json

Theoretically, it should also support

application/json (JSON-LD)
text/plain

but I don't see a body writer registered with rule lists so it didn't work for me.

Best,
Alessandro


To check if it has been stored (and therefore parsed), you can do a GET on

http://[stanbol]/rules/recipe/http://www.dfki.de/mere01/recipe/r1

requesting text/plain or some KR format such as

text/turtle
application/rdf+xml
text/owl-manchester

Hope this helps,

Alessandro






--
M.Sc. Alessandro Adamou

Alma Mater Studiorum - Università di Bologna
Department of Computer Science
Mura Anteo Zamboni 7, 40127 Bologna - Italy

Semantic Technology Laboratory (STLab)
Institute for Cognitive Science and Technology (ISTC)
National Research Council (CNR)
Via Nomentana 56, 00161 Rome - Italy


"I will give you everything, just don't demand anything."
(Ettore Petrolini, 1917)

Not sent from my iSnobTechDevice

Reply via email to