当前位置: 首页>>代码示例>>Java>>正文


Java RDFXMLWriterFactory类代码示例

本文整理汇总了Java中org.openrdf.rio.rdfxml.RDFXMLWriterFactory的典型用法代码示例。如果您正苦于以下问题:Java RDFXMLWriterFactory类的具体用法?Java RDFXMLWriterFactory怎么用?Java RDFXMLWriterFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


RDFXMLWriterFactory类属于org.openrdf.rio.rdfxml包,在下文中一共展示了RDFXMLWriterFactory类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initRio

import org.openrdf.rio.rdfxml.RDFXMLWriterFactory; //导入依赖的package包/类
/**
 * This is needed, because Rio is unable to find the Parser/Writer Factories
 * automatically when the jar gets deployed as plugin inside the Neo4j
 * Server.
 */
private synchronized void initRio() {
	if (!rioInitialized) {
		RDFParserRegistry parserRegistry = RDFParserRegistry.getInstance();
		parserRegistry.add(new TurtleParserFactory());
		parserRegistry.add(new YARSParserFactory());
		parserRegistry.add(new RDFXMLParserFactory());
		parserRegistry.add(new NTriplesParserFactory());
		parserRegistry.add(new RDFJSONParserFactory());
		RDFWriterRegistry writerRegistry = RDFWriterRegistry.getInstance();
		writerRegistry.add(new TurtleWriterFactory());
		writerRegistry.add(new YARSWriterFactory());
		writerRegistry.add(new RDFXMLWriterFactory());
		writerRegistry.add(new NTriplesWriterFactory());
		writerRegistry.add(new RDFJSONWriterFactory());
		rioInitialized = true;
	}
}
 
开发者ID:lszeremeta,项目名称:neo4j-sparql-extension-yars,代码行数:23,代码来源:RepositoryRegistry.java

示例2: initRio

import org.openrdf.rio.rdfxml.RDFXMLWriterFactory; //导入依赖的package包/类
/**
 * This is needed, because Rio is unable to find the Parser/Writer Factories
 * automatically when the jar gets deployed as plugin inside the Neo4j
 * Server.
 */
private synchronized void initRio() {
	if (!rioInitialized) {
		RDFParserRegistry parserRegistry = RDFParserRegistry.getInstance();
		parserRegistry.add(new TurtleParserFactory());
		parserRegistry.add(new RDFXMLParserFactory());
		parserRegistry.add(new NTriplesParserFactory());
		parserRegistry.add(new RDFJSONParserFactory());
		RDFWriterRegistry writerRegistry = RDFWriterRegistry.getInstance();
		writerRegistry.add(new TurtleWriterFactory());
		writerRegistry.add(new RDFXMLWriterFactory());
		writerRegistry.add(new NTriplesWriterFactory());
		writerRegistry.add(new RDFJSONWriterFactory());
		rioInitialized = true;
	}
}
 
开发者ID:niclashoyer,项目名称:neo4j-sparql-extension,代码行数:21,代码来源:RepositoryRegistry.java

示例3: writeXml

import org.openrdf.rio.rdfxml.RDFXMLWriterFactory; //导入依赖的package包/类
private void writeXml( Iterable<Statement> graph )
    throws RDFHandlerException, IOException
{
    RDFWriterFactory writerFactory = new RDFXMLWriterFactory();
    RDFWriter writer = writerFactory.getWriter( System.out );
    writeOutput( writer, graph );
}
 
开发者ID:apache,项目名称:polygene-java,代码行数:8,代码来源:ApplicationXmlTest.java


注:本文中的org.openrdf.rio.rdfxml.RDFXMLWriterFactory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。