Monday, April 24, 2017

The sh that works....

 Modify in the Sesame2Plugin folder.

replace the sesameServerPath, repositoryName, and path with desired strings.

public static void main(String[] args)
    String sesameServerPath = "http://localhost:8080/openrdf-sesame/";
    String repositoryName = "isp";
    String path = "";
    String baseURI = "";
    createDBFromURI(sesameServerPath, repositoryName, path, "RDF", baseURI);

Compile it into Sesame2URLDatabaseTransformer.class using the library

openrdf-sesame-(version)-onejar.jar in the path

 Copy the resulting class file to Sesame2Plugin in the poweraqua folder with all the jar files in . Specify the .jar file and class file locations in .

Create the target respository isp

run sh :

I have file directory mylib with the used files:   sesame2  Sesame2Plugin

sesame2 contains *.jar file , Sesame2Plugin contains *.class files contains:

cd /var/lib/tomcat7/webapps/poweraqua/myLib
CLASSPATH=$CLASSPATH:/var/lib/tomcat7/webapps/poweraqua/myLib/sesame2/openrdf-sesame-2.3-pr1-onejar.jar: ... .jar


java -Xmx1200M Sesame2Plugin.Sesame2URLDatabaseTransformer

No comments:

Post a Comment