CulturaIX Standards
Open-source converters for museum documentation standards, extracted from
CulturaIX, a collection management platform for museums and archives.
- Export: LIDO 1.0 · Dublin Core (
oai_dc) · CDWA Lite
- Import: LIDO · CSV
- Dates: parser for Greek and English date expressions ("αρχές 19ου αι.", "1821–1830", "π.Χ.", "c. 1850")
Pure TypeScript functions: no database, no network, no file system, no configuration.
You pass in a plain object and get XML back, or you pass in XML/CSV and get records back.
Status: v0.1 — the same code that produces the OAI-PMH feeds of CulturaIX,
verified byte-for-byte against it on every change.
Install
npm install culturaix-standards # (διανομή μέσω npm: απόφαση owner — αλλιώς από το git repo)
Example
import { toLido, toDublinCore } from 'culturaix-standards';
const record = {
id: 'DM-2024-001',
title: { el: 'Πορτρέτο ναυάρχου', en: 'Portrait of an admiral' },
objectType: 'painting',
creationDateDisplay: 'αρχές 19ου αι.',
actors: [{ name: { el: 'Άγνωστος καλλιτέχνης' }, predicate: 'P14_carried_out_by', crmClass: 'E21_Person' }],
};
const institution = { name: { en: 'Demo Museum' }, uri: 'https://museum.example.org' };
console.log(toLido(record, institution));
console.log(toDublinCore(record, institution));
What this library does NOT include
It is a converter library, not a collection management system. The CulturaIX platform
(API, curator application, public portal, search, AI features, migration tools)
is commercial software and is not part of this repository.
Tests
npm test # unit + snapshot tests (JavaScript only)
npm run test:xsd # schema validation with xmllint (libxml2-utils), offline
npm run test:xsd validates the LIDO, Dublin Core and CDWA Lite output against the official
schemas. Only the LIDO 1.0 and W3C schemas are included; the others are fetched or supplied
separately (GML for LIDO: test/xsd/fetch-ogc-gml.sh; oai_dc + Dublin Core:
test/xsd/fetch-oai-dc.sh; CDWA Lite: CDWA_LITE_XSD=<path>); without them those checks are
skipped with a message. Details and licences: test/xsd/README.md.
Contributing and support
Provided as-is under the Apache License 2.0. Issues are read on a best-effort basis.
Security reports: see SECURITY.md.
License
Apache License 2.0 — see LICENSE and NOTICE.
Ελληνικά — σύνοψη
Ανοιχτή βιβλιοθήκη (Apache 2.0) με τους μετατροπείς προτύπων μουσειακής τεκμηρίωσης της
CulturaIX: εξαγωγή LIDO 1.0, Dublin Core και CDWA Lite· ανάγνωση LIDO και CSV· ανάλυση
ελληνικών χρονολογιών. Δεν περιλαμβάνει την πλατφόρμα CulturaIX, που είναι εμπορικό λογισμικό.