-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now exposes more IATI data and sort the triples.
Also updated to newer appengine
- Loading branch information
Showing
21 changed files
with
297 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<jdoconfig xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig"> | ||
|
||
<persistence-manager-factory name="transactions-optional"> | ||
<property name="javax.jdo.PersistenceManagerFactoryClass" | ||
value="org.datanucleus.api.jdo.JDOPersistenceManagerFactory"/> | ||
<property name="javax.jdo.option.ConnectionURL" value="appengine"/> | ||
<property name="javax.jdo.option.NontransactionalRead" value="true"/> | ||
<property name="javax.jdo.option.NontransactionalWrite" value="true"/> | ||
<property name="javax.jdo.option.RetainValues" value="true"/> | ||
<property name="datanucleus.appengine.autoCreateDatastoreTxns" value="true"/> | ||
<property name="datanucleus.appengine.singletonPMFForName" value="true"/> | ||
</persistence-manager-factory> | ||
</jdoconfig> |
15 changes: 15 additions & 0 deletions
15
client/IDSBrowser/IDS Browser/src/META-INF/persistence.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<persistence xmlns="http://java.sun.com/xml/ns/persistence" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence | ||
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0"> | ||
|
||
<persistence-unit name="transactions-optional"> | ||
<provider>org.datanucleus.api.jpa.PersistenceProviderImpl</provider> | ||
<properties> | ||
<property name="datanucleus.NontransactionalRead" value="true"/> | ||
<property name="datanucleus.NontransactionalWrite" value="true"/> | ||
<property name="datanucleus.ConnectionURL" value="appengine"/> | ||
</properties> | ||
</persistence-unit> | ||
</persistence> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# A default log4j configuration for log4j users. | ||
# | ||
# To use this configuration, deploy it into your application's WEB-INF/classes | ||
# directory. You are also encouraged to edit it as you like. | ||
|
||
# Configure the console as our one appender | ||
log4j.appender.A1=org.apache.log4j.ConsoleAppender | ||
log4j.appender.A1.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n | ||
|
||
# tighten logging on the DataNucleus Categories | ||
log4j.category.DataNucleus.JDO=WARN, A1 | ||
log4j.category.DataNucleus.Persistence=WARN, A1 | ||
log4j.category.DataNucleus.Cache=WARN, A1 | ||
log4j.category.DataNucleus.MetaData=WARN, A1 | ||
log4j.category.DataNucleus.General=WARN, A1 | ||
log4j.category.DataNucleus.Utility=WARN, A1 | ||
log4j.category.DataNucleus.Transaction=WARN, A1 | ||
log4j.category.DataNucleus.Datastore=WARN, A1 | ||
log4j.category.DataNucleus.ClassLoading=WARN, A1 | ||
log4j.category.DataNucleus.Plugin=WARN, A1 | ||
log4j.category.DataNucleus.ValueGeneration=WARN, A1 | ||
log4j.category.DataNucleus.Enhancer=WARN, A1 | ||
log4j.category.DataNucleus.SchemaTool=WARN, A1 |
13 changes: 13 additions & 0 deletions
13
client/IDSBrowser/IDS Browser/src/nl/vu/idsbrowser/IDS_BrowserServlet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package nl.vu.idsbrowser; | ||
|
||
import java.io.IOException; | ||
import javax.servlet.http.*; | ||
|
||
@SuppressWarnings("serial") | ||
public class IDS_BrowserServlet extends HttpServlet { | ||
public void doGet(HttpServletRequest req, HttpServletResponse resp) | ||
throws IOException { | ||
resp.setContentType("text/plain"); | ||
resp.getWriter().println("Hello, world"); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
client/IDSBrowser/IDS Browser/war/WEB-INF/appengine-web.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> | ||
<application></application> | ||
<version>1</version> | ||
|
||
<!-- | ||
Allows App Engine to send multiple requests to one instance in parallel: | ||
--> | ||
<threadsafe>true</threadsafe> | ||
|
||
<!-- Configure java.util.logging --> | ||
<system-properties> | ||
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/> | ||
</system-properties> | ||
|
||
<!-- | ||
HTTP Sessions are disabled by default. To enable HTTP sessions specify: | ||
<sessions-enabled>true</sessions-enabled> | ||
It's possible to reduce request latency by configuring your application to | ||
asynchronously write HTTP session data to the datastore: | ||
<async-session-persistence enabled="true" /> | ||
With this feature enabled, there is a very small chance your app will see | ||
stale session data. For details, see | ||
http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions | ||
--> | ||
|
||
</appengine-web-app> |
Binary file added
BIN
+26.4 MB
client/IDSBrowser/IDS Browser/war/WEB-INF/lib/appengine-api-1.0-sdk-1.7.1.jar
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.38 MB
client/IDSBrowser/IDS Browser/war/WEB-INF/lib/appengine-endpoints.jar
Binary file not shown.
Binary file added
BIN
+6.8 KB
client/IDSBrowser/IDS Browser/war/WEB-INF/lib/appengine-jsr107cache-1.7.1.jar
Binary file not shown.
Binary file not shown.
13 changes: 13 additions & 0 deletions
13
client/IDSBrowser/IDS Browser/war/WEB-INF/logging.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# A default java.util.logging configuration. | ||
# (All App Engine logging is through java.util.logging by default). | ||
# | ||
# To use this configuration, copy it into your application's WEB-INF | ||
# folder and add the following to your appengine-web.xml: | ||
# | ||
# <system-properties> | ||
# <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/> | ||
# </system-properties> | ||
# | ||
|
||
# Set the default logging level for all loggers to WARNING | ||
.level = WARNING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?><web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> | ||
<servlet> | ||
<servlet-name>IDS_Browser</servlet-name> | ||
<servlet-class>nl.vu.idsbrowser.IDS_BrowserServlet</servlet-class> | ||
</servlet> | ||
<servlet-mapping> | ||
<servlet-name>IDS_Browser</servlet-name> | ||
<url-pattern>/ids_browser</url-pattern> | ||
</servlet-mapping> | ||
<welcome-file-list> | ||
<welcome-file>index.html</welcome-file> | ||
</welcome-file-list> | ||
<servlet> | ||
<servlet-name>SystemServiceServlet</servlet-name> | ||
<servlet-class>com.google.api.server.spi.SystemServiceServlet</servlet-class> | ||
<init-param> | ||
<param-name>services</param-name> | ||
<param-value/> | ||
</init-param> | ||
</servlet> | ||
<servlet-mapping> | ||
<servlet-name>SystemServiceServlet</servlet-name> | ||
<url-pattern>/_ah/spi/*</url-pattern> | ||
</servlet-mapping> | ||
</web-app> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | ||
<!-- The HTML 4.01 Transitional DOCTYPE declaration--> | ||
<!-- above set at the top of the file will set --> | ||
<!-- the browser's rendering engine into --> | ||
<!-- "Quirks Mode". Replacing this declaration --> | ||
<!-- with a "Standards Mode" doctype is supported, --> | ||
<!-- but may lead to some differences in layout. --> | ||
|
||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | ||
<title>Hello App Engine</title> | ||
</head> | ||
|
||
<body> | ||
<h1>Hello App Engine!</h1> | ||
|
||
<table> | ||
<tr> | ||
<td colspan="2" style="font-weight:bold;">Available Servlets:</td> | ||
</tr> | ||
<tr> | ||
<td><a href="ids_browser">IDS_Browser</a></td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.