IIIF (International Image Interoperability Framework) is hosting a conference at the Vatican on June 5-9. We (@diasdavid and @flyingzumwalt) will be present at that conference to talk about the benefits of using decentralized Web technologies that institutions like IIIF can benefit from.
We will be collaborating with @edsilv and @aeschylus to prepare a demo to showcase at the conference, of both Mirador and UniversalViewer using IPFS to exchange and update annotations made on the images. This issue will be used to coordinate this effort as a main central hub.
Mirador and UniversalViewer are both viewers of IIIF data that follow IIIF defined data model, they are created by independent researchers, but there is a lot of collaboration and idea sharing.
From the design thinking we've done, we know that we need:
Annotation ListAnnotation List for each document.This converts into roughly the following milestones:
Annotation list through IPFS directly (using orbit-db or another CRDT library that is mounted on top of IPFSThis suggested that we just need to create primitives for get and put with the ability to follow changes or updated in a document, once that part is done, it can be fully integrated.
Other important pieces of context:
alright, just had a good chat with @pgte on this endeavor, he is in!
To move forward:
Let's try to all meet this week :)
Great! Here's an example of an AnnotationList:
https://wellcomelibrary.org/annoservices/search/b18035723?q=gene
(http://iiif.io/model/shared-canvas/1.0/#AnnotationList)
This is the format Mirador uses to store annotations and the UV uses to display search results.
This will eventually be replaced with the Web Annotation Data Model as part of IIIF Presentation API 3.0, but this is still some way off:
https://github.com/IIIF/iiif.io/issues/496
(https://www.w3.org/TR/annotation-model/#annotation-collection)
Milestone 3 states that the images should be loaded over IPFS. Currently we only have this very simple fully-IPFS-enabled IIIF manifest: http://universalviewer.io/examples/?manifest=https%3A%2F%2Fipfs.io%2Fipfs%2FQmYomyCpT1vKNovYvTjAStYq31JoaH8xdivjmWcDj5mpM1
Milestone 4 would require some work from @aeschylus to port Mirador to be able to be loaded over IPFS. Currently the UV can be loaded using the ipfs.io gateway. Are you suggesting that we bypass the gateway and use js-ipfs to load all of the viewer assets?
Perhaps in order to keep things manageable initially we could focus on enabling serverless communication between the viewers over js-ipfs, with the viewers themselves and IIIF manifests being loaded over HTTP. We could then move on to fully IPFS-ifying the viewers and IIIF manifests + assets?
I need to complete the work that will allow me to update the UV search results programmatically as opposed to on user interaction. This will be necessary to be able to respond to the IPFS annotation endpoint. I'm working on giving the UV an external API and expect this to be ready in the next few weeks.
We will also need to be able to specify the annotation endpoint to subscribe to somehow when starting the viewers. Perhaps a text field that we paste the name of the endpoint into?
A weekly standup sounds good!
At the bottom of https://wellcomelibrary.org/annoservices/search/b18035723?q=gene you'll see a hits array. This is extra data to provide context to search results. We don't need to worry about this as the UV doesn't require it.
Let's find the time for that weekly standup
Everyone else is welcome to add their availability if they are interested in actively participating in this endeavor, otherwise, we will have to favor the schedule of the people contributing. Thank you :)
Great!
I'll look forward to speaking to everyone on the 28th. For reference, here is the link to a fork of orbitdb we've made where the main example has been tossed up to work as a textarea.
https://github.com/viewdir/orbit-db/tree/initial-hacking
More context is in https://github.com/orbitdb/orbit-db/issues/213, noted above.
Recent Article about using pubsub on IPFS
There are 2 main vierwers in the IIIF space
Main IIIF APIs:
Other Apis: search, annotation, etc.
AnnotationList objectsDrew and Ed got a basic version of UV running on orbit-db. they got it working but ran into troubles with orbit and confusion about what they should do
Questions:
Q: can we use js-ipfs?
A: you can use either. go-ipfs has some features that js-ipfs doesn't have
NEED for demo:
Easy way for everyone in the room to get the demo code, including a working IPFS node
Theatrics of the demo:
Where the work will happen:
Action Items:
What Ed & Drew need:
Created repo, can move it later to org: https://github.com/pgte/ipfs-iiif-annotations
Video: it is being rendered and uploaded
Some more notes from the 28/04/17 standup:
We are currently using the Open Annotation spec which is what the UV and Mirador both support and is perfect for an MVP. However, IIIF will use the Web Annotation Data Model in future. This has support for AnnotationPages which would allow us to break up the data into more manageable chunks instead of a single large json blob.
It also supports agents which would allow us to identify and filter by user.
The model uses IRIs for ids, which means fs:/ipfs/<hash> is a valid identifier if we want to permit content addressing.
Also worth noting that AnnotationPages are based upon Activity Streams Collections. Activity Streams is a more generic specification and can be applied to many other types of actions.
Create a front end test harness? Use Jest: https://facebook.github.io/jest/
@pgte has finished the first milestone, you can see it here: https://github.com/pgte/ipfs-iiif-db/issues/1#issuecomment-299268499
@edsilv @aeschylus can I get your ack? The example includes a demo video
Hey,
Looks great! I'll have a play with it before the standup :-)
On 4 May 2017 8:23 pm, "David Dias" notifications@github.com wrote:
@pgte https://github.com/pgte has finished the first milestone, you can
see it here: pgte/ipfs-iiif-db#1 (comment)
https://github.com/pgte/ipfs-iiif-db/issues/1#issuecomment-299268499@edsilv https://github.com/edsilv @aeschylus
https://github.com/aeschylus can I get your ack? The example includes a
demo video—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ipfs/notes/issues/240#issuecomment-299284129, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABRceUwzHYN_O0C4eH6MkBWiJkysRO1aks5r2iWegaJpZM4M-UZr
.
Having a look now and getting our example put up.
@flyingzumwalt @diasdavid Here's the designer/illustrator I mentioned: http://whitevinyldesign.com
I worked with Luke on https://blokdust.com
Also, here's the go-iiif lib: https://github.com/thisisaaronland/go-iiif#iiif-tile-seed
First milestone finished - get + put
drew:
Validating the API
What about preservation? Can we set up a listener node that's archiving the annotations?
every time someone makes an annotation, the annotation goes on IPFS and the node publishes a link to that annotation on the pubsub topic. There is not a global log for all annoations
Drew: get mirador using pedro's new pubsub library, using browserify version. would like to also incorporate into electron version of mirador
Ed: integrate into UV
Pedro: support Ed + Drew, integrate proper CRDT-based log
Matt: think about structure of demo, theatrics and visuals/illustrations
Add in CRDTs: Swap out swarmjs or yjs in place of current simple pubsub library
I've created a roadmap to help us have a notion of time we have left and the sync the things we have planned for each week. I'll keep updating this roadmap as things progress and we set new goals. Right now it clearly lists the goals for this week and how much time we have till the conf.
Here is a generated ROADMAP with what we have planned so far to help us be on the same page.
Published on NPM: https://www.npmjs.com/package/ipfs-iiif-db
How is the integration going @aeschylus @edsilv ? Need any help?
Hi David,
Here's the repo:
https://github.com/viewdir/ipfs-experiments
I've set up the UV page, but it isn't hooked up to ipfs-iiif-db yet.
UV, Mirador, and the contents of
ipfs-iiif-db/examples/simple-producer-consumer/public/js are being copied
out of node_modules on npm start.
I've included app.js in uv.html, but am getting Bignumber is not a
constructor. Not sure why as it seems to be the same setup as in the
example.
app.js contains some UI-specific code ($startButton, $stopButton, etc).
Presumably we'll need to include the same UI elements in mirador.html and
uv.html?
I'm going to be at this for the rest of the week:
https://www.rijksmuseum.nl/en/2and3dphotography
I might be able to get away on Friday though to look more at this and join
the standup.
On 9 May 2017 10:57 pm, "David Dias" notifications@github.com wrote:
How is the integration going @aeschylus https://github.com/aeschylus
@edsilv https://github.com/edsilv ? Need any help?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ipfs/notes/issues/240#issuecomment-300299164, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABRceWQstYGmhSdxInllwKl6fbJH_Hmoks5r4NNSgaJpZM4M-UZr
.
Hi Ed,
The bundle node_modules/ipfs-iiif-annotations/examples/simple-producer-consumer/public/js/app.js is specific to that example. Instead, I guess you could try to somehow use the library from within the app:
ipfs-iiif-db library could provide a bundle that you could include on a script tag.Which pattern(s) suits your needs?
I think #2 (the script tag) would be great in terms of reducing the amount
of overhead required to getting something up and running.
I was thinking that perhaps we could create a http://svelte.technology
component at some point to wrap up any reusable code and UI.This could be
used as a custom element in your page and provide a nice interface with
inline attributes and events you could listen for. You could imagine having
a topic attribute and onchanged event. Also, optional start/stop IPFS
buttons.
It could be a drop-in way to 'ipfs-ify' your application. I have some
experience with svelte and could help with such an effort.
On 10 May 2017 10:22 am, "Pedro Teixeira" notifications@github.com wrote:
Hi Ed,
The bundle node_modules/ipfs-iiif-annotations/examples/simple-
producer-consumer/public/js/app.js is specific to that example. Instead,
I guess you could try to somehow use the library from within the app:
- If you're going to use a bundler like browserify or webpack, you
could use it like a node.js or an ES6 module from inside your app.- Alternatively, the ipfs-iiif/db library could provide a bundle that
you could include on a script tag.Which pattern(s) suits your needs?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ipfs/notes/issues/240#issuecomment-300411062, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABRceRpAi2tGCn54hUmTJFLoaGU9zeVbks5r4XPYgaJpZM4M-UZr
.
@edsilv :
Just published version 0.2.0, which now includes a packaged dist.
Here are the instructions for dropping in a script tag:
https://github.com/pgte/ipfs-iiif-db/tree/master#using-a-script-tag-in-a-browser
@pgte I've updated https://github.com/viewdir/ipfs-experiments to use the unpkg.com script instead. mirador.html has a button that submits the contents of a textfield and this is console.logged in uv.html. So the plumbing works :-)
Hey, preservation didn't get mentioned on the standup. We should aim to make it trivially easy to have your ipfs node "watch" a topic and pin new annotations. Perhaps ipfs-iiif-db could have a cli like ipfs-iiif-db watch mytopic ?
@edsilv I think that's a great idea. @diasdavid?
Also, just a suggestion - but what about calling it ipfs-annotation-db ? Bit more generic?
a cli that follows the channel and outputs to stdout is a great idea for
showing that a machine could follow the channel and archive/preserve it.
On Sat, May 13, 2017 at 1:19 PM Edward Silverton notifications@github.com
wrote:
Also, just a suggestion - but what about calling it ipfs-annotation-db ?
Bit more generic?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ipfs/notes/issues/240#issuecomment-301261840, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAIesoHP68NKAKhaoV2G5DpSUV38JGaDks5r5eYxgaJpZM4M-UZr
.
Sounds great to me ! :)
@edsilv @aeschylus Here is a proposal for the new API that supports CRDTs:
https://github.com/pgte/ipfs-iiif-db/tree/yjs#instantiate
It's much more specific than the previous one, since I had to define a specific data structure, supported by shared CRDTs.
It should now be easier to integrate with a UI without the need to refresh the entire annotation list.
Here is an example app: https://github.com/pgte/ipfs-iiif-db/blob/yjs/examples/simple-producer-consumer/src/app.js
Here is a demo of it working: https://youtu.be/8xE1MEyZsbo
@edsilv @aeschylus Do you see any problem with this API, or some use case that you require that it doesn't support?
Now has own issue: https://github.com/pgte/ipfs-iiif-db/issues/4
@pgte Looks good - essentially CRUD on top of a CRDT? I'll look at updating the demo app tomorrow to fit this new model. I'm sure this will uncover any potential problems.
@edsilv great! I haven't released a distribution yet, will do it first thing in the morning.
@edsilv curious about jsonfeed.org. The Web Annotation Protocol has a "feed" mechanism built in:
https://www.w3.org/TR/annotation-protocol/#representations-with-annotation-descriptions
It's based on Activity Stream 2.0 collections.
If I've misunderstood the plans for this, let me know. 😃 Happy to help where I can!
@BigBlueHat Hey! I just posted jsonfeed.org out of interest really. If we're making something here that's essentially a way to easily do CRUDable json arrays on top of a CRDT there are all kinds of possibilities. Activity Streams are super interesting. It would be great if you wanted to join our new regular IPFS for GLAM call. Perhaps you could give us the lowdown on Activity Streams?
@edsilv @aeschylus version 2.0.0 of ifs-iiif-db released.
Distribution URL to update the script tag: http://unpkg.com/[email protected]/dist/index.min.js
(The previous version is still available through here: https://unpkg.com/[email protected]/dist/index.min.js )
@edsilv @aeschylus beware of reconnection difficulties (almost fixed) reported here:
https://github.com/pgte/ipfs-iiif-db/issues/6
@pgte I've updated the example. Here's a video of it working: https://youtu.be/SMOiTZYeoG0
Right now I'm passing in the original param inline on both clients like this:
https://github.com/viewdir/ipfs-experiments/blob/master/viewer-annotations/mirador.html#L27
Perhaps we generate the @id by hashing the combined manifest URI and topic?
e.g.
"@id": "fs:/ipfs/<hash>",
@edsilv we can generate any kind of id if it's not defined, and we could create a random one.
The first argument of the db.annotationList() is supposed to be an id, a unique identifier for that annotationList. Could be a URI, any string that has some identification meaning to you.
We can create an alternative API where the ID can (or not) be defined inside the originalValue, and if it's not defined, we create a random one. Something like:
db.annotationList({
"@context": "http://iiif.io/api/search/0/context.json",
"@id": "https://wellcomelibrary.org/annoservices/search/b18035723?q=gene",
"@type": "sc:AnnotationList",
"within": {
"@type": "sc:Layer"
},
"startIndex": 0,
"resources": []
})
(in this case we wouldn't create an id since it already has one).
Another option is to enforce an id.
Which API suites you best?
@pgte Hmm, not sure. I think this is something we can discuss on the standup later.
Here's my outline for the demo. We can discuss + refine on today's call. It's in this hackpad
Same info in slide deck form (slightly outdated): Serverless IIIF with IPFS.pdf ... and here's the Keynote file
New 2.1.0 version of the ipfs-iiif-db package just released.
Supports new semantics for the @id attribute of an annotationList and passing in only the id or the initial annotationList.
// @edsilv @aeschylus
@edsilv @aeschylus just released version 2.2.0. Relevant changes:
Most helpful comment
To everyone following this thread, check out the latest Tutorial published by @pgte on how to use PubSub to create Real-Time apps over IPFS
Full discussion here: https://github.com/libp2p/research-pubsub/issues/18