Coder Social home page Coder Social logo

annotate's Introduction

Hi! ๐Ÿ‘‹

I'm an open source developer & senior data engineer based in Queens, NY.

I author software packages, design user interfaces, and build cloud architectures and workflows for librarians, archivists, humanities researchers, and other keepers of cultural heritage.

More info is available at my website.

annotate's People

Contributors

mnyrop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

annotate's Issues

Annotation Rendering incorrectly

According to all the examples in the IIIF guidelines (https://iiif.io/api/presentation/2.1/) everything that is rendering in this application in the "on" field should be in the "resource" field. According to the guidelines the only thing that should be in an annotation "on" field should be the canvas(es) referenced by the annotation. Example Annotation from https://iiif.io/api/presentation below. Hoping this can be fixed. Thanks.

{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "http://example.org/iiif/book1/annotation/anno1",
"@type": "oa:Annotation",
"motivation": "sc:painting",
"resource": {
"@id": "http://www.example.org/iiif/book1-page1/50,50,1250,1850/full/0/default.jpg",
"@type": "oa:SpecificResource",
"full": {
"@id": "http://example.org/iiif/book1-page1/full/full/0/default.jpg",
"@type": "dctypes:Image",
"service": {
"@context": "http://iiif.io/api/image/2/context.json",
"@id": "http://example.org/iiif/book1-page1",
"profile": "http://iiif.io/api/image/2/level2.json"
}
},
"selector": {
"@context": "http://iiif.io/api/annex/openannotation/context.json",
"@type": "iiif:ImageApiSelector",
"region": "50,50,1250,1850"
}
},
"on": "http://www.example.org/iiif/book1/canvas/p1#xywh=0,0,600,900"
}

Problem when canvas labels are not unique across items

We're using this code to support a project that is creating and harvesting IIIF annotations for a number of related objects: issues of a magazine. https://github.com/pbinkley/annotate . We've found that when two issues have a canvas with the same label (in our case simple integers), the annotations for the earliest issue will be displayed on the same page of subsequent issues. E.g. if you create annotations on issue 4 p. 127 and issue 6 p. 127, then the issue 4 annotations will be displayed when you view that page of issue 6. This is because the labels include only the canvas id and not the issue id:

I'll share a fix for this this week.

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.