-
Notifications
You must be signed in to change notification settings - Fork 18
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
Create image file values in API v2 #1011
Conversation
- Remove deprecated properties isPreview and qualityLevel from API v2.
@benjamingeer since you're working on the Sipi Lua scripts, could you maybe implement #874? |
@subotic Yes, I'll try to do that, too. |
thanks :-) |
…e (ongoing). - Fix broken tests.
@tobiasschweizer @subotic I changed API v1 to generate IIIF preview URLs, ignoring the preview image file values in the triplestore. I updated the test data so the tests pass. I browsed around in the SALSAH 1 GUI and it looks like it works (IIIF preview images are requested and displayed), but I haven't been able to get the SALSAH 1 GUI tests to work, because of timeouts and other errors that I don't understand. |
@loicjaouen had the same problem ( My guess is that there were ontology changes that break the tests. In the tests, everything works with positions (n-th property). If you are here next week, we could have a look at it. |
Yes, thanks, I'll be there. |
Ok, great. Mostly it is really trivial. You just have to adapt the positions. But it is very cumbersome since the GUI was written in a testing-hostile manner ;-) |
The BEOL Import Test run without problems. 2000 letters with images where imported. |
# Conflicts: # docs/src/paradox/00-release-notes/v3.x.x.md # webapi/src/main/scala/org/knora/webapi/responders/v2/ValuesResponderV2.scala
webapi/src/main/scala/org/knora/webapi/responders/v1/ResourcesResponderV1.scala
Show resolved
Hide resolved
webapi/src/main/scala/org/knora/webapi/responders/v2/SipiResponderV2.scala
Show resolved
Hide resolved
webapi/src/test/scala/org/knora/webapi/responders/v2/ValuesResponderV2Spec.scala
Outdated
Show resolved
Hide resolved
… image in the triplestore.
@subotic I think this is OK to merge now. |
This pull request has been mentioned on Discuss DaSCH. There might be relevant details there: https://discuss.dasch.swiss/t/support-non-image-files-in-knora-api-v2/33/1 |
As per #998 (comment):
upload.lua
: called by client, for uploading, image conversion, and storage in Sipi'stmp
dirtmp
(recursively in subdirectories)store.lua
: called by Knora, for moving a file fromtmp
to permanent storage dirdelete_temp_file.lua
: called by Knora, for deleting a file fromtmp
ReadValueV2
so it has two subtypes, one for links and one for non-links (simplifies some code).knora.json
route).isPreview
andqualityLevel
from API v2.originalMimeType
andoriginalFilename
required inknora-base:FileValue
(seems to be a mistake that they weren't, see Question regarding the handling of optional values in SPARQL templates #342).ValuesV2R2RSpec
to check JSON-LD processing, getting image metadata from mock Sipixsd:anyURI
(need to be fixed in Core module: update textValueHasMapping knora-ui#87):knora-api:fileValueAsUrl
knora-api:stillImageFileValueHasIIIFBaseUrl
Fixes #342.
Resolves #1044.
Requires Sipi with tagged commit
v1.4.1-SNAPSHOT
or later.For a subsequent PR:
SipiResponderV2
out of the responders module.