Owlready2 0.49 has been released!

Owlready is a Python module for ontology-oriented programming. It can load OWL 2.0 ontologies and manipulate them transparently in Python.

This new version includes optimizations, bugfixes, and improvement in SPARQL and terminology management.

Here are the changes:

  • Support custom Python-defined SPARQL functions (thanks Ehe)

  • Optimize STATIC SPARQL extention when used in simple union

  • Optimize SPARQL simple UNION on literals and paramaters

  • Support SPARQL queries using GROUP BY, HAVING, ORDER BY, LIMIT and/or OFFSET in subqueries

  • Support ORDER BY in SPARQL GROUP_CONCAT() aggregate function

  • Permits to customize XMLNS abbreviation for ontologies

  • Bugfixes:

    • Fix usage of OWL classes as individual's attribute value (e.g. individual.attribute = Class)

    • Fix BOUND() SPARQL function

    • Fix SPARQL queries with 2 recursive parts that refer to each other

    • Fix SPARQL queries with FILTER referring to variables inside a recursive part

    • Fix FILTER NOT EXISTS in SPARQL when using new variables

    • Fix string escape in dataproperty when using the Pellet reasoner (thanks Max Cutlyp)

The new version be downloaded from PyPI (Python Package Index): https://pypi.python.org/pypi/Owlready2