Skip to content

Commit

Permalink
chore: update dsp-api to v30.5.1 (#577)
Browse files Browse the repository at this point in the history
* update dsp-api version

* update tests
  • Loading branch information
mpro7 authored Nov 10, 2023
1 parent 1c729f1 commit 0eb0746
Show file tree
Hide file tree
Showing 126 changed files with 137 additions and 137 deletions.
4 changes: 2 additions & 2 deletions src/api/v2/ontology/ontologies-endpoint.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ describe("OntologiesEndpoint", () => {
deleteCardinalitiesFromClassRequest.id = "http://0.0.0.0:3333/ontology/0001/freetest/v2";

// update this timestamp after every release of dsp-api
deleteCardinalitiesFromClassRequest.lastModificationDate = "2023-10-27T07:14:58.982383268Z";
deleteCardinalitiesFromClassRequest.lastModificationDate = "2023-11-10T07:57:35.395683684Z";

const cardinalityToRemove = new UpdateResourceClassCardinality();

Expand Down Expand Up @@ -1265,7 +1265,7 @@ describe("OntologiesEndpoint", () => {
deleteCardinalitiesFromClassRequest.id = "http://0.0.0.0:3333/ontology/0001/freetest/v2";

// update this timestamp after every release of dsp-api
deleteCardinalitiesFromClassRequest.lastModificationDate = "2023-10-27T07:14:58.982383268Z";
deleteCardinalitiesFromClassRequest.lastModificationDate = "2023-11-10T07:57:35.395683684Z";

const cardinalityToRemove = new UpdateResourceClassCardinality();

Expand Down
8 changes: 4 additions & 4 deletions src/api/v2/resource/resources-endpoint.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ describe("ResourcesEndpoint", () => {
expect(res.hasPermissions).toEqual("CR knora-admin:Creator|M knora-admin:ProjectMember|V knora-admin:ProjectMember");

// update this timestamp after every release of dsp-api
expect(res.lastModificationDate).toEqual("2023-10-28T07:11:55.135843535Z");
expect(res.lastModificationDate).toEqual("2023-11-11T07:54:32.086201202Z");
done();
}
);
Expand Down Expand Up @@ -550,7 +550,7 @@ describe("ResourcesEndpoint", () => {
updateResourceMetadata.lastModificationDate = "2021-09-30T16:41:46.980756Z";

// update this timestamp after every release of dsp-api
updateResourceMetadata.newModificationDate = "2023-10-28T07:11:55.738981743Z";
updateResourceMetadata.newModificationDate = "2023-11-11T07:54:32.592453176Z";

knoraApiConnection.v2.res.updateResourceMetadata(updateResourceMetadata).subscribe(
(res: UpdateResourceMetadataResponse) => {
Expand All @@ -560,7 +560,7 @@ describe("ResourcesEndpoint", () => {
expect(res.hasPermissions).toEqual("CR knora-admin:ProjectMember|V knora-admin:ProjectMember");

// update this timestamp after every release of dsp-api
expect(res.lastModificationDate).toEqual("2023-10-28T07:11:55.738981743Z");
expect(res.lastModificationDate).toEqual("2023-11-11T07:54:32.592453176Z");
done();
}
);
Expand All @@ -578,7 +578,7 @@ describe("ResourcesEndpoint", () => {
expectedPayload["http://api.knora.org/ontology/knora-api/v2#lastModificationDate"]["@value"] = "2021-09-30T16:41:46.980756Z";

// update this timestamp after every release of dsp-api
expectedPayload["http://api.knora.org/ontology/knora-api/v2#newModificationDate"]["@value"] = "2023-10-28T07:11:55.738981743Z";
expectedPayload["http://api.knora.org/ontology/knora-api/v2#newModificationDate"]["@value"] = "2023-11-11T07:54:32.592453176Z";

expect(request.data()).toEqual(expectedPayload);

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"group":{"descriptions":[{"value":"UpdatedGroupDescription","language":"en"}],"id":"http://rdfh.ch/groups/00FF/iPPgPjB9QiipKalutI2dqg","name":"UpdatedGroupName","project":{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://0.0.0.0:3333/ontology/00FF/images/v2"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true},"selfjoin":false,"status":true}}
{"group":{"descriptions":[{"value":"UpdatedGroupDescription","language":"en"}],"id":"http://rdfh.ch/groups/00FF/o1e3vLBvQtmVZOkBf0pIxg","name":"UpdatedGroupName","project":{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://0.0.0.0:3333/ontology/00FF/images/v2"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true},"selfjoin":false,"status":true}}
2 changes: 1 addition & 1 deletion test/data/api/admin/groups/create-group-response.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"group":{"descriptions":[{"value":"NewGroupDescription","language":"en"}],"id":"http://rdfh.ch/groups/00FF/iPPgPjB9QiipKalutI2dqg","name":"NewGroup","project":{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://0.0.0.0:3333/ontology/00FF/images/v2"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true},"selfjoin":false,"status":true}}
{"group":{"descriptions":[{"value":"NewGroupDescription","language":"en"}],"id":"http://rdfh.ch/groups/00FF/o1e3vLBvQtmVZOkBf0pIxg","name":"NewGroup","project":{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://0.0.0.0:3333/ontology/00FF/images/v2"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true},"selfjoin":false,"status":true}}
2 changes: 1 addition & 1 deletion test/data/api/admin/groups/delete-group-response.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"group":{"descriptions":[{"value":"UpdatedGroupDescription","language":"en"}],"id":"http://rdfh.ch/groups/00FF/iPPgPjB9QiipKalutI2dqg","name":"UpdatedGroupName","project":{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://0.0.0.0:3333/ontology/00FF/images/v2"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true},"selfjoin":false,"status":false}}
{"group":{"descriptions":[{"value":"UpdatedGroupDescription","language":"en"}],"id":"http://rdfh.ch/groups/00FF/o1e3vLBvQtmVZOkBf0pIxg","name":"UpdatedGroupName","project":{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://0.0.0.0:3333/ontology/00FF/images/v2"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true},"selfjoin":false,"status":false}}
2 changes: 1 addition & 1 deletion test/data/api/admin/groups/get-group-members-response.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"members":[{"email":"[email protected]","familyName":"User","givenName":"User03","groups":[{"descriptions":[{"value":"A group for image reviewers.","language":"en"}],"id":"http://rdfh.ch/groups/00FF/images-reviewer","name":"Image reviewer","project":{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://0.0.0.0:3333/ontology/00FF/images/v2"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true},"selfjoin":false,"status":true}],"id":"http://rdfh.ch/users/images-reviewer-user","lang":"de","password":null,"permissions":{"administrativePermissionsPerProject":{"http://rdfh.ch/projects/00FF":[{"additionalInformation":"http://www.knora.org/ontology/00FF/images#bild","name":"ProjectResourceCreateRestrictedPermission","permissionCode":null},{"additionalInformation":"http://www.knora.org/ontology/00FF/images#bildformat","name":"ProjectResourceCreateRestrictedPermission","permissionCode":null}]},"groupsPerProject":{"http://rdfh.ch/projects/00FF":["http://rdfh.ch/groups/00FF/images-reviewer","http://www.knora.org/ontology/knora-admin#ProjectMember"]}},"projects":[{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://0.0.0.0:3333/ontology/00FF/images/v2"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true}],"status":true,"token":null,"username":"images_reviewer_user"},{"email":"[email protected]","familyName":"User","givenName":"Multi","groups":[{"descriptions":[{"value":"A group for image reviewers.","language":"en"}],"id":"http://rdfh.ch/groups/00FF/images-reviewer","name":"Image reviewer","project":{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://0.0.0.0:3333/ontology/00FF/images/v2"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true},"selfjoin":false,"status":true}],"id":"http://rdfh.ch/users/multiuser","lang":"de","password":null,"permissions":{"administrativePermissionsPerProject":{"http://rdfh.ch/projects/00FF":[{"additionalInformation":null,"name":"ProjectResourceCreateAllPermission","permissionCode":null},{"additionalInformation":null,"name":"ProjectAdminAllPermission","permissionCode":null}],"http://rdfh.ch/projects/0001":[{"additionalInformation":null,"name":"ProjectResourceCreateAllPermission","permissionCode":null},{"additionalInformation":null,"name":"ProjectAdminAllPermission","permissionCode":null}],"http://rdfh.ch/projects/0803":[{"additionalInformation":null,"name":"ProjectResourceCreateAllPermission","permissionCode":null},{"additionalInformation":null,"name":"ProjectAdminAllPermission","permissionCode":null}]},"groupsPerProject":{"http://rdfh.ch/projects/00FF":["http://rdfh.ch/groups/00FF/images-reviewer","http://www.knora.org/ontology/knora-admin#ProjectMember","http://www.knora.org/ontology/knora-admin#ProjectAdmin"],"http://rdfh.ch/projects/0001":["http://www.knora.org/ontology/knora-admin#ProjectMember","http://www.knora.org/ontology/knora-admin#ProjectAdmin"],"http://rdfh.ch/projects/0803":["http://www.knora.org/ontology/knora-admin#ProjectMember","http://www.knora.org/ontology/knora-admin#ProjectAdmin"]}},"projects":[{"description":[{"value":"Anything Project"}],"id":"http://rdfh.ch/projects/0001","keywords":["arbitrary test data","things"],"logo":null,"longname":"Anything Project","ontologies":["http://0.0.0.0:3333/ontology/0001/anything/v2","http://0.0.0.0:3333/ontology/0001/something/v2"],"selfjoin":false,"shortcode":"0001","shortname":"anything","status":true},{"description":[{"value":"<p>Das interdisziplinäre Forschungsprojekt \"<b><em>Die Bilderfolgen der Basler Frühdrucke: Spätmittelalterliche Didaxe als Bild-Text-Lektüre</em></b>\" verbindet eine umfassende kunstwissenschaftliche Analyse der Bezüge zwischen den Bildern und Texten in den illustrierten Basler Inkunabeln mit der Digitalisierung der Bestände der Universitätsbibliothek und der Entwicklung einer elektronischen Edition in der Form einer neuartigen Web-0.2-Applikation.\n</p>\n<p>Das Projekt wird durchgeführt vom <a href=\"http://kunsthist.unibas.ch\">Kunsthistorischen Seminar</a> der Universität Basel (Prof. B. Schellewald) und dem <a href=\"http://www.dhlab.unibas.ch\">Digital Humanities Lab</a> der Universität Basel (PD Dr. L. Rosenthaler).\n</p>\n<p>\nDas Kernstück der digitalen Edition besteht aus rund zwanzig reich bebilderten Frühdrucken aus vier verschiedenen Basler Offizinen. Viele davon sind bereits vor 1500 in mehreren Ausgaben erschienen, einige fast gleichzeitig auf Deutsch und Lateinisch. Es handelt sich um eine ausserordentlich vielfältige Produktion; neben dem Heilsspiegel finden sich ein Roman, die Melusine, die Reisebeschreibungen des Jean de Mandeville, einige Gebets- und Erbauungsbüchlein, theologische Schriften, Fastenpredigten, die Leben der Heiligen Fridolin und Meinrad, das berühmte Narrenschiff sowie die Exempelsammlung des Ritters vom Thurn.\n</p>\nDie Internetpublikation macht das digitalisierte Korpus dieser Frühdrucke durch die Möglichkeiten nichtlinearer Verknüpfung und Kommentierung der Bilder und Texte, für die wissenschaftliche Edition sowie für die Erforschung der Bilder und Texte nutzbar machen. Auch können bereits bestehende und entstehende Online-Editionen damit verknüpft werden , wodurch die Nutzung von Datenbanken anderer Institutionen im Hinblick auf unser Corpus optimiert wird.\n</p>"}],"id":"http://rdfh.ch/projects/0803","keywords":["Basel","Basler Frühdrucke","Bilderfolgen","Contectualisation of images","Inkunabel","Kunsthistorisches Seminar Universität Basel","Late Middle Ages","Letterpress Printing","Narrenschiff","Sebastian Brant","Wiegendrucke","early print","incunabula","ship of fools"],"logo":"incunabula_logo.png","longname":"Bilderfolgen Basler Frühdrucke","ontologies":["http://0.0.0.0:3333/ontology/0803/incunabula/v2"],"selfjoin":false,"shortcode":"0803","shortname":"incunabula","status":true},{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://0.0.0.0:3333/ontology/00FF/images/v2"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true}],"status":true,"token":null,"username":"multiuser"}]}
{"members":[{"email":"[email protected]","familyName":"User","givenName":"User03","groups":[{"descriptions":[{"value":"A group for image reviewers.","language":"en"}],"id":"http://rdfh.ch/groups/00FF/images-reviewer","name":"Image reviewer","project":{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://0.0.0.0:3333/ontology/00FF/images/v2"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true},"selfjoin":false,"status":true}],"id":"http://rdfh.ch/users/images-reviewer-user","lang":"de","password":null,"permissions":{"administrativePermissionsPerProject":{"http://rdfh.ch/projects/00FF":[{"additionalInformation":"http://www.knora.org/ontology/00FF/images#bild","name":"ProjectResourceCreateRestrictedPermission","permissionCode":null},{"additionalInformation":"http://www.knora.org/ontology/00FF/images#bildformat","name":"ProjectResourceCreateRestrictedPermission","permissionCode":null}]},"groupsPerProject":{"http://rdfh.ch/projects/00FF":["http://rdfh.ch/groups/00FF/images-reviewer","http://www.knora.org/ontology/knora-admin#ProjectMember"]}},"projects":[{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://0.0.0.0:3333/ontology/00FF/images/v2"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true}],"status":true,"token":null,"username":"images_reviewer_user"},{"email":"[email protected]","familyName":"User","givenName":"Multi","groups":[{"descriptions":[{"value":"A group for image reviewers.","language":"en"}],"id":"http://rdfh.ch/groups/00FF/images-reviewer","name":"Image reviewer","project":{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://0.0.0.0:3333/ontology/00FF/images/v2"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true},"selfjoin":false,"status":true}],"id":"http://rdfh.ch/users/multiuser","lang":"de","password":null,"permissions":{"administrativePermissionsPerProject":{"http://rdfh.ch/projects/00FF":[{"additionalInformation":null,"name":"ProjectResourceCreateAllPermission","permissionCode":null},{"additionalInformation":null,"name":"ProjectAdminAllPermission","permissionCode":null}],"http://rdfh.ch/projects/0001":[{"additionalInformation":null,"name":"ProjectResourceCreateAllPermission","permissionCode":null},{"additionalInformation":null,"name":"ProjectAdminAllPermission","permissionCode":null}],"http://rdfh.ch/projects/0803":[{"additionalInformation":null,"name":"ProjectResourceCreateAllPermission","permissionCode":null},{"additionalInformation":null,"name":"ProjectAdminAllPermission","permissionCode":null}]},"groupsPerProject":{"http://rdfh.ch/projects/00FF":["http://rdfh.ch/groups/00FF/images-reviewer","http://www.knora.org/ontology/knora-admin#ProjectMember","http://www.knora.org/ontology/knora-admin#ProjectAdmin"],"http://rdfh.ch/projects/0001":["http://www.knora.org/ontology/knora-admin#ProjectMember","http://www.knora.org/ontology/knora-admin#ProjectAdmin"],"http://rdfh.ch/projects/0803":["http://www.knora.org/ontology/knora-admin#ProjectMember","http://www.knora.org/ontology/knora-admin#ProjectAdmin"]}},"projects":[{"description":[{"value":"Anything Project"}],"id":"http://rdfh.ch/projects/0001","keywords":["arbitrary test data","things"],"logo":null,"longname":"Anything Project","ontologies":["http://0.0.0.0:3333/ontology/0001/something/v2","http://0.0.0.0:3333/ontology/0001/anything/v2"],"selfjoin":false,"shortcode":"0001","shortname":"anything","status":true},{"description":[{"value":"<p>Das interdisziplinäre Forschungsprojekt \"<b><em>Die Bilderfolgen der Basler Frühdrucke: Spätmittelalterliche Didaxe als Bild-Text-Lektüre</em></b>\" verbindet eine umfassende kunstwissenschaftliche Analyse der Bezüge zwischen den Bildern und Texten in den illustrierten Basler Inkunabeln mit der Digitalisierung der Bestände der Universitätsbibliothek und der Entwicklung einer elektronischen Edition in der Form einer neuartigen Web-0.2-Applikation.\n</p>\n<p>Das Projekt wird durchgeführt vom <a href=\"http://kunsthist.unibas.ch\">Kunsthistorischen Seminar</a> der Universität Basel (Prof. B. Schellewald) und dem <a href=\"http://www.dhlab.unibas.ch\">Digital Humanities Lab</a> der Universität Basel (PD Dr. L. Rosenthaler).\n</p>\n<p>\nDas Kernstück der digitalen Edition besteht aus rund zwanzig reich bebilderten Frühdrucken aus vier verschiedenen Basler Offizinen. Viele davon sind bereits vor 1500 in mehreren Ausgaben erschienen, einige fast gleichzeitig auf Deutsch und Lateinisch. Es handelt sich um eine ausserordentlich vielfältige Produktion; neben dem Heilsspiegel finden sich ein Roman, die Melusine, die Reisebeschreibungen des Jean de Mandeville, einige Gebets- und Erbauungsbüchlein, theologische Schriften, Fastenpredigten, die Leben der Heiligen Fridolin und Meinrad, das berühmte Narrenschiff sowie die Exempelsammlung des Ritters vom Thurn.\n</p>\nDie Internetpublikation macht das digitalisierte Korpus dieser Frühdrucke durch die Möglichkeiten nichtlinearer Verknüpfung und Kommentierung der Bilder und Texte, für die wissenschaftliche Edition sowie für die Erforschung der Bilder und Texte nutzbar machen. Auch können bereits bestehende und entstehende Online-Editionen damit verknüpft werden , wodurch die Nutzung von Datenbanken anderer Institutionen im Hinblick auf unser Corpus optimiert wird.\n</p>"}],"id":"http://rdfh.ch/projects/0803","keywords":["Basel","Basler Frühdrucke","Bilderfolgen","Contectualisation of images","Inkunabel","Kunsthistorisches Seminar Universität Basel","Late Middle Ages","Letterpress Printing","Narrenschiff","Sebastian Brant","Wiegendrucke","early print","incunabula","ship of fools"],"logo":"incunabula_logo.png","longname":"Bilderfolgen Basler Frühdrucke","ontologies":["http://0.0.0.0:3333/ontology/0803/incunabula/v2"],"selfjoin":false,"shortcode":"0803","shortname":"incunabula","status":true},{"description":[{"value":"A demo project of a collection of images","language":"en"}],"id":"http://rdfh.ch/projects/00FF","keywords":["collection","images"],"logo":null,"longname":"Image Collection Demo","ontologies":["http://0.0.0.0:3333/ontology/00FF/images/v2"],"selfjoin":false,"shortcode":"00FF","shortname":"images","status":true}],"status":true,"token":null,"username":"multiuser"}]}
Loading

0 comments on commit 0eb0746

Please sign in to comment.