Installing an Annotation Server

We are now going to attempt to install an Annotation Server locally. For this you will need:

  • The Chrome Web server you setup as part of the Presentation API. This should be running on port 8887 and the directory should be dhsi2019.
  • Atom open ready for editing a manifest
  • A command line open and cd into the dhsi2019 directory. Remember the following commands:

    cd - Change directory

    ls - list directory

    pwd - to show you where you are (Print Working Directory)

Step 1:

image

Step 2:

  • Extract the zip file into your dhsi2019. On windows make sure it is extracted by right click on the file and uncompressing.

    Step 3:

  • In your terminal window cd into the sas directory which should have been created in the last step.
Glens-MacBook-Pro:tmp gmr$ cd sas
Glens-MacBook-Pro:sas gmr$ ls
2019_06_05.request.log        generated-sources        maven-status            surefire-reports
classes                generated-test-sources        simpleAnnotationStore        test-classes
dependency            maven-archiver            simpleAnnotationStore.war    work

Step 4:

  • Run the SimpleAnnotationStore:

java -jar dependency/jetty-runner.jar simpleAnnotationStore.war

Step 5:

image

  • You may need to format the JSON. To do this go to the Packages menu then Pretty Json, then Prettify

image

  • Now Change the @id from http://dams.llgc.org.uk/iiif/2.0/4389767/manifest.json to http://localhost:8887/manifest.json

image

image

Step 8:

image

  • Copy the URL in the search bar so you can use it later. In my example above this would be http://localhost:8080/search-api/localhost:8887/search
  • Now open up the Manifest in Atom and it should look like this:

image

  • Now add the following JSON to the manifest after the label:
"service": {

    "profile": "http://iiif.io/api/search/0/search",
    "@id": "SEARCH_ID",
    "@context": "http://iiif.io/api/search/0/context.json"

},
  • Now replace the SEARCH_ID with the URL you copied earlier. In my example it would look like:

image

Step 10:

Extras:

Last modified by Glen Robson 2021-10-07 10:23:23
Created by Glen Robson 2021-10-07 10:23:23

results matching ""

    No results matching ""