Author: anuzzolese Date: Thu Sep 13 15:24:22 2012 New Revision: 1384368 URL: http://svn.apache.org/viewvc?rev=1384368&view=rev Log: Added missing docs to rules.
Modified: incubator/stanbol/site/trunk/content/stanbol/docs/trunk/components/rules/refactor.mdtext incubator/stanbol/site/trunk/content/stanbol/docs/trunk/components/rules/store.mdtext Modified: incubator/stanbol/site/trunk/content/stanbol/docs/trunk/components/rules/refactor.mdtext URL: http://svn.apache.org/viewvc/incubator/stanbol/site/trunk/content/stanbol/docs/trunk/components/rules/refactor.mdtext?rev=1384368&r1=1384367&r2=1384368&view=diff ============================================================================== --- incubator/stanbol/site/trunk/content/stanbol/docs/trunk/components/rules/refactor.mdtext (original) +++ incubator/stanbol/site/trunk/content/stanbol/docs/trunk/components/rules/refactor.mdtext Thu Sep 13 15:24:22 2012 @@ -70,10 +70,11 @@ _(Please note, that the following links ### Refactor Engine ("/refactor"): -- The Refactor Engine __@/refactor__ performs a refactoring applying an existing recipe in the rule store to the provided RDF graph. The RDF graph can be either in the Stanbol triplestore or provided as a file. -In the first case the output of the refactoring is stored in the triplestore. The request should be done as it follows: +- The Refactor Engine __@/refactor__ performs a refactoring applying an existing recipe in the rule store to the provided RDF graph. -* Method: POST +The request should be done as it follows: + +* Method: GET * Parameters: * input-graph: the ID of RDF graph in the triplestore provided as input * output-graph: the ID of RDF graph in the triplestore in which we want to store the result. @@ -86,25 +87,33 @@ Example: -d input-graph=stored_graph -d recipe=myTestRecipeA -d output-graph=result_graph \ http://localhost:8080/refactor -In the case we want to refactor an external RDF graph provided as file the request should be done as follows: - +### Refactor Engine ("/refactor/apply"): + +- Refactor Engine __@/refactor/apply__ performs a refactoring applying an recipe as string to the provided RDF graph as input source. + +The request should be done as it follows: + * Method: POST * Parameters: * recipe: the ID of the recipe (MANDATORY) * input: the RDF graph to which the refactoring has to be applied. The graph has to be provided as a binary file (MANDATORY) +* Accepts: + * application/rdf+xml + * text/html + * text/plain + * application/owl+xml + * text/owl-functional + * text/owl-manchester + * application/rdf+json, + * text/turle Example: :::bash curl -X POST -H "Content-type: multipart/form-data" \ - -F description=recipeTestA -F rules=@graph.rdf \ - http://localhost:8080/refactor - - - -### Refactor Engine ("/refactor/apply"): - -- Refactor Engine __@/refactor/apply__ performs a refactoring applying an recipe as string to the provided RDF graph as input source. + -H "Accept: application/rdf+json" \ + -F recipe=recipeTestA -F input=@graph.rdf \ + http://localhost:8080/refactor/apply ____ -_[Back to Stanbol Rules](../rules.html)_ \ No newline at end of file +_[Back to Stanbol Rules](..)_ \ No newline at end of file Modified: incubator/stanbol/site/trunk/content/stanbol/docs/trunk/components/rules/store.mdtext URL: http://svn.apache.org/viewvc/incubator/stanbol/site/trunk/content/stanbol/docs/trunk/components/rules/store.mdtext?rev=1384368&r1=1384367&r2=1384368&view=diff ============================================================================== --- incubator/stanbol/site/trunk/content/stanbol/docs/trunk/components/rules/store.mdtext (original) +++ incubator/stanbol/site/trunk/content/stanbol/docs/trunk/components/rules/store.mdtext Thu Sep 13 15:24:22 2012 @@ -125,4 +125,4 @@ Example: http://localhost:8080/rules/find/rules ____ -_[Back to Stanbol Rules](../rules.html)_ \ No newline at end of file +_[Back to Stanbol Rules](..)_ \ No newline at end of file