本文整理汇总了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);
}
示例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);
}
示例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();
}
示例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();
}
示例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();
}
}
示例6: D2RServer
import de.fuberlin.wiwiss.d2rq.SystemLoader; //导入依赖的package包/类
public D2RServer(SystemLoader loader) {
this.loader = loader;
this.config = loader.getServerConfig();
}
示例7: storeSystemLoader
import de.fuberlin.wiwiss.d2rq.SystemLoader; //导入依赖的package包/类
public static void storeSystemLoader(SystemLoader loader,
ServletContext context) {
context.setAttribute(SYSTEM_LOADER, loader);
}
示例8: retrieveSystemLoader
import de.fuberlin.wiwiss.d2rq.SystemLoader; //导入依赖的package包/类
public static SystemLoader retrieveSystemLoader(ServletContext context) {
return (SystemLoader) context.getAttribute(SYSTEM_LOADER);
}
示例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();
}
示例10: JettyLauncher
import de.fuberlin.wiwiss.d2rq.SystemLoader; //导入依赖的package包/类
public JettyLauncher(SystemLoader loader, int port) {
this.loader = loader;
this.port = port;
}