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


Java RDFXMLParserFactory类代码示例

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


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

示例1: initRio

import org.openrdf.rio.rdfxml.RDFXMLParserFactory; //导入依赖的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: LDPathWrapper

import org.openrdf.rio.rdfxml.RDFXMLParserFactory; //导入依赖的package包/类
/**
 * Create an LDPathWrapper Object
 * @param backend the linkeddata backend
 */
public LDPathWrapper(final LDCacheBackend backend) {

    // Register the Sesame RDF Parsers manually
    // TODO: use the OSGi service registry as described in:
    // http://blog.osgi.org/2013/02/javautilserviceloader-in-osgi.html
    RDFParserRegistry.getInstance().add(new RDFXMLParserFactory());
    RDFParserRegistry.getInstance().add(new NTriplesParserFactory());
    RDFParserRegistry.getInstance().add(new TurtleParserFactory());
    RDFParserRegistry.getInstance().add(new N3ParserFactory());
    RDFParserRegistry.getInstance().add(new SesameJSONLDParserFactory());
    RDFParserRegistry.getInstance().add(new RDFJSONParserFactory());
    RDFParserRegistry.getInstance().add(new SesameRDFaParserFactory());
    RDFParserRegistry.getInstance().add(new TriGParserFactory());
    BooleanQueryResultParserRegistry.getInstance().add(new SPARQLBooleanXMLParserFactory());
    TupleQueryResultParserRegistry.getInstance().add(new SPARQLResultsXMLParserFactory());

    ldpath = new LDPath<Value>(backend);
}
 
开发者ID:fcrepo4-exts,项目名称:fcrepo-camel-toolbox,代码行数:23,代码来源:LDPathWrapper.java

示例3: initRio

import org.openrdf.rio.rdfxml.RDFXMLParserFactory; //导入依赖的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


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