public class PersonalitiesImporter extends AbstractImporter<Map<String,Object>,HistoricalAgent>
Map
s.
Before importing the file: delete the columns with the reordering of the first and last name add a column 'id' with a unique identifier, prefixed with EHRI-Personalities or some such.
actioner, framedGraph, log, manager, permissionScope
Constructor and Description |
---|
PersonalitiesImporter(com.tinkerpop.frames.FramedGraph<?> framedGraph,
PermissionScope permissionScope,
Actioner actioner,
ImportLog log) |
Modifier and Type | Method and Description |
---|---|
List<Map<String,Object>> |
extractDates(Map<String,Object> itemData) |
HistoricalAgent |
importItem(Map<String,Object> itemData)
Import an item representation into the graph, and return the Node.
|
HistoricalAgent |
importItem(Map<String,Object> itemData,
List<String> idPath)
Import an item representation into the graph at a certain depth, and return the Node.
|
addCallback, addErrorCallback, getActioner, getPermissionScope, getPersister, getPersister, handleCallbacks, handleError
public PersonalitiesImporter(com.tinkerpop.frames.FramedGraph<?> framedGraph, PermissionScope permissionScope, Actioner actioner, ImportLog log)
public HistoricalAgent importItem(Map<String,Object> itemData) throws ValidationError
ItemImporter
itemData
- the item representation to importValidationError
- when the item representation does not validatepublic HistoricalAgent importItem(Map<String,Object> itemData, List<String> idPath) throws ValidationError
ItemImporter
itemData
- the item representation to importidPath
- parent identifiers for ID generation,
not including permission scopeValidationError
- when the item representation does not validateCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.