Skip to main content
Version: 1.16

REGARDS OAIS implementation

Overview

REGARDS allows to populate its OAIS catalog with products by following the OAIS recommendation.

info

This section define the global format of OAIS products.

To learn more about how to populate Regards catalog with OAIS products, see REST API Guide or AMQP API Guide

OAIS Product format

GeoJson base structure

Product formated for OAIS recommendation is based on GeoJson standard with some specific properties.

Example :

{
"type": "Feature",
"id": "regards-2296-data-1",
"ipType": "DATA",
"geometry": {
"crs": "WGS84",
"type": "Point",
"coordinates": [
30,
10
]
},
"properties": {
"contentInformations": [
{
"dataObject": {
"regardsDataType": "RAWDATA",
"filename": "regards-2296-data-1.dat",
"locations": [
{
"url": "file:///regards-input/validation/data/2296/regards-2296-data-1.dat"
}
],
"checksum": "9a964ed3be0e2e2786d82ace9d971e90",
"algorithm": "MD5"
},
"representationInformation": {
"syntax": {
"name": "TEXT",
"mimeType": "text/plain"
}
}
}
],
"pdi": {
"contextInformation": {
"tags": [
"KEYWORD"
]
},
"provenanceInformation": {
"history": []
},
"accessRightInformation": {}
},
"descriptiveInformation": {
"property1": 11056,
"date": "2018-01-20T17:22:48Z",
"property2": 35.56598,
"property3": [
"type_01",
"type_02"
],
"property4": "REGARDS demo",
"property5": [
10,
20
]
}
}
}
PropertyMandatoryDescriptionPossible values
typexFeature type. Fixed valueFeature
idx(Your) Identifier of the product to acquire. This identifier must be unique. If two features have the same id then we consider there is two different versions of the same productany text
ipTypexREGARDS type of featureCOLLECTION, DATA, DATASET
geometryStandard GeoJson geometry of the featureRFC7946 Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon
contentInformationsxFeature associated filesCan be empty
pdixPreservation Description Information-
descriptiveInformationxA group key/value containing all specific information about the product-

ContentInformation section

dataObject

{
"dataObject": {
"regardsDataType": "RAWDATA",
"filename": "regards-2296-data-1.dat",
"locations": [
{
"url": "file:///regards-input/validation/data/2296/regards-2296-data-1.dat"
}
],
"checksum": "9a964ed3be0e2e2786d82ace9d971e90",
"algorithm": "MD5"
}
}
PropertyMandatoryDescriptionPossible values
regardsDataTypexREGARDS type of fileRAWDATA , QUICKLOOK_SD, QUICKLOOK_MD, QUICKLOOK_HD, DOCUMENT, THUMBNAIL, AIP, DESCRIPTION
filenamexName of the file to acquire-
locationsxLocation of the file to acquire. Locations are described under this table.-
checksumxChecksum of the file to acquire-
algorithmxAlgorithm used to generate file checksumMD5...
fileSizeSize in bytes of the file to acquire. This property will be automaticaly calculated if the file to acquire is directly accessible-

dataObject locations

{
"locations": [
{
"url": "file:///regards/demo/data-1.dat"
},
{
"storage": "FTP Server",
"url": "ftp:/172.125.10.1/regards/demo/ftp/data-1.dat"
}
]
}
PropertyMandatoryDescriptionPossible values
storageStorage location of the file. If this property is provided, then the file is already stored and REGARDS will only keep the reference to the file. There will be no move file operation. If the storage is a configured storage in REGARDS system so the file can be accessed, if not the file will be considered as offline.Any text
urlxLocation of the file. If previous property storage is not provided, then the file will be copyed from this url to the storages defined in the metadata bloc, so ensure this url must be an accessible file:/// url protocol from the Storage microservice. If a storage has been provided then this url can be any text that can be a known url for the given storage.any text
note

To reference an online file accessible through HTTP protocol, you have to use the reference system as the example bellow.
With this reference, the file will be known by REGARDS as an online referenced file and will be accessible without any needs to configure a storage location associated.
With this type of reference, the file url provided by REGARDS meta-catalog will be the original provided url.

{
"locations": [
{
"storage": "web",
"url": "https://regardsoss.github.io/appendices/oais"
}
]
}

representationInformation

{
"representationInformation": {
"semantic": {},
"syntax": {
"name": "TEXT",
"mimeType": "text/plain"
}
}
}
PropertyMandatoryDescriptionPossible values
semantic-
namexName of the mime type of the file
mimeTypexMime type of the file to acquire
heightOptional property to define in pixel the height of an image. This property will be automaticaly fill if the file to acquire is an image and is directly accessibleNumber in pixel
widthOptional property to define in pixel the height of an image. This property will be automaticaly fill if the file to acquire is an image and is directly accessibleNumber in pixel

Preservation Description Information (pdi) section

{
"pdi": {
"contextInformation": {
"tags": [
"KEYWORD"
]
},
"provenanceInformation": {
"history": [],
"additional": {
"urn": ""
}
},
"accessRightInformation": {
}
}
}
PropertyMandatoryDescriptionPossible values
tagskeywords to add to each featureany text
provenanceInformationDescription of the origin and history of the feature.
provenanceInformation.additional.urnOriginal urn of the product, in case of dissemination for instance.Valid urn
accessRightInformationDescription of the feature access rights

REGARDS Data types

TypeDescription
RAWDATAType to reference a data file.
QUICKLOOK_SDType to reference a small resolution image of the product preview
QUICKLOOK_MDType to reference a medium resolution image of the product preview
QUICKLOOK_HDType to reference a large resolution image of the product preview
DOCUMENTType to reference a document associated to the product
THUMBNAILType to reference a thumbnail of the product
AIPType to reference the metadata file of the product
DESCRIPTIONType to reference a description of the product