Hi all.
Has someone already used the /refactor and /refactor/apply(file)
services of the rules endpoint?
I tried the curl commands from the hands-on tutorial, none would work
for me. Maybe I'm just making syntax errors here ? (although I already
tried some variants) e.g.:
curl -X POST -H "Content-Type: multipart/form-data" -H "Accept:
application/turtle" -F recipe="is(http://dbpedia.org/ontology/Person,
?x) -> is(http://rdf.data-vocabulary.org/Person, ?x)" -F
[email protected] http://lnv-89012.dfki.uni-sb.de:9001/refactor/apply
For this, I get HTTP ERROR 406 Problem accessing /refactor/apply.
Reason: Not Acceptable.
curl -X POST -H "Accept: application/rdf+xml" -F [email protected]
-F
recipe="http://<stanbol>/rules/recipe/http://www.dfki.de/mere01/recipe/TestRecipe"
http://<stanbol>/refactor
for an existing recipe with at least one rule in it gives me 'HTTP ERROR
404 Problem accessing /refactor/. Reason: Not Found
Or does it have to be curl -d for /refactor ? (because in one of the
versions on the RESTful API it is also shown with GET -G -d). But for
this I also get the Not Found error.
Btw: how do I get namespace specification into my recipes? (like the
google or dbpedia shorthands shown in the tutorial) Do I simply add them
in the rules body?
Thanks,
Melanie