Monday, April 24, 2017

Modifying the shell script to create a new Sesame Repository in PowerAqua

cat | sed -e 's/projects\/BTCPowerAquaNetBeans\/myLib\/sesame2\/lib//g' | sed -e 's/\/Users\/vl474\/Trabajo\/NetBeans\\ /\/var\/lib\/tomcat7\/webapps\/poweraqua\/myLib\/sesame2/g'


This script calls:

It utilizes Sesame:

import org.openrdf.model.Resource;
import org.openrdf.repository.Repository;
import org.openrdf.repository.RepositoryConnection;
import org.openrdf.repository.http.HTTPRepository;

This should come from(?):

as described in:

Lines 121 - 129 in are telling:

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

This tells me that I need to specify where the ontology is hosted with the String path.

The sesameServerPath will be where my Sesame Server is.

The repositoryName will be the name of my repository.

Compare sesameServerPath and repositoryName with service_properties.xml in .

Note that the sesameServerPath is like <SERVER> and sesameServerPath + repositoryName is like <REPOSITORY_NAME>.

Also change the script to replace sesame*.jar and everything else in not-needed with:

1 comment: