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

fusepoolP3/p3-transformer-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Transformer Implementation Library

Provides a library to implement Transformers in Java.

It supports both the asynchronous and the asynchronous modes of the REST API.

Implementations can either implement the eu.fusepool.p3.transformer.SyncTransformer or eu.fusepool.p3.transformer.AsyncTransformer interface. The SyncTransformer provides a very simple API and has also support for long-running tasks that will be exposed over the Asynchronous REST Interface.

Minimalistic sample transformers are contained in the package eu.fusepool.p3.transformer.sample. The package also contains an executable main class.

Compile and run (the sample main class) with

mvn clean install exec:java

Example invocation with curl:

$ curl -X POST -d @file.txt http://localhost:7100/
[]    a       <http://example.org/ontology#TextDescription> ;
      <http://example.org/ontology#textLength>
              "5"^^<http://www.w3.org/2001/XMLSchema#int> ;
      <http://rdfs.org/sioc/ns#content>
              "hallo"^^<http://www.w3.org/2001/XMLSchema#string> .