Jena TDB in Python?

我只是一个虾纸丫 提交于 2019-12-10 10:06:36

问题


Is it possible to run a Jena TDB database from a Python app to store a large amount of RDF data? What would be a native alternative in Python?


回答1:


An alternative is to run the python code under Jython not the normal C based Python run time.

Jython converts python code to the JVM language. It cannot therefore call python extensions that use C but it can call all Java classes including the Jena TDB and all pure python modules.




回答2:


An alternative is to use a SPARQL endpoint such as Apache Jena's Fuseki and just use an HTTP client from Python or any other language.

To read more about Fuseki, look here:

  • http://incubator.apache.org/jena/documentation/serving_data/



回答3:


http://code.google.com/p/python-graphite/ A Python package that make it possible to use Jena in Python



来源:https://stackoverflow.com/questions/7634618/jena-tdb-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!