We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FYI Per Bridget's email to the Digital Classicists list:
I couldn't get any of these to work on my install.
All I see is **Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.**
The following requests should work http://localhost:5000/api/cts/?request=GetCapabilities This returns the CTS Inventory of texts which are available in the repository. You can then find urns for individual editions and translations in that response, and feed these to the GetValidReff request http://localhost:5000/api/cts/?request=GetValidReff&urn= urn:cts:greekLit:tlg0012.tlg002.perseus-grc2 This returns a list of passages You can drill down to lower levels by adding a level parameter http://localhost:5000/api/cts/?request=GetValidReff&urn=urn:cts:greekLit:tlg0012.tlg002.perseus-grc2&level=2 (the number of levels is identified in the CTS Inventory metadata for the edition) And finally retrieve text by requesting a passage urn (individual or range). e.g. http://localhost:5000/api/cts/?request=GetPassage&urn=urn:cts:greekLit:tlg0012.tlg002.perseus-grc2:1.1-1.10 (The following quick guide I wrote up recently for the CTS Handle project might also be helpful: https://github.com/rpidproject/cts-handles/blob/master/sample_cts_request_response.md
The following requests should work
http://localhost:5000/api/cts/?request=GetCapabilities
This returns the CTS Inventory of texts which are available in the repository.
You can then find urns for individual editions and translations in that response, and feed these to the GetValidReff request
http://localhost:5000/api/cts/?request=GetValidReff&urn= urn:cts:greekLit:tlg0012.tlg002.perseus-grc2
This returns a list of passages
You can drill down to lower levels by adding a level parameter
http://localhost:5000/api/cts/?request=GetValidReff&urn=urn:cts:greekLit:tlg0012.tlg002.perseus-grc2&level=2
(the number of levels is identified in the CTS Inventory metadata for the edition)
And finally retrieve text by requesting a passage urn (individual or range). e.g.
http://localhost:5000/api/cts/?request=GetPassage&urn=urn:cts:greekLit:tlg0012.tlg002.perseus-grc2:1.1-1.10
(The following quick guide I wrote up recently for the CTS Handle project might also be helpful: https://github.com/rpidproject/cts-handles/blob/master/sample_cts_request_response.md
The text was updated successfully, but these errors were encountered:
Hi @lcerrato ,
Sorry, something went wrong.
per email to Digital Classicist: Hi Chiara,
Ah, sorry, I see for the local app the trailing / before the beginning of the query string does not work
So it should be
http://localhost:5000/api/cts?request=GetCapabilities
http://localhost:5000/api/cts?request=GetValidReff&urn=urn:cts:greekLit:tlg0012.tlg002.perseus-grc2&level=2
And so forth
Hope this helps. Bridget
No branches or pull requests
FYI
Per Bridget's email to the Digital Classicists list:
I couldn't get any of these to work on my install.
All I see is
**Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.**
The text was updated successfully, but these errors were encountered: