简体   繁体   中英

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. 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. 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. Can I still use the SimpleTcProvider? Should I use Fuseki? If you have any examples that would be very much appreciated!

Found it. It works with SingleTdbDatasetTcProvider.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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