From 836910180f352a23d298f7a2387d59a2b1e41a3b Mon Sep 17 00:00:00 2001 From: SrdjanStevanetic <srdjan.stevanetic@gmail.com> Date: Wed, 16 Oct 2024 12:32:40 +0200 Subject: [PATCH] change context url in response --- .../set/definitions/model/vocabulary/WebUserSetFields.java | 2 +- .../definitions/model/vocabulary/WebUserSetModelFields.java | 3 --- .../integration-test/resources/content/userset_complete.json | 2 +- .../resources/content/userset_entity_best_items.json | 2 +- .../src/integration-test/resources/content/userset_large2.json | 2 +- 5 files changed, 4 insertions(+), 7 deletions(-) diff --git a/set-definitions/src/main/java/eu/europeana/set/definitions/model/vocabulary/WebUserSetFields.java b/set-definitions/src/main/java/eu/europeana/set/definitions/model/vocabulary/WebUserSetFields.java index 8cb479ba..a9ef3977 100644 --- a/set-definitions/src/main/java/eu/europeana/set/definitions/model/vocabulary/WebUserSetFields.java +++ b/set-definitions/src/main/java/eu/europeana/set/definitions/model/vocabulary/WebUserSetFields.java @@ -41,7 +41,7 @@ public class WebUserSetFields extends WebUserSetModelFields { public static final String TEXT_SCORE_SORT = "score"; // JsonLd Constants - public static final String CONTEXT = "http://www.europeana.eu/schemas/context/collection.jsonld"; + public static final String CONTEXT = "https://api.europeana.eu/schema/context/set.jsonld"; public static final String CONTEXT_FIELD = "@context"; public static final String IDENTIFIER = "identifier"; public static final String TITLE = "title"; diff --git a/set-definitions/src/main/java/eu/europeana/set/definitions/model/vocabulary/WebUserSetModelFields.java b/set-definitions/src/main/java/eu/europeana/set/definitions/model/vocabulary/WebUserSetModelFields.java index bec3aac8..74a6cbe7 100644 --- a/set-definitions/src/main/java/eu/europeana/set/definitions/model/vocabulary/WebUserSetModelFields.java +++ b/set-definitions/src/main/java/eu/europeana/set/definitions/model/vocabulary/WebUserSetModelFields.java @@ -42,9 +42,6 @@ public class WebUserSetModelFields { // Pinned items constants public static final String PINNED_POSITION = "pin"; - - public static final String VALUE_CONTEXT_EUROPEANA_COLLECTION = "http://www.europeana.eu/schemas/context/collection.jsonld"; - WebUserSetModelFields() { } diff --git a/set-integration-testing/src/integration-test/resources/content/userset_complete.json b/set-integration-testing/src/integration-test/resources/content/userset_complete.json index 0e809a20..d67a6d42 100644 --- a/set-integration-testing/src/integration-test/resources/content/userset_complete.json +++ b/set-integration-testing/src/integration-test/resources/content/userset_complete.json @@ -16,7 +16,7 @@ "http://data.europeana.eu/item/08641/1037479000000476467", "http://data.europeana.eu/item/08641/1037479000000476875" ], - "@context": "http://www.europeana.eu/schemas/context/collection.jsonld", + "@context": "https://api.europeana.eu/schema/context/set.jsonld", "id":"http://data.europeana.eu/set/1", "created": "2020-08-28T13:43:07Z", "modified": "2020-08-28T13:44:48Z", diff --git a/set-integration-testing/src/integration-test/resources/content/userset_entity_best_items.json b/set-integration-testing/src/integration-test/resources/content/userset_entity_best_items.json index 22772b6a..4a4d99d8 100644 --- a/set-integration-testing/src/integration-test/resources/content/userset_entity_best_items.json +++ b/set-integration-testing/src/integration-test/resources/content/userset_entity_best_items.json @@ -1,5 +1,5 @@ { -"@context": "http://www.europeana.eu/schemas/context/collection.jsonld", +"@context": "https://api.europeana.eu/schema/context/set.jsonld", "type": "EntityBestItemsSet", "title":{ "en": "Sport - best items" diff --git a/set-integration-testing/src/integration-test/resources/content/userset_large2.json b/set-integration-testing/src/integration-test/resources/content/userset_large2.json index f583d902..39eb84e2 100644 --- a/set-integration-testing/src/integration-test/resources/content/userset_large2.json +++ b/set-integration-testing/src/integration-test/resources/content/userset_large2.json @@ -1,5 +1,5 @@ { - "@context":"http://www.europeana.eu/schemas/context/collection.jsonld", + "@context":"https://api.europeana.eu/schema/context/set.jsonld", "type":"Collection", "title":{ "en":"SGoaB Test Dataset"