Hi Travis,
Thank you so much for your response and instructions for using Clavin-rest. However, please note we are already using Clavin-rest and are very satisfied with the application.
The reason we wanted to try the Clavin Python API is that we want to extend the Clavin-rest function by adding a person names extraction function. We are primarily a GIS group and not trained for programming, but we are very familiar with Python since GIS applications such as ArcGIS and GRASS GIS use Python APIs. Accordingly, we wrote the code for the person names extraction function using NLTK hoping that the Clavin Python API makes it somewhat easy to implement the extraction function, but it seems we instead need to determine a solution using Clavin-rest.
We would very much appreciate if you could provide your assistance regarding the problem we currently encountered. We know that "ajax" can call JSON, but we don't know how the Python file should be executed in Clavin-rest in order to produce a JSON file. We searched possible resolutions and came up with a possible solution that we need to modify the Clavin-server for POST request. Is there any way to execute Python code and generate a JSON file without modifying the Clavin-server? Or is modifying the Clavin-server is the only way to achieve our objective?
We very much appreciate any suggestion you could provide us. Thanks in advance!
Sincerely yours,
Makiko