當前位置: 首頁>>代碼示例>>Java>>正文


Java SystemLoader類代碼示例

本文整理匯總了Java中de.fuberlin.wiwiss.d2rq.SystemLoader的典型用法代碼示例。如果您正苦於以下問題:Java SystemLoader類的具體用法?Java SystemLoader怎麽用?Java SystemLoader使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


SystemLoader類屬於de.fuberlin.wiwiss.d2rq包,在下文中一共展示了SystemLoader類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: usage

import de.fuberlin.wiwiss.d2rq.SystemLoader; //導入依賴的package包/類
public void usage() {
	System.err.println("usage:");
	System.err.println("  d2r-query [query-options] mappingFile query");
	System.err.println("  d2r-query [query-options] [connection-options] jdbcURL query");
	System.err.println("  d2r-query [query-options] [connection-options] -l script.sql query");
	System.err.println();
	printStandardArguments(true);
	System.err.println("    query           A SPARQL query, e.g., \"SELECT * {?s rdf:type ?o} LIMIT 10\"");
	System.err.println("                    A value of @file.sparql reads the query from a file.");
	System.err.println("  Query options:");
	System.err.println("    -b baseURI      Base URI for RDF output (default: " + SystemLoader.DEFAULT_BASE_URI + ")");
	System.err.println("    -f format       One of text (default), xml, json, csv, tsv, srb, ttl");
	System.err.println("    -t timeout      Query timeout in seconds");
	System.err.println("    --verbose       Print debug information");
	System.err.println();
	System.err.println("  Database connection options (only with jdbcURL):");
	printConnectionOptions();
	System.err.println();
	System.exit(1);
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:21,代碼來源:d2r_query.java

示例2: usage

import de.fuberlin.wiwiss.d2rq.SystemLoader; //導入依賴的package包/類
public void usage() {
	System.err.println("usage:");
	System.err.println("  dump-rdf [output-options] mappingFile");
	System.err.println("  dump-rdf [output-options] [connection-options] jdbcURL");
	System.err.println("  dump-rdf [output-options] [connection-options] -l script.sql");
	System.err.println();
	printStandardArguments(true);
	System.err.println();
	System.err.println("  RDF output options:");
	System.err.println("    -b baseURI      Base URI for RDF output (default: " + SystemLoader.DEFAULT_BASE_URI + ")");
	System.err.println("    -f format       One of N-TRIPLE (default), RDF/XML, RDF/XML-ABBREV, TURTLE");
	System.err.println("    -o outfile      Output file name (default: stdout)");
	System.err.println("    --verbose       Print debug information");
	System.err.println();
	System.err.println("  Database connection options (only with jdbcURL):");
	printConnectionOptions();
	System.err.println();
	System.exit(1);
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:20,代碼來源:dump_rdf.java

示例3: usage

import de.fuberlin.wiwiss.d2rq.SystemLoader; //導入依賴的package包/類
public void usage() {
	System.err.println("usage:");
	System.err.println("  d2r-server [server-options] mappingFile");
	System.err.println("  d2r-server [server-options] [connection-options] jdbcURL");
	System.err.println("  d2r-server [server-options] [connection-options] -l script.sql");
	System.err.println();
	printStandardArguments(true);
	System.err.println();
	System.err.println("  Server options:");
	System.err.println("    -p port         Port where to start up the server (default: 2020)");
	System.err.println("    -b baseURI      Server's base URI (default: " + SystemLoader.DEFAULT_BASE_URI + ")");
	System.err.println("    --fast          Use all engine optimizations (recommended)");
	System.err.println("    --verbose       Print debug information");
	System.err.println();
	System.err.println("  Database connection options (only with jdbcURL):");
	printConnectionOptions();
	System.err.println();
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:19,代碼來源:server.java

示例4: run

import de.fuberlin.wiwiss.d2rq.SystemLoader; //導入依賴的package包/類
public void run(CommandLine cmd, SystemLoader loader) {
	if (cmd.numItems() == 1) {
		loader.setMappingFileOrJdbcURL(cmd.getItem(0));
	}

	loader.setResourceStem("resource/");
	if (cmd.contains(fastArg)) {
		loader.setFastMode(true);
	}
	if (cmd.contains(portArg)) {
		loader.setPort(Integer.parseInt(cmd.getArg(portArg).getValue()));
	}
	if (cmd.contains(baseArg)) {
		loader.setSystemBaseURI(cmd.getArg(baseArg).getValue());
	}

	loader.getModelD2RQ();
	JettyLauncher launcher = loader.getJettyLauncher();
	launcher.start();
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:21,代碼來源:server.java

示例5: run

import de.fuberlin.wiwiss.d2rq.SystemLoader; //導入依賴的package包/類
public void run(CommandLine cmd, SystemLoader loader) throws IOException {
	if (cmd.numItems() == 1) {
		loader.setJdbcURL(cmd.getItem(0));
	}
	
	PrintStream out;
	if (cmd.contains(outfileArg)) {
		File f = new File(cmd.getArg(outfileArg).getValue());
		log.info("Writing to " + f);
		out = new PrintStream(new FileOutputStream(f));
	} else {
		log.info("Writing to stdout");
		out = System.out;
	}

	MappingGenerator generator = loader.openMappingGenerator();
	try {
		if (cmd.contains(vocabAsOutput)) {
			Model model = generator.vocabularyModel();
			model.write(out, "TURTLE");
		} else {
			generator.writeMapping(out);
		}
	} finally {
		loader.closeMappingGenerator();
	}
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:28,代碼來源:generate_mapping.java

示例6: D2RServer

import de.fuberlin.wiwiss.d2rq.SystemLoader; //導入依賴的package包/類
public D2RServer(SystemLoader loader) {
	this.loader = loader;
	this.config = loader.getServerConfig();
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:5,代碼來源:D2RServer.java

示例7: storeSystemLoader

import de.fuberlin.wiwiss.d2rq.SystemLoader; //導入依賴的package包/類
public static void storeSystemLoader(SystemLoader loader,
		ServletContext context) {
	context.setAttribute(SYSTEM_LOADER, loader);
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:5,代碼來源:D2RServer.java

示例8: retrieveSystemLoader

import de.fuberlin.wiwiss.d2rq.SystemLoader; //導入依賴的package包/類
public static SystemLoader retrieveSystemLoader(ServletContext context) {
	return (SystemLoader) context.getAttribute(SYSTEM_LOADER);
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:4,代碼來源:D2RServer.java

示例9: AutoReloadableDataset

import de.fuberlin.wiwiss.d2rq.SystemLoader; //導入依賴的package包/類
public AutoReloadableDataset(SystemLoader loader, String watchedFile, boolean autoReload) {
	this.loader = loader;
	this.watchedFile = watchedFile == null ? null : new File(watchedFile);
	this.autoReload = autoReload;
	reload();
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:7,代碼來源:AutoReloadableDataset.java

示例10: JettyLauncher

import de.fuberlin.wiwiss.d2rq.SystemLoader; //導入依賴的package包/類
public JettyLauncher(SystemLoader loader, int port) {
	this.loader = loader;
	this.port = port;
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:5,代碼來源:JettyLauncher.java


注:本文中的de.fuberlin.wiwiss.d2rq.SystemLoader類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。