KEYS.kt 4.56 KB
Newer Older
Jonas Waeber's avatar
Jonas Waeber committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*
 * search-doc-service
 * Copyright (C) 2020 Memoriav
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */
18

19
package org.memobase.helpers
Jonas Waeber's avatar
Jonas Waeber committed
20

21
object KEYS {
Jonas Waeber's avatar
Jonas Waeber committed
22 23 24 25
    object LanguageType {
        const val metadata = "metadata"
    }

26
    object SettingsProps {
27
        const val accessTermLabelsPath = "accessTermLabelsPath"
28
        const val reuseStatementLabelsPath = "reuseStatementLabelsPath"
29
        const val documentTypeLabelsPath = "documentTypeLabelsPath"
30 31
        const val mediaUrl = "media.url"
        const val institutionTypeLabelsPath = "institutionTypeLabelsPath"
32 33
        const val elasticHost = "elastic.host"
        const val elasticPort = "elastic.port"
Jonas Waeber's avatar
Jonas Waeber committed
34 35
        const val documentsIndex = "elastic.documentsIndex"
        const val institutionIndex = "elastic.institutionIndex"
36
    }
Jonas Waeber's avatar
Jonas Waeber committed
37

38
    const val conditionsOfUse = "conditionsOfUse"
Jonas Waeber's avatar
Jonas Waeber committed
39 40 41
    const val isAssociatedWithDate = "isAssociatedWithDate"
    const val normalizedDateValue = "normalizedDateValue"
    const val sameAs = "sameAs"
42
    const val entityId = "@id"
43
    const val atType = "@type"
44 45

    // internal values
46
    const val isPublished = "isPublished"
47 48
    const val teaserColor = "teaserColor"
    const val teaserColorComputed = "teaserColorComputed"
49

50
    // Namespace rico:
51 52 53 54
    const val ricoType = "type"
    const val firstName = "firstName"
    const val lastName = "lastName"
    const val name = "name"
Jonas Waeber's avatar
Jonas Waeber committed
55
    const val title = "title"
56 57
    const val descriptiveNote = "descriptiveNote"
    const val isHolderOf = "isHolderOf"
58
    const val resultsFrom = "resultsFrom"
59
    const val affects = "affects"
60
    const val agentIsTargetOfCreationRelation = "agentIsTargetOfCreationRelation"
Jonas Waeber's avatar
Jonas Waeber committed
61 62
    const val spatial = "spatial"
    const val publishedBy = "publishedBy"
63 64
    const val isPartOf = "isPartOf"
    const val heldBy = "heldBy"
65
    const val identifiedBy = "identifiedBy"
66 67
    const val hasSubject = "hasSubject"
    const val hasLocation = "hasLocation"
68

69
    // rico classes
70
    const val Person = "Person"
71 72
    const val CorporateBody = "CorporateBody"
    const val Agent = "Agent"
73 74
    const val CarrierType = "CarrierType"
    const val Language = "Language"
75
    const val Place = "Place"
Jonas Waeber's avatar
Jonas Waeber committed
76
    const val Title = "Title"
Jonas Waeber's avatar
Jonas Waeber committed
77 78 79
    const val DateSet = "DateSet"
    const val DateRange = "DateRange"
    const val SingleDate = "SingleDate"
Jonas Waeber's avatar
Jonas Waeber committed
80 81 82
    const val Instantiation = "Instantiation"
    const val Record = "Record"

83 84 85
    // namespace rda:
    const val placeOfCapture = "P60556"
    const val producer = "P60441"
86
    const val sponsoredBy = "P60451"
87
    const val color = "P60558"
88 89 90

    // namespace skos:
    const val prefLabel = "prefLabel"
Jonas Waeber's avatar
Jonas Waeber committed
91 92
    const val Concept = "Concept"

93 94 95
    // rico:type for rico:Agent
    const val contributor = "contributor"
    const val creator = "creator"
96

97 98 99 100 101 102 103
    // namespace dct:
    const val issued = "issued"
    const val created = "created"
    const val temporal = "temporal"


    // namespace wdt:
104
    const val wikidataInstance = "P31"
105
    const val wikidataAddresses = "P6375"
106 107
    const val wikidataPostalCodes = "P281"
    const val wikidataImage = "P18"
108

109 110 111 112
    // namespace ebucore:
    const val hasGenre = "hasGenre"


113 114 115 116 117
    const val missingLabelDe = "FEHLENDES LABEL"
    const val missingLabelFr = "L'ÉTIQUETTE MANQUANTE"
    const val missingLabelIt = "GALATEO MANCANTE"
    const val missingLabelEn = "MISSING LABEL"

118 119 120 121 122
    object QueryFields {
        const val recordSetFacet = "recordSet.facet"
        const val institutionFacet = "institution.facet"
    }

Jonas Waeber's avatar
Jonas Waeber committed
123 124 125 126 127
    object TitleTypes {
        const val main = "main"
        const val series = "series"
        const val broadcast = "broadcast"
    }
128 129 130 131 132 133
    object IdentifierType {
        const val main = "main"
        const val oldMemobase = "oldMemobase"
        const val original = "original"
        const val callNumber = "callNumber"
    }
134 135 136 137 138 139 140

    object LocationType {
        const val canton = "canton"
        const val municipality = "municipality"
        const val memobaseInstitution = "memobaseInstitution"
        const val memobaseProject = "memobaseProject"
    }
141
}