This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest-nsl-mapper-config.groovy
63 lines (58 loc) · 2.64 KB
/
test-nsl-mapper-config.groovy
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
grails.config.locations = ["file:test-nsl-mapper-config.groovy"]
grails.serverURL = 'http://localhost:7070/nsl-mapper'
mapper {
resolverURL = 'http://localhost:7070/nsl-mapper/boa'
contextExtension = 'boa' //extension to the context path (after nsl-mapper).
shards = [
apni : [
baseURL: 'http://localhost:8080',
service: [
html: { ident ->
"services/${ident.objectType}/${ident.nameSpace}/${ident.idNumber}"
},
json: { ident ->
"services/${ident.objectType}/${ident.nameSpace}/${ident.idNumber}"
},
xml : { ident ->
"services/${ident.objectType}/${ident.nameSpace}/${ident.idNumber}"
},
rdf : { ident ->
String url = "DESCRIBE <http://biodiversity.org.au/boa/${ident.objectType}/${ident.nameSpace}/${ident.idNumber}>".encodeAsURL()
"sparql/?query=${url}"
}
]
],
ausmoss: [
baseURL: 'http://localhost:8080',
service: [
html: { ident ->
"services/${ident.objectType}/${ident.nameSpace}/${ident.idNumber}"
},
json: { ident ->
"services/${ident.objectType}/${ident.nameSpace}/${ident.idNumber}"
},
xml : { ident ->
"services/${ident.objectType}/${ident.nameSpace}/${ident.idNumber}"
},
rdf : { ident ->
String url = "DESCRIBE <http://biodiversity.org.au/boa/${ident.objectType}/${ident.nameSpace}/${ident.idNumber}>".encodeAsURL()
"sparql/?query=${url}"
}
]
],
foa : [
baseURL: 'http://biodiversity.org.au/',
service: [
html: { ident ->
"foa/taxa/${ident.idNumber}/summary"
}
]
]]
}
api.auth = [
'blah-blah-blah-blah-blah': [
application: 'apni-services',
roles : ['admin'],
host : '127.0.0.1'
]
]