-- Application configuration. local ROOT = os.getenv("PKA_ROOT") or "./" return { id = { -- Length in ASCII characters of system-generated IDs. len = 16, -- Two seeds for the random ID generator. seed = {256, 512}, }, md = { -- Single-valued fields. TODO rely on content model cardinality. single_values = { ["dc:identifier"] = true, ["dc:type"] = true, ["dc:title"] = true, ["path"] = true, ["pas:sourcePath"] = true, }, }, fs = { -- Base path to write opaque resources. ores_path = ROOT .. "data/ores/", -- Base path of LSUP store for descriptive resources (RDF). dres_path = ROOT .. "data/dres/", -- How many bytes to read when handling files. Adjust to memory -- availability. stream_chunk_size = 1024 ^ 2, -- 1Mb }, -- Namespace prefixes to populate the Pocket Archive NS map. namespace = { dc = "http://purl.org/dc/terms/", foaf = "http://xmlns.com/foaf/0.1/", pas = "http://id.pkar.knowledgetx.com/schema#", par = "urn:pkar:resource/", premis = "http://id.loc.gov/vocabulary/preservation/", rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#", rdfs = "http://www.w3.org/2000/01/rdf-schema#", xsd = "http://www.w3.org/2001/XMLSchema#", }, htmlgen = { out_dir = "./out/html", }, }