This repository has been archived by the owner on Oct 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration.js
55 lines (49 loc) · 1.74 KB
/
configuration.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
module.exports = {
// the name of the schema.org jsonld file - expected to be in this folder
schema: "schema.org.jsonld",
// the name of the ro crate context - expected to be in this folder
crateContext: "crate-context.jsonld",
// simple data types - ie not entities
simpleDataTypes: ["Text", "Date", "DateTime", "Time", "Number", "Float", "Integer"],
// classes to be mapped to a switch
selectDataTypes: ["Boolean"],
// rules for renaming properties and classes
// this happens after the datastructure has been assembled
rename: {
classes: {
MediaObject: "File",
Periodical: "Journal",
"models#Object": "RepositoryObject",
"models#Collection": "RepositoryCollection",
},
properties: {
"models#hasMember": "hasMember",
"models#hasFile": "hasFile",
},
},
// extra properties to be added to specific classes
addPropertyToClasses: {
hasPart: {
classes: [
"Dataset",
"File",
"File, ImageObject",
"File, SoftwareSourceCode",
"File, SoftwareSourceCode, ComputationalWorkflow",
"RepositoryCollection",
"RepositoryObject",
"RepositoryObject, ImageObject",
"ComputerLanguage, SoftwareApplication",
"FormalParameter",
],
},
},
// special compound class definitions
compoundClasses: [
"File, ImageObject",
"File, SoftwareSourceCode",
"RepositoryObject, ImageObject",
"ComputerLanguage, SoftwareApplication",
"File, SoftwareSourceCode, ComputationalWorkflow",
],
};