GithubHelp home page GithubHelp logo

Comments (2)

dnoneill avatar dnoneill commented on June 26, 2024

Hi,
Sorry it has take so long to get back to you.
Yeah it should be possible. It looks like you might have already figured this out? I am not quite sure.

You will have to do some manual remediation. You will need to make sure you are uploading into the _annotations folder.

You will also have to make sure you have front matter loaded. So the file you upload to _annotations should be in the following format. Unfortunately you are probably going to need to script this because you can't upload an annotation list. So each annotation needs to have it's own file the filename being the id of the annotation.

---
canvas: url of canvas
order: number of the annotation in list
---
json of the annotation

To create the list add the follwoing to a list file

---
canvas_id: url of canvas
---
{% assign annotations = site.annotations | where: "canvas", page.canvas_id | sort: "order" | map: "content" %}
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"id": "{{ site.url }}{{ site.baseurl }}{{page.url}}",
"type": "oa:AnnotationList",
"resources": [{{ annotations | join: ","}}] }

from annonatate.

dnoneill avatar dnoneill commented on June 26, 2024

I have written the script that will convert annotation lists to an Annonatate working version. Might need to be tweaked a little because it assumed that it was writing to the repo the annotations were in.

https://github.com/dnoneill/annonatate-sourcecode/blob/training-workbench/annonatate/static/githubfiles/workbench/convert.py#L3-L33

from annonatate.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.