forked from Arkisto-Platform/arkisto-type-definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.js
66 lines (64 loc) · 1.56 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
56
57
58
59
60
61
62
63
64
65
66
/**
*
* !!!NOTE!!!
*
* The schema.org-jsonld file used http urls `NOT` https. So,
* you need to use http url's in this file or things won't line up
* when you're expecting them to.
*
*/
// remap data types for properties
export const remap = {
"http://schema.org/description": {
Text: "TextArea",
TextObject: "TextArea",
},
"http://schema.org/disambiguatingDescription": {
Text: "TextArea",
},
"http://schema.org/abstract": {
Text: "TextArea",
},
"http://schema.org/citation": {
Text: "TextArea",
},
"http://schema.org/comment": {
Text: "TextArea",
},
"http://schema.org/conditionsOfAccess": {
Text: "TextArea",
},
"http://schema.org/creditText": {
Text: "TextArea",
},
"http://schema.org/temporal": {
Text: "TextArea",
},
"http://schema.org/text": {
Text: "TextArea",
},
"http://schema.org/geo": {
GeoCoordinates: "Geometry",
GeoShape: "Geometry",
},
};
// rules for renaming properties and classes
// this happens after the datastructure has been assembled
export const mappings = {
classes: {
MediaObject: "File",
Periodical: "Journal",
Object: "RepositoryObject",
Collection: "RepositoryCollection",
},
};
// define additional types to be associated for a property
export const addClassesToProperty = {
"http://schema.org/hasPart": [
"File",
"Dataset",
"RepositoryCollection",
"RepositoryObject",
"ANY",
],
};