/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package dev; import org.apache.jena.fuseki.FusekiCmd ; public class RunFuseki { public static void main(String[] args) { //demo() ; //FusekiCmd.main("--config=config.ttl") ; System.exit(0) ; main1() ; } public static void demo() { String DIR="DemoServer" ; FusekiCmd.main("--config="+name(DIR,"config.ttl"), "--pages="+name(DIR, "demo-pages")) ; System.exit(0) ; } public static String name(String DIR, String filename) { StringBuilder sb = new StringBuilder() ; if ( ! filename.startsWith("/") ) { sb.append(DIR) ; if ( ! DIR.endsWith("/") ) sb.append("/") ; } sb.append(filename) ; return sb.toString() ; } private static void main1() { FusekiCmd.main( "--update", "--mem", "--mgtPort=3131", "/ds" //"--update", "--mem", "/ds" //"--update", "--loc=/home/afs/tmp/DB", "--set=tdb:unionDefaultGraph=true", "--update", "/ds" //"--update", "--memtdb", "--set=tdb:unionDefaultGraph=true", "--update", "/ds" //"-v", //"--debug", //"--update", //"--timeout=1000,5000", //"--set=arq:queryTimeout=1000", //"--port=3030", //"--mgtPort=3031", //"--mem", //"--home=/home/afs/Projects/Fuseki", //"--loc=DB", //"--file=D.nt", //"--gzip=no", //"--desc=desc.ttl", //--pages= //"--jetty-config=jetty-fuseki.xml", //"--config=config-tdb.ttl" // "/ds" ) ; System.exit(0) ; } }