Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
XSLT customization
Browse files Browse the repository at this point in the history
  • Loading branch information
danilogiacomi committed Feb 11, 2015
1 parent 79aea8e commit 2797528
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
language: java
before_install: mvn install -DskipTests=true -DfinalName=batchrefine-factory-gui-$TRAVIS_TAG
before_install: mvn install -DskipTests=true -DfinalName=xslt-factory-gui-$TRAVIS_TAG
deploy:
provider: releases
api_key:
secure: LZJ+lQmKb0ZarneNSDv79ctKnxLFptRRM2bxElrIcdZ8zH2kuwtiuK3Lbiz88yJOfpZnP2HIqAbpaBTxiO/6B7HsoSoO+UHvRD/08RA9/hL0Ey8ignTf0bG7h1djp1fPdJIcz6lb3nvOyX8Mx6lar7naPbPlZAUHTh3h/swQdm0=
file: target/batchrefine-factory-gui-$TRAVIS_TAG-jar-with-dependencies.jar
file: target/xslt-factory-gui-$TRAVIS_TAG-jar-with-dependencies.jar
on:
repo: fusepoolP3/p3-batchrefine-factory-gui
repo: fusepoolP3/p3-xslt-factory-gui
tags: true
all_branches: true
6 changes: 3 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

A GUI to configure a batchrefine-transfomer.
A GUI to configure a xslt-transfomer.

Compile with

Expand All @@ -9,9 +9,9 @@ Compile with
and start with

cd target
java -jar p3-batchrefine-transformer-factory-gui-*-jar-with-dependencies.jar
java -jar p3-xslt-transformer-factory-gui-*-jar-with-dependencies.jar


Now you should be able to access the service at:

http://localhost:8101/?transformerBase=http://hetzy1.spaziodati.eu:7100/&transformerRegistry=http://sandbox.fusepool.info:8181/ldp/tr-ldpc#
http://localhost:8101/?transformerBase=http://sanbox.fusepool.info:8164&transformerRegistry=http://sandbox.fusepool.info:8181/ldp/tr-ldpc#
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>eu.fusepool.p3</groupId>
<artifactId>p3-batchrefine-transformer-factory-gui</artifactId>
<artifactId>p3-xslt-transformer-factory-gui</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>

Expand All @@ -11,7 +11,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<main.class>eu.fusepool.p3.gui.batchrefine.server.Main</main.class>
<main.class>eu.fusepool.p3.gui.xslt.server.Main</main.class>
<jersey-version>1.8</jersey-version>
<finalName>${project.artifactId}-${project.version}</finalName>
</properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.fusepool.p3.gui.batchrefine.server;
package eu.fusepool.p3.gui.xslt.server;

import org.wymiwyg.commons.util.arguments.ArgumentsWithHelp;
import org.wymiwyg.commons.util.arguments.CommandLine;
Expand All @@ -7,7 +7,7 @@ public interface Arguments extends ArgumentsWithHelp {

@CommandLine(longName = "port", shortName = {"P"}, required = false,
defaultValue = "8101",
description = "The port on which the batchrefine tranformer factory shall listen")
description = "The port on which the xslt tranformer factory shall listen")
public int getPort();

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.fusepool.p3.gui.batchrefine.server;
package eu.fusepool.p3.gui.xslt.server;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package eu.fusepool.p3.gui.batchrefine.server;
package eu.fusepool.p3.gui.xslt.server;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</servlet-class>
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>eu.fusepool.p3.gui.batchrefine.server</param-value>
<param-value>eu.fusepool.p3.gui.xslt.server</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
Expand Down
12 changes: 6 additions & 6 deletions src/main/resources/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="description" content="">
<title>Batchrefine Transformer Factory UI</title>
<title>XSLT Transformer Factory UI</title>

<!-- Bootstrap core CSS -->
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
Expand All @@ -24,15 +24,15 @@
<div id="main" class="container theme-showcase well">
<div class="form-horizontal" role="form">
<div class="form-group">
<label for="refineJson" class="col-sm-2 control-label">
URI of the Refine JSON:
<label for="xslt" class="col-sm-2 control-label">
URI of the XSLT configuration file:
</label>
<div class="col-sm-10"><input type="text" class="form-control" name="refineJson" id="refineJson" size="80" value="http://" /><br/>
<span style="color: grey">(e.g. https://raw.githubusercontent.com/fusepoolP3/batchrefine/master/engines/engines-core/src/test/resources/transforms/osterie-rdfize.json)</span></div>
<div class="col-sm-10"><input type="text" class="form-control" name="xslt" id="xslt" size="80" value="http://" /><br/>
<span style="color: grey">(e.g. https://raw.githubusercontent.com/fusepoolP3/p3-transformer-configs/master/trentino-events/events-vt.xsl)</span></div>
</div>
<div class="form-group">
<label for="transformerBase" class="col-sm-2 control-label">
Refine Transformer Base URI:
XSLT Transformer Base URI:
</label>
<div class="col-sm-10 "><input type="text" class="form-control" id="transformerBase" name="transformerBase" size="80"/></div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/webapp/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $(document).ready(function () {
var resultDiv = $("#resultDiv");
resultDiv.hide();
function transformerUri() {
return tranformerBase+"?refinejson="+encodeURIComponent($("#refineJson").val());
return tranformerBase+"?xslt="+encodeURIComponent($("#xslt").val());
}
$('#generate').on("click", function() {
$('#resultValue').val(transformerUri());
Expand All @@ -22,12 +22,12 @@ $(document).ready(function () {
"@prefix trldpc: <http://vocab.fusepool.info/trldpc#> ."+
"<> a trldpc:TransformerRegistration;"+
" trldpc:transformer <"+transformerUri()+">;"+
" dct:title 'Batchrefine transformer'@en;"+
" dct:description 'A Batchrefine transformer using "+$("#refineJson").val()+"'.";
" dct:title 'XSLT transformer'@en;"+
" dct:description 'An XSLT transformer using "+$("#xslt").val()+"'.";
//hideMessages();
startLoading();
var container = $("#transformerRegistry").val();
var tentativeName = "batchrefine-transformer";
var tentativeName = "xslt-transformer";
var headerCollection = { "Slug" : tentativeName };
function registerSuccess(response, textStatus, request) {
// Getting the name of the created resource & letting the user know about the successful creation
Expand Down

0 comments on commit 2797528

Please sign in to comment.