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

Monitor hypothes.is annotations on (blog.)lobid.org #36

Open
acka47 opened this issue Aug 17, 2018 · 1 comment
Open

Monitor hypothes.is annotations on (blog.)lobid.org #36

acka47 opened this issue Aug 17, 2018 · 1 comment

Comments

@acka47
Copy link
Contributor

acka47 commented Aug 17, 2018

As we only get notifications when somebody answers to our annotations we somehow have to monitor whether we have some new comments/notifications on our blog. Unfortunately, hypothes.is hasn't implemented such a feature yet although it has been requested multiple times for some years now (see hypothesis/product-backlog#30 and hypothesis/product-backlog#201). However, there exists a way to query the API for parts of the URL, see https://github.com/hypothesis/client/issues/739#issuecomment-396281964. For the lobid blog the query would be https://hypothes.is/api/search?uri.parts=blog&uri.parts=lobid or we could even query for all annotations on lobid.org with https://hypothes.is/api/search?uri.parts=org&uri.parts=lobid.

However, I suggest to write a script that sends an email to semweb@hbz-nrw.de with the annotation body, the user name of the annotator, the creation/modification date, the link to the annotation in context etc. Here is the relevant information from the API response with regard to one specific annotation:

{
  "updated":"2018-08-03T14:11:37.311616+00:00",
  "links":{
    "json":"https://hypothes.is/api/annotations/IpWX5JcnEei10AOCaAhp9w",
    "html":"https://hypothes.is/a/IpWX5JcnEei10AOCaAhp9w",
    "incontext":"https://hyp.is/IpWX5JcnEei10AOCaAhp9w/blog.lobid.org/2018/07/02/lobid-update.html"
  },
  "text":"Vielen Dank, ein sehr hilfreiches Tool! Ich würde mir jetzt natürlich gerne noch zu meinen Matches die GND-Nummer oder Links in eine weitere Spalte schreiben lassen...Vielleicht einen Tipp, wie das ginge?\n\nViele Grüße, Jakob Frohmann",
  "created":"2018-08-03T14:11:37.311616+00:00",
  "uri":"http://blog.lobid.org/2018/07/02/lobid-update.html",
  "user":"acct:JakobFrohmann@hypothes.is",
  "document":{
    "title":[
      "lobid-gnd-Neuigkeiten: Bulk Downloads, OpenRefine-API und mehr"
    ]
  },
  "id":"IpWX5JcnEei10AOCaAhp9w"
}
@acka47
Copy link
Contributor Author

acka47 commented Jan 11, 2019

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

1 participant