Skip to content
New issue

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

Not found #1

Open
lcerrato opened this issue May 24, 2017 · 2 comments
Open

Not found #1

lcerrato opened this issue May 24, 2017 · 2 comments

Comments

@lcerrato
Copy link

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

@PonteIneptique
Copy link
Member

Hi @lcerrato ,

  • which corpora did you install beforehand ?
  • What are the logs shown in the application ?
  • which OS are you using ?

@lcerrato
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants