marmottawrapper 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/Gemfile +3 -0
- data/LICENSE +202 -0
- data/README.md +13 -0
- data/Rakefile +6 -0
- data/Vagrantfile +24 -0
- data/bin/setup +26 -0
- data/lib/marmottawrapper/version.rb +3 -0
- data/lib/marmottawrapper.rb +116 -0
- data/marmotta/pom.xml +571 -0
- data/marmotta/src/main/resources/META-INF/beans.xml +28 -0
- data/marmotta/src/main/resources/config-defaults.properties +21 -0
- data/marmotta/src/main/resources/config-descriptions.properties +24 -0
- data/marmotta/src/main/resources/logback.xml +37 -0
- data/marmotta/src/main/webapp/META-INF/context.xml +23 -0
- data/marmotta/src/main/webapp/META-INF/jetty-web.xml +27 -0
- data/marmotta/src/main/webapp/WEB-INF/jetty-web.xml +34 -0
- data/marmotta/src/main/webapp/WEB-INF/templates/404.ftl +84 -0
- data/marmotta/src/main/webapp/WEB-INF/templates/admin.ftl +104 -0
- data/marmotta/src/main/webapp/WEB-INF/templates/rdfhtml.ftl +335 -0
- data/marmotta/src/main/webapp/WEB-INF/web.xml +177 -0
- data/marmotta/src/main/webapp/index.jsp +25 -0
- data/marmotta/src/test/resources/META-INF/beans.xml +26 -0
- data/marmotta/src/test/resources/WEB-INF/test-web.xml +188 -0
- data/marmotta/src/test/resources/jndi.properties +14 -0
- data/marmotta/src/test/resources/logback.xml +60 -0
- data/marmotta/src/test/resources/test-config.properties +68 -0
- data/marmotta/src/test/resources/verification.xml +31 -0
- data/marmottawrapper.gemspec +24 -0
- data/pom.xml +571 -0
- data/tasks/marmottawrapper.rake +32 -0
- metadata +119 -0
@@ -0,0 +1,177 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
|
4
|
+
Licensed to the Apache Software Foundation (ASF) under one
|
5
|
+
or more contributor license agreements. See the NOTICE file
|
6
|
+
distributed with this work for additional information
|
7
|
+
regarding copyright ownership. The ASF licenses this file
|
8
|
+
to you under the Apache License, Version 2.0 (the
|
9
|
+
"License"); you may not use this file except in compliance
|
10
|
+
with the License. You may obtain a copy of the License at
|
11
|
+
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
|
14
|
+
Unless required by applicable law or agreed to in writing, software
|
15
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
See the License for the specific language governing permissions and
|
18
|
+
limitations under the License.
|
19
|
+
|
20
|
+
-->
|
21
|
+
<web-app version="3.0"
|
22
|
+
xmlns="http://java.sun.com/xml/ns/javaee"
|
23
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
24
|
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
|
25
|
+
|
26
|
+
<!-- enable custom JNDI implementation -->
|
27
|
+
<listener>
|
28
|
+
<listener-class>org.apache.marmotta.platform.core.jndi.MarmottaJndiListener</listener-class>
|
29
|
+
</listener>
|
30
|
+
|
31
|
+
<!-- enable CDI / Weld for dependency injection -->
|
32
|
+
<listener>
|
33
|
+
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
|
34
|
+
</listener>
|
35
|
+
|
36
|
+
<!-- Initialise the KiWi system -->
|
37
|
+
<listener>
|
38
|
+
<listener-class>org.apache.marmotta.platform.core.servlet.MarmottaPreStartupListener</listener-class>
|
39
|
+
</listener>
|
40
|
+
|
41
|
+
<!-- RESTeasy Webservices -->
|
42
|
+
<listener>
|
43
|
+
<listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
|
44
|
+
</listener>
|
45
|
+
|
46
|
+
<!-- specifies the home directory; overridden by environment variable MARMOTTA_HOME or system property marmotta.home -->
|
47
|
+
<context-param>
|
48
|
+
<param-name>marmotta.home</param-name>
|
49
|
+
<param-value>/tmp/marmotta</param-value>
|
50
|
+
</context-param>
|
51
|
+
|
52
|
+
<!-- handle OPTIONS requests -->
|
53
|
+
<filter>
|
54
|
+
<filter-name>MarmottaOptionsFilter</filter-name>
|
55
|
+
<filter-class>org.apache.marmotta.platform.core.servlet.MarmottaOptionsFilter</filter-class>
|
56
|
+
</filter>
|
57
|
+
<filter-mapping>
|
58
|
+
<filter-name>MarmottaOptionsFilter</filter-name>
|
59
|
+
<url-pattern>/*</url-pattern>
|
60
|
+
</filter-mapping>
|
61
|
+
|
62
|
+
<!-- enables a CORS filter and maps it to any request -->
|
63
|
+
<!-- for more fine grained configuration have a look at http://software.dzhuvinov.com/cors-filter-configuration.html -->
|
64
|
+
<filter>
|
65
|
+
<!-- The CORS filter with parameters -->
|
66
|
+
<filter-name>CORS</filter-name>
|
67
|
+
<filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
|
68
|
+
|
69
|
+
<init-param>
|
70
|
+
<param-name>cors.supportedMethods</param-name>
|
71
|
+
<param-value>GET, HEAD, POST, PUT, DELETE, OPTIONS</param-value>
|
72
|
+
</init-param>
|
73
|
+
|
74
|
+
<init-param>
|
75
|
+
<param-name>cors.supportedHeaders</param-name>
|
76
|
+
<param-value>Origin, Accept, Content-Type</param-value>
|
77
|
+
</init-param>
|
78
|
+
|
79
|
+
</filter>
|
80
|
+
<filter-mapping>
|
81
|
+
<filter-name>CORS</filter-name>
|
82
|
+
<url-pattern>/*</url-pattern>
|
83
|
+
</filter-mapping>
|
84
|
+
|
85
|
+
<!-- this filter performs startup configurations for first installation -->
|
86
|
+
<filter>
|
87
|
+
<filter-name>MarmottaPreStartupFilter</filter-name>
|
88
|
+
<filter-class>org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter</filter-class>
|
89
|
+
</filter>
|
90
|
+
<filter-mapping>
|
91
|
+
<filter-name>MarmottaPreStartupFilter</filter-name>
|
92
|
+
<url-pattern>/*</url-pattern>
|
93
|
+
</filter-mapping>
|
94
|
+
|
95
|
+
<!-- Serve static resources from file system and from .jar files of the respective modules -->
|
96
|
+
<filter>
|
97
|
+
<filter-name>MarmottaResourceFilter</filter-name>
|
98
|
+
<filter-class>org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter</filter-class>
|
99
|
+
<init-param>
|
100
|
+
<!-- cache resources loaded from module jar files? -->
|
101
|
+
<param-name>kiwi.resourceCaching</param-name>
|
102
|
+
<param-value>true</param-value>
|
103
|
+
</init-param>
|
104
|
+
</filter>
|
105
|
+
<filter-mapping>
|
106
|
+
<filter-name>MarmottaResourceFilter</filter-name>
|
107
|
+
<url-pattern>/*</url-pattern>
|
108
|
+
</filter-mapping>
|
109
|
+
|
110
|
+
<!-- H2 Configuration -->
|
111
|
+
<filter>
|
112
|
+
<filter-name>MarmottaH2ConsoleFilter</filter-name>
|
113
|
+
<filter-class>org.apache.marmotta.platform.core.servlet.MarmottaH2ConsoleFilter</filter-class>
|
114
|
+
</filter>
|
115
|
+
<filter-mapping>
|
116
|
+
<filter-name>MarmottaH2ConsoleFilter</filter-name>
|
117
|
+
<url-pattern>/database/*</url-pattern>
|
118
|
+
</filter-mapping>
|
119
|
+
<servlet>
|
120
|
+
<servlet-name>H2Console</servlet-name>
|
121
|
+
<servlet-class>org.h2.server.web.WebServlet</servlet-class>
|
122
|
+
<init-param> <param-name>webAllowOthers</param-name> <param-value>true</param-value> </init-param>
|
123
|
+
<!-- <init-param> <param-name>trace</param-name> <param-value></param-value> </init-param> -->
|
124
|
+
<load-on-startup>1</load-on-startup>
|
125
|
+
</servlet>
|
126
|
+
<servlet-mapping>
|
127
|
+
<servlet-name>H2Console</servlet-name>
|
128
|
+
<url-pattern>/database/*</url-pattern>
|
129
|
+
</servlet-mapping>
|
130
|
+
|
131
|
+
<mime-mapping>
|
132
|
+
<!-- per http://www.w3.org/TR/2006/PR-xslt20-20061121/ -->
|
133
|
+
<extension>.xsl</extension>
|
134
|
+
<mime-type>application/xslt+xml</mime-type>
|
135
|
+
</mime-mapping>
|
136
|
+
|
137
|
+
<servlet>
|
138
|
+
<servlet-name>ViewStatusMessages</servlet-name>
|
139
|
+
<servlet-class>ch.qos.logback.classic.ViewStatusMessagesServlet</servlet-class>
|
140
|
+
</servlet>
|
141
|
+
|
142
|
+
<servlet-mapping>
|
143
|
+
<servlet-name>ViewStatusMessages</servlet-name>
|
144
|
+
<url-pattern>/logging/status</url-pattern>
|
145
|
+
</servlet-mapping>
|
146
|
+
|
147
|
+
<filter>
|
148
|
+
<filter-name>MarmottaWebservices</filter-name>
|
149
|
+
<filter-class>org.jboss.resteasy.plugins.server.servlet.FilterDispatcher</filter-class>
|
150
|
+
<init-param>
|
151
|
+
<param-name>javax.ws.rs.Application</param-name>
|
152
|
+
<param-value>org.apache.marmotta.platform.core.webservices.CoreApplication</param-value>
|
153
|
+
</init-param>
|
154
|
+
</filter>
|
155
|
+
|
156
|
+
<filter-mapping>
|
157
|
+
<filter-name>MarmottaWebservices</filter-name>
|
158
|
+
<url-pattern>/*</url-pattern>
|
159
|
+
</filter-mapping>
|
160
|
+
|
161
|
+
<context-param>
|
162
|
+
<param-name>resteasy.injector.factory</param-name>
|
163
|
+
<param-value>org.jboss.resteasy.cdi.CdiInjectorFactory</param-value>
|
164
|
+
</context-param>
|
165
|
+
|
166
|
+
<filter>
|
167
|
+
<filter-name>MarmottaPostStartupFilter</filter-name>
|
168
|
+
<filter-class>
|
169
|
+
org.apache.marmotta.platform.core.servlet.MarmottaPostStartupFilter
|
170
|
+
</filter-class>
|
171
|
+
</filter>
|
172
|
+
<filter-mapping>
|
173
|
+
<filter-name>MarmottaPostStartupFilter</filter-name>
|
174
|
+
<url-pattern>/*</url-pattern>
|
175
|
+
</filter-mapping>
|
176
|
+
|
177
|
+
</web-app>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<%--
|
2
|
+
|
3
|
+
Licensed to the Apache Software Foundation (ASF) under one
|
4
|
+
or more contributor license agreements. See the NOTICE file
|
5
|
+
distributed with this work for additional information
|
6
|
+
regarding copyright ownership. The ASF licenses this file
|
7
|
+
to you under the Apache License, Version 2.0 (the
|
8
|
+
"License"); you may not use this file except in compliance
|
9
|
+
with the License. You may obtain a copy of the License at
|
10
|
+
|
11
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
|
13
|
+
Unless required by applicable law or agreed to in writing, software
|
14
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
See the License for the specific language governing permissions and
|
17
|
+
limitations under the License.
|
18
|
+
|
19
|
+
--%>
|
20
|
+
<%@ page import="org.apache.marmotta.platform.core.api.config.ConfigurationService" %>
|
21
|
+
<%@ page import="org.apache.marmotta.platform.core.util.CDIContext" %>
|
22
|
+
<%
|
23
|
+
ConfigurationService configurationService = CDIContext.getInstance(ConfigurationService.class);
|
24
|
+
response.sendRedirect(configurationService.getServerUri()+configurationService.getStringConfiguration("kiwi.pages.startup"));
|
25
|
+
%>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
+
contributor license agreements. See the NOTICE file distributed with
|
5
|
+
this work for additional information regarding copyright ownership.
|
6
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
+
(the "License"); you may not use this file except in compliance with
|
8
|
+
the License. You may obtain a copy of the License at
|
9
|
+
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
See the License for the specific language governing permissions and
|
16
|
+
limitations under the License.
|
17
|
+
-->
|
18
|
+
|
19
|
+
<beans
|
20
|
+
xmlns="http://java.sun.com/xml/ns/javaee"
|
21
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
22
|
+
xsi:schemaLocation="
|
23
|
+
http://java.sun.com/xml/ns/javaee
|
24
|
+
http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
|
25
|
+
|
26
|
+
</beans>
|
@@ -0,0 +1,188 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
+
contributor license agreements. See the NOTICE file distributed with
|
5
|
+
this work for additional information regarding copyright ownership.
|
6
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
+
(the "License"); you may not use this file except in compliance with
|
8
|
+
the License. You may obtain a copy of the License at
|
9
|
+
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
See the License for the specific language governing permissions and
|
16
|
+
limitations under the License.
|
17
|
+
-->
|
18
|
+
|
19
|
+
<web-app version="2.5"
|
20
|
+
xmlns="http://java.sun.com/xml/ns/javaee"
|
21
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
22
|
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
<resource-env-ref>
|
27
|
+
<resource-env-ref-name>BeanManager</resource-env-ref-name>
|
28
|
+
<resource-env-ref-type>
|
29
|
+
javax.enterprise.inject.spi.BeanManager
|
30
|
+
</resource-env-ref-type>
|
31
|
+
</resource-env-ref>
|
32
|
+
|
33
|
+
<filter>
|
34
|
+
<filter-name>KiWiInitFilter</filter-name>
|
35
|
+
<filter-class>org.apache.marmotta.platform.core.servlet.KiWiResourceFilter</filter-class>
|
36
|
+
<init-param>
|
37
|
+
<param-name>kiwi.home</param-name>
|
38
|
+
<param-value>/tmp/kiwi-test</param-value>
|
39
|
+
</init-param>
|
40
|
+
</filter>
|
41
|
+
<filter-mapping>
|
42
|
+
<filter-name>KiWiInitFilter</filter-name>
|
43
|
+
<url-pattern>/*</url-pattern>
|
44
|
+
</filter-mapping>
|
45
|
+
|
46
|
+
|
47
|
+
<!-- enable CDI / Weld for dependency injection -->
|
48
|
+
<listener>
|
49
|
+
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
|
50
|
+
</listener>
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
<!--
|
55
|
+
RESTeasy Webservices
|
56
|
+
|
57
|
+
Every service in the package kiwi.core.webservices is offered automatically as REST webservice; add additional packages as required
|
58
|
+
-->
|
59
|
+
<listener>
|
60
|
+
<listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
|
61
|
+
</listener>
|
62
|
+
|
63
|
+
<!-- Startup the H2 database -->
|
64
|
+
<context-param>
|
65
|
+
<param-name>db.url</param-name>
|
66
|
+
<param-value>jdbc:h2:/tmp/kiwi-test/db/kiwi2;MVCC=true;DB_CLOSE_ON_EXIT=FALSE</param-value>
|
67
|
+
</context-param>
|
68
|
+
<context-param>
|
69
|
+
<param-name>db.user</param-name>
|
70
|
+
<param-value>sa</param-value>
|
71
|
+
</context-param>
|
72
|
+
<context-param>
|
73
|
+
<param-name>db.password</param-name>
|
74
|
+
<param-value>sa</param-value>
|
75
|
+
</context-param>
|
76
|
+
<context-param>
|
77
|
+
<param-name>db.tcpServer</param-name>
|
78
|
+
<param-value>-tcpAllowOthers</param-value>
|
79
|
+
</context-param>
|
80
|
+
<listener>
|
81
|
+
<listener-class>org.h2.server.web.DbStarter</listener-class>
|
82
|
+
</listener>
|
83
|
+
<servlet>
|
84
|
+
<servlet-name>H2Console</servlet-name>
|
85
|
+
<servlet-class>org.h2.server.web.WebServlet</servlet-class>
|
86
|
+
<!-- <init-param> <param-name>webAllowOthers</param-name> <param-value></param-value> </init-param>
|
87
|
+
<init-param> <param-name>trace</param-name> <param-value></param-value> </init-param> -->
|
88
|
+
<load-on-startup>1</load-on-startup>
|
89
|
+
</servlet>
|
90
|
+
<servlet-mapping>
|
91
|
+
<servlet-name>H2Console</servlet-name>
|
92
|
+
<url-pattern>/h2/*</url-pattern>
|
93
|
+
</servlet-mapping>
|
94
|
+
|
95
|
+
|
96
|
+
<!-- *************************************************************************************************** -->
|
97
|
+
<!-- Apache SOLR -->
|
98
|
+
<!-- *************************************************************************************************** -->
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
<!-- Any path (name) registered in solrconfig.xml will be sent to that filter -->
|
103
|
+
<filter>
|
104
|
+
<filter-name>SolrRequestFilter</filter-name>
|
105
|
+
<filter-class>org.apache.solr.servlet.SolrDispatchFilter</filter-class>
|
106
|
+
<init-param>
|
107
|
+
<param-name>path-prefix</param-name>
|
108
|
+
<param-value>/solr</param-value>
|
109
|
+
</init-param>
|
110
|
+
</filter>
|
111
|
+
|
112
|
+
<filter-mapping>
|
113
|
+
<!--
|
114
|
+
NOTE: When using multicore, /admin JSP URLs with a core specified
|
115
|
+
such as /solr/coreName/admin/stats.jsp get forwarded by a
|
116
|
+
RequestDispatcher to /solr/admin/stats.jsp with the specified core
|
117
|
+
put into request scope keyed as "org.apache.solr.SolrCore".
|
118
|
+
|
119
|
+
It is unnecessary, and potentially problematic, to have the SolrDispatchFilter
|
120
|
+
configured to also filter on forwards. Do not configure
|
121
|
+
this dispatcher as <dispatcher>FORWARD</dispatcher>.
|
122
|
+
-->
|
123
|
+
<filter-name>SolrRequestFilter</filter-name>
|
124
|
+
<url-pattern>/solr/*</url-pattern>
|
125
|
+
</filter-mapping>
|
126
|
+
|
127
|
+
|
128
|
+
<mime-mapping>
|
129
|
+
<extension>.xsl</extension>
|
130
|
+
<!-- per http://www.w3.org/TR/2006/PR-xslt20-20061121/ -->
|
131
|
+
<mime-type>application/xslt+xml</mime-type>
|
132
|
+
</mime-mapping>
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
<!-- EHCache Web Cache -->
|
139
|
+
<filter>
|
140
|
+
<filter-name>SimpleCachingHeadersPageCachingFilter</filter-name>
|
141
|
+
<filter-class>net.sf.ehcache.constructs.web.filter.SimpleCachingHeadersPageCachingFilter</filter-class>
|
142
|
+
<init-param>
|
143
|
+
<param-name>suppressStackTraces</param-name>
|
144
|
+
<param-value>false</param-value>
|
145
|
+
</init-param>
|
146
|
+
<init-param>
|
147
|
+
<param-name>cacheName</param-name>
|
148
|
+
<param-value>PageCache</param-value>
|
149
|
+
</init-param>
|
150
|
+
|
151
|
+
</filter>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
<filter>
|
156
|
+
<filter-name>KiWi Webservices</filter-name>
|
157
|
+
<filter-class>
|
158
|
+
org.jboss.resteasy.plugins.server.servlet.FilterDispatcher
|
159
|
+
</filter-class>
|
160
|
+
<init-param>
|
161
|
+
<param-name>javax.ws.rs.Application</param-name>
|
162
|
+
<param-value>org.apache.marmotta.platform.core.webservices.CoreApplication</param-value>
|
163
|
+
</init-param>
|
164
|
+
</filter>
|
165
|
+
|
166
|
+
<filter-mapping>
|
167
|
+
<filter-name>KiWi Webservices</filter-name>
|
168
|
+
<url-pattern>/*</url-pattern>
|
169
|
+
</filter-mapping>
|
170
|
+
|
171
|
+
<context-param>
|
172
|
+
<param-name>resteasy.injector.factory</param-name>
|
173
|
+
<param-value>org.jboss.resteasy.cdi.CdiInjectorFactory</param-value>
|
174
|
+
</context-param>
|
175
|
+
|
176
|
+
|
177
|
+
<servlet>
|
178
|
+
<servlet-name>ServletTestRunner</servlet-name>
|
179
|
+
<servlet-class>org.jboss.arquillian.protocol.servlet_3.ServletTestRunner</servlet-class>
|
180
|
+
</servlet>
|
181
|
+
|
182
|
+
|
183
|
+
<servlet-mapping>
|
184
|
+
<servlet-name>ServletTestRunner</servlet-name>
|
185
|
+
<url-pattern>/ArquillianServletRunner</url-pattern>
|
186
|
+
</servlet-mapping>
|
187
|
+
|
188
|
+
</web-app>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
#
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
#
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
11
|
+
# See the License for the specific language governing permissions and
|
12
|
+
# limitations under the License.
|
13
|
+
#
|
14
|
+
|
@@ -0,0 +1,60 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
+
contributor license agreements. See the NOTICE file distributed with
|
5
|
+
this work for additional information regarding copyright ownership.
|
6
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
+
(the "License"); you may not use this file except in compliance with
|
8
|
+
the License. You may obtain a copy of the License at
|
9
|
+
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
See the License for the specific language governing permissions and
|
16
|
+
limitations under the License.
|
17
|
+
-->
|
18
|
+
|
19
|
+
<configuration>
|
20
|
+
|
21
|
+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
22
|
+
<encoder>
|
23
|
+
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
24
|
+
</encoder>
|
25
|
+
</appender>
|
26
|
+
|
27
|
+
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
|
28
|
+
<file>marmotta-test.log</file>
|
29
|
+
<append>true</append>
|
30
|
+
<encoder>
|
31
|
+
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
32
|
+
</encoder>
|
33
|
+
</appender>
|
34
|
+
|
35
|
+
<!--
|
36
|
+
<appender name="SOCKET" class="ch.qos.logback.classic.net.SocketAppender">
|
37
|
+
<remoteHost>localhost</remoteHost>
|
38
|
+
<port>4560</port>
|
39
|
+
<reconnectionDelay>10000</reconnectionDelay>
|
40
|
+
<includeCallerData>true</includeCallerData>
|
41
|
+
</appender>
|
42
|
+
|
43
|
+
|
44
|
+
<appender name="LILITH" class="de.huxhorn.lilith.logback.appender.ClassicMultiplexSocketAppender">
|
45
|
+
<Compressing>true</Compressing>
|
46
|
+
<ReconnectionDelay>10000</ReconnectionDelay>
|
47
|
+
<IncludeCallerData>true</IncludeCallerData>
|
48
|
+
<RemoteHosts>localhost</RemoteHosts>
|
49
|
+
</appender>
|
50
|
+
-->
|
51
|
+
|
52
|
+
|
53
|
+
<logger name="org.apache.marmotta.platform.core" level="DEBUG" />
|
54
|
+
<logger name="kiwi.test" level="DEBUG" />
|
55
|
+
|
56
|
+
<root level="debug">
|
57
|
+
<appender-ref ref="FILE" />
|
58
|
+
<appender-ref ref="STDOUT" />
|
59
|
+
</root>
|
60
|
+
</configuration>
|
@@ -0,0 +1,68 @@
|
|
1
|
+
#
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
#
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
9
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
11
|
+
# See the License for the specific language governing permissions and
|
12
|
+
# limitations under the License.
|
13
|
+
#
|
14
|
+
|
15
|
+
#####################################################################################################################
|
16
|
+
# KiWi core configuration
|
17
|
+
#####################################################################################################################
|
18
|
+
|
19
|
+
|
20
|
+
# KiWi version
|
21
|
+
kiwi.version = 1.99.1
|
22
|
+
|
23
|
+
# KiWi home directory (for configuration files etc)
|
24
|
+
kiwi.home = /tmp/kiwi-test
|
25
|
+
|
26
|
+
# directory where KiWi stores the triple index for SPARQL queries (using Sesame)
|
27
|
+
sesame.home = ${kiwi.home}/triples
|
28
|
+
|
29
|
+
# base URI of this KiWi installation; used for constructing resource URIs
|
30
|
+
kiwi.context = http://localhost:9090/test/
|
31
|
+
|
32
|
+
# base URL of the KiWi installation; used for accessing additional web services
|
33
|
+
kiwi.host = http://localhost:9090/test/
|
34
|
+
|
35
|
+
#####################################################################################################################
|
36
|
+
# KiWi rendering plugins; these are applied when loading/saving content in the KiWi system
|
37
|
+
#####################################################################################################################
|
38
|
+
|
39
|
+
savelets.source=kiwi.service.render.savelet.ExtractLinksSavelet,\
|
40
|
+
kiwi.service.render.savelet.HtmlCleanerSavelet
|
41
|
+
savelets.text=kiwi.service.render.savelet.NavigationalLinksSavelet,\
|
42
|
+
kiwi.service.render.savelet.RdfaSavelet,\
|
43
|
+
kiwi.service.render.savelet.FragmentsSavelet,\
|
44
|
+
kiwi.service.render.savelet.ComponentSavelet
|
45
|
+
savelets.media=
|
46
|
+
|
47
|
+
|
48
|
+
renderlets.html.source=
|
49
|
+
renderlets.html.xom=kiwi.service.render.renderlet.ComponentRenderlet,\
|
50
|
+
kiwi.service.render.renderlet.ComponentDisplayRenderlet,\
|
51
|
+
kiwi.service.render.renderlet.RdfaRenderlet,\
|
52
|
+
kiwi.service.render.renderlet.HtmlLinkRenderlet,\
|
53
|
+
kiwi.service.render.renderlet.HtmlRdfaRenderlet,\
|
54
|
+
kiwi.service.render.renderlet.HtmlFragmentRenderlet,\
|
55
|
+
kiwi.service.render.renderlet.ImageLinkRenderlet,\
|
56
|
+
kiwi.service.render.renderlet.QueryRenderlet
|
57
|
+
|
58
|
+
|
59
|
+
renderlets.editor.source=
|
60
|
+
renderlets.editor.xom=kiwi.service.render.renderlet.ComponentRenderlet,\
|
61
|
+
kiwi.service.render.renderlet.RdfaRenderlet,\
|
62
|
+
kiwi.service.render.renderlet.EditorLinkRenderlet
|
63
|
+
|
64
|
+
renderlets.annotation.source=
|
65
|
+
renderlets.annotation.xom=kiwi.service.render.renderlet.HtmlLinkRenderlet,\
|
66
|
+
kiwi.service.render.renderlet.AnnotationLinksRenderlet
|
67
|
+
|
68
|
+
renderlets.media=
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
+
contributor license agreements. See the NOTICE file distributed with
|
5
|
+
this work for additional information regarding copyright ownership.
|
6
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
+
(the "License"); you may not use this file except in compliance with
|
8
|
+
the License. You may obtain a copy of the License at
|
9
|
+
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
See the License for the specific language governing permissions and
|
16
|
+
limitations under the License.
|
17
|
+
-->
|
18
|
+
<verifications xmlns="http://maven.apache.org/verifications/1.0.0"
|
19
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
20
|
+
xsi:schemaLocation="http://maven.apache.org/verifications/1.0.0 http://maven.apache.org/xsd/verifications-1.0.0.xsd">
|
21
|
+
<files>
|
22
|
+
<file>
|
23
|
+
<location>index.html</location>
|
24
|
+
<contains>var _SERVER_URL</contains>
|
25
|
+
</file>
|
26
|
+
<file>
|
27
|
+
<location>kiwi-version.json</location>
|
28
|
+
<contains>^\Q{"kiwi.version":"3.2.1"}\E$</contains>
|
29
|
+
</file>
|
30
|
+
</files>
|
31
|
+
</verifications>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "marmottawrapper/version"
|
4
|
+
require 'bundler'
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "marmottawrapper"
|
8
|
+
s.version = Marmottawrapper::VERSION
|
9
|
+
s.platform = Gem::Platform::RUBY
|
10
|
+
s.authors = ["Mark Matienzo", "Tom Johnson"]
|
11
|
+
s.email = ["tech@dp.la"]
|
12
|
+
s.homepage = "https://github.com/dpla/marmotta-webapp"
|
13
|
+
s.summary = %q{Convenience tasks for working with marmotta from within a ruby project.}
|
14
|
+
s.description = %q{Convenience tasks for working with marmotta from within a ruby project.}
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
s.test_files = `git ls-files -- {spec}/*`.split("\n")
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.license = 'UNSPECIFIED'
|
19
|
+
|
20
|
+
s.add_dependency 'childprocess'
|
21
|
+
|
22
|
+
s.add_development_dependency 'rake'
|
23
|
+
s.add_development_dependency 'pry'
|
24
|
+
end
|