简体   繁体   English

使用SimpleTcProvider的SPARQL查询

[英]SPARQL Queries with SimpleTcProvider

I'm new to Jena, Clerezza, and OSGI so hopefully you'll forgive my ignorance... I'm trying to use Apache Stanbol to make a general enhancement engine that takes as a string parameter a SPARQL query and then works on the enhancements produced by the enhancement chain so far. 我是Jena,Clerezza和OSGI的新手,所以希望您能原谅我的无知...我正在尝试使用Apache Stanbol制作一个通用增强引擎,该引擎将SPARQL查询作为字符串参数,然后在到目前为止,增强链产生的增强。 I use a JenaSparqlEngine and a SimpleTcProvider to create a TcManager which can then execute the sparql queries as strings on the metadata of the content item. 我使用JenaSparqlEngine和SimpleTcProvider创建一个TcManager,然后可以将它作为字符串在内容项的元数据上执行sparql查询。 That works fine for read only queries, but when I try to use update queries I get parser exceptions. 这对于只读查询很好用,但是当我尝试使用更新查询时,我得到了解析器异常。 So I'm guessing I have to use (Jena) UpdateAction to perform update operations. 所以我想我必须使用(Jena)UpdateAction来执行更新操作。 Can I still use the SimpleTcProvider? 我仍然可以使用SimpleTcProvider吗? Should I use Fuseki? 我应该使用Fuseki吗? If you have any examples that would be very much appreciated! 如果您有任何示例,将不胜感激!

Found it. 找到了。 It works with SingleTdbDatasetTcProvider. 它与SingleTdbDatasetTcProvider一起使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM