1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <module version="2.0"> |
---|
3 | <meta> |
---|
4 | <identity> |
---|
5 | <uri>urn:org:isocat:schemacat:access:data</uri> |
---|
6 | <version>1.0.0</version> |
---|
7 | </identity> |
---|
8 | <info> |
---|
9 | <name>SCHEMAcat - data</name> |
---|
10 | <description>Access the data stored in SCHEMAcat</description> |
---|
11 | <icon>res:/data/pub/icon.png</icon> |
---|
12 | </info> |
---|
13 | </meta> |
---|
14 | <system> |
---|
15 | <dynamic/> |
---|
16 | </system> |
---|
17 | <rootspace name="SCHEMAcat - data - Development Space" uri="urn:org:isocat:schemacat:access:data"> |
---|
18 | <fileset> |
---|
19 | <!--Icon--> |
---|
20 | <regex>res:/data/pub/(.*)</regex> |
---|
21 | <rewrite>res:/pub/$1</rewrite> |
---|
22 | </fileset> |
---|
23 | <mapper> |
---|
24 | <config> |
---|
25 | <endpoint> |
---|
26 | <grammar> |
---|
27 | <active> |
---|
28 | <identifier>active:org.isocat.schemacat.access.data.user</identifier> |
---|
29 | <argument name="principal" min="0" max="1"/> |
---|
30 | <argument name="id" min="0" max="1"/> |
---|
31 | <argument name="display-name" min="0" max="1"/> |
---|
32 | <argument name="email" min="0"/> |
---|
33 | <!-- AAM: trying to pass an arbritary number of roles (max 2 here). Not working1 -> cannot read the second role. |
---|
34 | Ideally this would be used for 'roles' and 'emails'--> |
---|
35 | <argument name="role" min="0" max="2"/> |
---|
36 | </active> |
---|
37 | </grammar> |
---|
38 | <verbs>EXISTS,NEW,SOURCE,SINK</verbs> |
---|
39 | <request> |
---|
40 | <identifier>active:sloot.dpml</identifier> |
---|
41 | <argument name="operator">res:/access/user.dpml</argument> |
---|
42 | <varargs/> |
---|
43 | </request> |
---|
44 | </endpoint> |
---|
45 | <endpoint> |
---|
46 | <grammar> |
---|
47 | <active> |
---|
48 | <identifier>active:org.isocat.schemacat.access.data.users</identifier> |
---|
49 | </active> |
---|
50 | </grammar> |
---|
51 | <request> |
---|
52 | <identifier>active:sloot.dpml</identifier> |
---|
53 | <argument name="operator">res:/access/users.dpml</argument> |
---|
54 | </request> |
---|
55 | </endpoint> |
---|
56 | <endpoint> |
---|
57 | <grammar> |
---|
58 | <active> |
---|
59 | <identifier>active:org.isocat.schemacat.access.data.schemas</identifier> |
---|
60 | <argument name="userID" min="0" max="1"/> |
---|
61 | </active> |
---|
62 | </grammar> |
---|
63 | <request> |
---|
64 | <identifier>active:sloot.dpml</identifier> |
---|
65 | <argument name="operator">res:/access/schemas.dpml</argument> |
---|
66 | <argument name="userID">arg:userID</argument> |
---|
67 | </request> |
---|
68 | </endpoint> |
---|
69 | <endpoint> |
---|
70 | <grammar> |
---|
71 | <simple>res:/etc/BaseXConfig.xml</simple> |
---|
72 | </grammar> |
---|
73 | <request> |
---|
74 | <identifier>active:org.isocat.schemacat.admin.config</identifier> |
---|
75 | </request> |
---|
76 | </endpoint> |
---|
77 | </config> |
---|
78 | <space> |
---|
79 | <fileset> |
---|
80 | <regex>res:/access/.*</regex> |
---|
81 | </fileset> |
---|
82 | <import> |
---|
83 | <uri>urn:org:basex:rest</uri> |
---|
84 | </import> |
---|
85 | <import> |
---|
86 | <uri>urn:org:isocat:schemacat:admin</uri> |
---|
87 | </import> |
---|
88 | <import> |
---|
89 | <uri>urn:org:netkernel:lang:dpml</uri> |
---|
90 | </import> |
---|
91 | <import> |
---|
92 | <uri>urn:org:netkernel:lang:ncode:builtins</uri> |
---|
93 | </import> |
---|
94 | <import> |
---|
95 | <uri>urn:org:netkernel:lang:javascript</uri> |
---|
96 | </import> |
---|
97 | <import> |
---|
98 | <uri>urn:org:isocat:sloot</uri> |
---|
99 | </import> |
---|
100 | </space> |
---|
101 | </mapper> |
---|
102 | </rootspace> |
---|
103 | <rootspace name="SCHEMAcat - data - Documentation Space" public="true" |
---|
104 | uri="urn:org:isocat:schemacat:access:data:doc"> |
---|
105 | <fileset> |
---|
106 | <regex>res:/etc/system/(Books|Docs).xml</regex> |
---|
107 | </fileset> |
---|
108 | <fileset> |
---|
109 | <regex>res:/doc/.*</regex> |
---|
110 | </fileset> |
---|
111 | </rootspace> |
---|
112 | <rootspace name="SCHEMAcat - data - Unit Test Space" public="true" |
---|
113 | uri="urn:org:isocat:schemacat:access:data:test"> |
---|
114 | <fileset> |
---|
115 | <regex>res:/etc/system/Tests.xml</regex> |
---|
116 | </fileset> |
---|
117 | <fileset> |
---|
118 | <regex>res:/test/.*</regex> |
---|
119 | </fileset> |
---|
120 | <fileset> |
---|
121 | <regex>res:/debug/.*</regex> |
---|
122 | <mutable/> |
---|
123 | </fileset> |
---|
124 | <mapper> |
---|
125 | <config> |
---|
126 | <endpoint> |
---|
127 | <grammar> |
---|
128 | <simple>res:/etc/BaseXConfig.xml</simple> |
---|
129 | </grammar> |
---|
130 | <request> |
---|
131 | <identifier>active:org.isocat.schemacat.admin.config</identifier> |
---|
132 | </request> |
---|
133 | </endpoint> |
---|
134 | </config> |
---|
135 | <space> |
---|
136 | <import> |
---|
137 | <uri>urn:org:isocat:schemacat:admin</uri> |
---|
138 | </import> |
---|
139 | </space> |
---|
140 | </mapper> |
---|
141 | <!--<endpoint> |
---|
142 | <!-\- stop any configuration from module under test from polluting address space -\-> |
---|
143 | <prototype>Limiter</prototype> |
---|
144 | <grammar>res:/etc/ |
---|
145 | <regex type="anything"/> |
---|
146 | </grammar> |
---|
147 | </endpoint>--> |
---|
148 | <import> |
---|
149 | <!-- import the main space which we are testing --> |
---|
150 | <uri>urn:org:isocat:schemacat:access:data</uri> |
---|
151 | </import> |
---|
152 | <import> |
---|
153 | <uri>urn:org:basex:rest</uri> |
---|
154 | </import> |
---|
155 | <import> |
---|
156 | <uri>urn:org:netkernel:ext:layer1</uri> |
---|
157 | <private/> |
---|
158 | </import> |
---|
159 | </rootspace> |
---|
160 | </module> |
---|