Commit a6a3e30c authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Merge branch 'integrateRico2EDM'

parents 4116e35f 95de4f67
##OAI Index Field Description
### id
document identifier
### document
complete record delivered by the OAI API - as starter for memobase only Europeana EDM format
### format
label for the format stored in the document field (for europeana edm)
could be used for oai set purposes
### published
[true|false]
indicator if document should be delivered (harvested) by the OAI API
### recordset
the data the document is part of - (Bestand) don't know if we use this for the API at the moment
### institution
institution the data belongs to
### lastUpdatedDate
timestamp necessary for harvesting (from | until)
......@@ -22,18 +22,27 @@ PUT _template/<nameOfTemplate>-template
```
### CURL
Create a tunnel first:
```bash
ssh -L 8080:mb-es1:8080 swissbib@mb-es1.memobase.unibas.ch
```
#### Documents (Records & Instantiations)
```bash
curl -X PUT "localhost:8080/_template/documents-template" -H 'Content-Type: application/json' -d @documents.template.json
```
#### Institutions
```bash
curl -X PUT "localhost:8080/_template/institutions-template" -H 'Content-Type: application/json' -d @institutions.template.json
```
#### Record Sets
```bash
curl -X PUT "localhost:8080/_template/record-sets-template" -H 'Content-Type: application/json' -d @record-sets.template.json
```
#### Reports
```bash
curl -X PUT "localhost:8080/_template/reports-template" -H 'Content-Type: application/json' -d @reports.template.json
```
#### RICO to EDM
```bash
curl -X PUT "localhost:8080/_template/oai-template" -H 'Content-Type: application/json' -d @rico2edm.template.json
```
\ No newline at end of file
{
"index_patterns": [
"oai*"
],
"settings": {
"number_of_replicas": 1,
"number_of_shards": 3
},
"mappings": {
"date_detection": false,
"properties": {
"id": {
"type": "keyword"
},
"document": {
"type": "keyword",
"index": false
},
"format": {
"type": "keyword"
},
"published": {
"type": "boolean"
},
"recordset": {
"type": "keyword"
},
"lastUpdatedDate": {
"type": "keyword",
"fields": {
"sort": {
"type": "date"
}
}
}
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment