13

What are the best (more or less mature, supporting more advanced logic, having acceptable performance, scalable to some extent) open source Semantic Web libraries and tools (RDF storage, reasoning, rules, queries) for Python nowadays? Historically Python tools (cwm) were among the first to appear, but it still seems that everyone uses Java back-ends for performance and Python as mere client if at all. My purpose is to learn the technology and maybe some future use in production system if it proves itself up to the task. The task is not yet defined, but as I see it its building a knowledge base, linked with some external resources, and customized facet-navigable web front-end.

If some building blocks based on Python are not good enough, then what is the suitable piece from Java/C/C++/whatever world.

Typical stack is also of interest, if there are one or two clear winners.

Thanks.

nwalke
  • 3,170
  • 6
  • 35
  • 60
Roman Susi
  • 4,135
  • 2
  • 32
  • 47
  • A similar question occurred to me. Here is what I found out so far: By the way: I think, this question should be reopened, maybe in community wiki mode. – cknoll Oct 25 '20 at 08:05

3 Answers3

13

A survey of of Python libraries and tools for Semantic Web programming is available here. It includes libraries for working with RDF as well as Python-friendly triple stores.

Toby Segaran's book Programming the Semantic Web also has a lot of programming examples in Python.

Gerrit
  • 852
  • 1
  • 9
  • 15
  • Thank you! The "Survey of Pythonic tools for RDF and Linked Data programming" is exactly what I was looking after. I only wonder why it never popped high enough while I was searching for "python semantic web"... – Roman Susi Jan 10 '12 at 18:00
  • 1
    The link has changed. The correct one is: http://www.michelepasin.org/blog/2011/02/24/survey-of-pythonic-tools-for-rdf-and-linked-data-programming/ – Kaniabi Jun 14 '13 at 18:53
2

You could check out the pyswip. It could work with the SWI-Prolog. Wish it would fit for requirement. :)

Erxin
  • 1,786
  • 4
  • 19
  • 33
  • Thanks! SWI Prolog is quite capable even for large volumes of facts. Hopefully, the power is not limited by bridging to Python. – Roman Susi Jan 01 '13 at 16:39
  • Also interesting link, which helped me http://stackoverflow.com/questions/6327167/how-to-query-rdf-owl-using-swi-prologs-semantic-web-library – Roman Susi Jan 13 '13 at 07:46
1

To name some, check out RDFLib and CubicWeb.

Aziz Alto
  • 19,057
  • 5
  • 77
  • 60