Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 16
Next »
The User Set API allows users to create and maintain their own collection of items (sets) that are available in Europeana. Besides creating sets, users can also search for sets that were created by other users and are available for public viewing. This API supports the gallery functionality that is available in the Europeana website for logged-in users.
Retrieving user sets
Methods for accessing either the metadata of a user set or the metadata of the items that are part of the user set. Considering that the number of items that are part of the user may be relatively high, it was decided to separate the user set metadata from the item metadata retrieval and to offer a paginated approach to accessing the information about the items that are part of the user set.
Retrieves all metadata available for a specific user set. This includes all descriptive metadata but leaves out the contents of the set.
Request
https://api.europeana.eu/set/[IDENTIFIER]
Accept: [ACCEPT]
https://api.europeana.eu/set/[IDENTIFIER].[FORMAT]
Parameter | Location | Description |
---|
IDENTIFIER | path | The local identifier of the user set. |
ACCEPT | header | Indicates the preferred format via which the user set is to be represented if the format is accepted by the service. Only JSON-LD is supported. |
FORMAT | path | Convenience method where the format is indicated as a path parameter instead of via the Accept header. |
Response
On success, the method returns a HTTP 200 with the metadata of the user set.
The response is a JSON-LD structure composed of the following fields:
Field | Datatype | Description |
---|
User Set |
@context | String (URL) | The JSON-LD context |
id | String (URI) | The unique identifier of the user set |
type | String | The type of the user set. By default all user sets are classified as 'Collection'. The 'BookmarkFolder' and 'EntityBestItemsSet' are types that are used to support specific functionality in the Europeana Website. |
visibility | String | Access visibility of the user set. The possible states are “private”, “public” and “published”. The default value assigned at the creation of the set when omitted is “private”. For “BookmarkFolder” sets, the visibility is immutable and cannot be changed to another value besides “private”. |
title | Object (LangMap) | Name given by the user to the set. |
description | Object (LangMap) | A summary of the content and topics of the user set. |
subject | Array (String (URI)) | Overall topical content of the items in the set. These topics are restricted to URIs of the Europeana Entities. This property is repeatable when several subjects apply to the whole set. |
pinned | Integer | The number of pinned items in the “EntityBestItemsSet” (only applicable for this kind of set). This is a temporary field while a more suitable option is found to handle user suggestions for Entities. |
creator | Object (User) | Refers to a registered user which is the creator and owner of the set. |
contributor | Array (String (URI)) | Refers to the registered users which have requested changes to the set. The API will list the URIs of all users that co-created the set. |
provider | Object (Provider) | Holds a reference to an Organisation entity in Europeana or the URL of the project page in Europeana Pro together with the project name. |
created | String (Datetime) | The time at which the set was created by the user. The value must be a Literal expressed as xsd:dateTime with the UTC timezone expressed as 'Z'. |
modified | String (Datetime) | The time at which the set was modified, after creation. The value must be a Literal expressed as xsd:dateTime with the UTC timezone expressed as 'Z'. |
issued | String (Datetime) | The time at which the set was published for a wider audience in the Europeana website. The value must be a Literal expressed as xsd:dateTime with the UTC timezone expressed as 'Z'. |
isDefinedBy | String (URL) | Defines a search request to the Search API which selects the items that are part of the Set (only relevant for open sets). |
total | Integer | A non-negative integer specifying the total number of items that are contained within this set. |
first | String (URL) | Indicates the first preceding page of items in the set. |
last | String (URL) | Indicates the furthest proceeding page of the set. |
User |
id | String (URI) | The unique identifier of the user in Europeana. |
type | String | The type of the resource. Always set to "Person". |
nickname | String | The username of the user. For privacy reasons, this is the only personal information made publicly available. |
Provider |
id | String (URI) | Holds a reference to an Organisation entity in Europeana or the URL of the project page in Europeana Pro. |
type | String | The type of the resource. Always set to "Organization". |
name | String | The name of the project that contributed the set. |
Retrieving items within a user set
Retrieves a limit number of items contained within a specific user set. This method is used to traverse through the complete list of items within the user set by requesting each page of items at a time. Use the 'page' and 'pageSize' parameters to navigate or follow the links in the 'next' or 'prev' properties to navigate respectively to the next or previous page.
Request
https://api.europeana.eu/set/[IDENTIFIER]?page=[PAGE]
Accept: [ACCEPT]
Parameter | Location | Description |
---|
IDENTIFIER | path | The local identifier of the user set. |
page | query | The number of the page (defaults to 1). |
pageSize | query | The number of items to retrieve, maximum is 100, defaults to 10. |
profile | query | A parameter used to define the extent of the response. Two profiles are available “standard“ (default) and “itemDescriptions“. |
ACCEPT | header | Indicates the preferred format via which the user set is to be represented if the format is accepted by the service. Only JSON-LD is supported. |
Response
On success, the method returns a HTTP 200 with a subset of items of the user set.
The response is a JSON-LD structure composed of the following fields:
Field | Datatype | Description |
---|
User Set Page |
@context | String (URL) | The JSON-LD context |
id | String (URI) | The unique identifier of the page of items |
type | String | The type of the page of items. Always set to 'CollectionPage'. |
partOf | Object (Collection) | The user set to which this page belongs. Only the subset of information for navigating the itens is presented. |
startIndex | Integer | A non-negative integer specifying the position in sequence of the first item in the user set page. |
total | Integer | A non-negative integer specifying the total number of items in the user set page. |
items | Array (String(URI) or Object(Item) ) | The metadata for, or a reference to, the items that are part of the set page. |
prev | String (URL) | A reference to the previous page in the sequence of pages that make up the set. |
next | String (URL) | A reference to the next page in the sequence of pages that make up the set. |
Collection |
id | String (URI) | The unique identifier of the user set. |
type | String | The type of the resource. Always set to "Collection". |
total | Integer | A non-negative integer specifying the total number of items that are contained within this set. |
first | String (URL) | Indicates the first preceding page of items in the set. |
last | String (URL) | Indicates the furthest proceeding page of the set. |
Item |
id | String (URI) | The unique identifier of a record in Europeana |
… metadata for the item (see Search API documentation for an overview of the metadata) … |
Discovery
Methods for searching for items that are part of a user or to search across all user sets that are available in Europeana.
Search for items within a user set
Search for items contained within a user set based on a given selection criteria. This method is paginated similar to the listing method. Use the 'page' and 'pageSize' parameters to navigate or follow the links in the 'next' or 'prev' properties to navigate, respectively, to the next or previous page.
Request
https://api.europeana.eu/set/[IDENTIFIER]/search?query=[QUERY]
Accept: [ACCEPT]
Parameter | Location | Description |
---|
IDENTIFIER | path | The local identifier of the user set. |
query | query | The text to be used for searching. Always set to the wildcard value (ie. '*') for content search. |
qf | query | A search query filter. For the time being, can only be used with the field 'item' (local identifier of the record contained within the set). This parameter can be used multiple types if more than one query filter is needed. |
page | query | The number of the page (defaults to 1). |
pageSize | query | The number of items to retrieve, maximum is 100, defaults to 10. |
profile | query | A parameter used to define the extent of the response. Two profiles are available “standard“ (default) and “itemDescriptions“. |
ACCEPT | header | Indicates the preferred format via which the user set is to be represented if the format is accepted by the service. Only JSON-LD is supported. |
Response
On success, the method returns a HTTP 200 with a subset of items that are part of the user set and match the search criteria.
The response is a JSON-LD structure composed of the following fields:
Field | Datatype | Description |
---|
Result Page |
@context | String (URL) | The JSON-LD context |
id | String (URI) | The unique identifier of the page of items |
type | String | The type of the page of items. Always set to 'ResultPage'. |
partOf | Object (Collection) | The user set to which this page belongs. Only the subset of information for navigating the itens is presented. |
startIndex | Integer | A non-negative integer specifying the position in sequence of the first item in the user set page. |
total | Integer | A non-negative integer specifying the total number of items in the user set page. |
items | Array (String(URI) or Object(Item) ) | The metadata for, or a reference to, the items that are part of the set page. |
prev | String (URL) | A reference to the previous page in the sequence of pages that make up the set. |
next | String (URL) | A reference to the next page in the sequence of pages that make up the set. |
Collection |
id | String (URI) | The unique identifier of the user set. |
type | String | The type of the resource. Always set to "Collection". |
total | Integer | A non-negative integer specifying the total number of items that are contained within this set. |
first | String (URL) | Indicates the first preceding page of items in the set. |
last | String (URL) | Indicates the furthest proceeding page of the set. |
Item |
id | String (URI) | The unique identifier of a record in Europeana |
… metadata for the item … |
Discovery
0 Comments