Owlready2 0.19 est disponible !

Owlready2 est un module Python pour la programmation orientée ontologie. Il permet de charger des ontologies OWL 2.0 et de les manipuler de manière transparente en Python.

Cette nouvelle version apporte un meilleur support de SPARQL, des recherches plus rapides et ajoute la syntaxe "individu.INVERSE_propriété". Elle supporte également le nouveau format de fichier compressé UMLS.

Voici les modifications :

  • Consider symmetric properties as their own inverse properties

  • Update Python objects after basic SPARQL update/delete queries (works on user-defined properties, hierarchical properties (type/subclassof) and equivalence properties)

  • Add individual.INVERSE_property

  • Add Class.INDIRECT_is_a

  • INDIRECT_is_a / INDIRECT_is_instance_of now include class contructs. ancestors() has a 'include_constructs' parameter, which defaults to False.

  • Add more aliases for XMLSchema datatypes

  • Add is_a property to class constructs

  • Add bottomObjectProperty and bottomDataProperty

  • Support ReflexiveProperties in individual.INDIRECT_property

  • Optimize Thing.subclasses()

  • Optimize search() with multiple criteria, including those done by PyMedTermino

  • Add support for destroy_entity(SWRL_rule)

  • Add support for UMLS "metathesaurus" format in addition to "full" format

  • Bugfixes: - After reasoning, keep all equivalent classes as parents of individuals (as they may have methods) - Fix IndividualPropertyAtom when creating SWRL rule - Fix SWRL parser - Fix RDF serialization for nested RDF lists - Fix removing inverse property (i.e. Prop.inverse = None) - Fix datetime parsing for date with time zone or milliseconds

La nouvelle version peut être téléchargé sur PyPI (Python Package Index) : https://pypi.python.org/pypi/Owlready2

Owlready2 0.18 est disponible !

Owlready2 est un module Python pour la programmation orientée ontologie. Il permet de charger des ontologies OWL 2.0 et de les manipuler de manière transparente en Python.

Cette nouvelle version corrige le support UMLS sous Windows (problème d'encodage de caractères) dans PyMedTermino2. Elle évite également les duplications de triplets RDF dans le quadstore.

Voici les modifications :

  • Add UNIQUE constraints for preventing dupplicated RDF triples in the quadstore

  • Add Individual.INDIRECT_is_a / Individual.INDIRECT_is_instance_of

  • Add isinstance_python() (faster than isinstance(), but do not consider equivalent_to relations)

  • Bugfixes: - Force UTF-8 encoding when importing UMLS - Be more tolerant when loading OWL file

La nouvelle version peut être téléchargé sur PyPI (Python Package Index) : https://pypi.python.org/pypi/Owlready2

Owlready2 0.17 est disponible !

Owlready2 est un module Python pour la programmation orientée ontologie. Il permet de charger des ontologies OWL 2.0 et de les manipuler de manière transparente en Python.

Cette nouvelle version supporte l'édition des règles SWRL et corrige des problème dans PyMedTermino2.

Voici les modifications :

  • SWRL rule support

  • Allows importing UMLS suppressed terms

  • Uncache entities when relaoding an ontology

  • Bugfixes: - Fix PyMedTermino2 installation - Fix data property value inferrence with debug = 1 - Fix sort() in LazyList (thanks fiveop!) - Fix World.get() and add World.get_if_loaded() - Add appropriate error message when importing UMLS with Python 3.6 - Fix individuals belonging to multiple, equivalent, classes after reasoning

La nouvelle version peut être téléchargé sur PyPI (Python Package Index) : https://pypi.python.org/pypi/Owlready2

Owlready2 0.16 est disponible !

Owlready2 est un module Python pour la programmation orientée ontologie. Il permet de charger des ontologies OWL 2.0 et de les manipuler de manière transparente en Python.

Cette nouvelle version corrige plusieurs bogues et supporte les requêtes SPARQL de type INSERT et DELETE.

Voici les modifications :

  • Optimize nested searches

  • search(sublclass_of = xxx) now returns xxx itself in the results

  • Support "with long_ontology_name as onto" syntax

  • In UMLS import, add optional parameters for preventing extraction of attributes, relations, etc

  • Support SPARQL INSERT queries

  • Optimize Pymedtermino mapping

  • Doc for PyMedTermino2

  • Bugfixes: - Fix 'Cannot release un-acquired lock' error when reasoning on inconsistent ontologies inside a 'with' statement - Fix bug when loading a property that refers to another property from a quadstore stored on disk - Fix RDF triple suppression with RDFlib when object is a datatype

La nouvelle version peut être téléchargé sur PyPI (Python Package Index) : https://pypi.python.org/pypi/Owlready2

Owlready2 0.15 est disponible !

Owlready2 est un module Python pour la programmation orientée ontologie. Il permet de charger des ontologies OWL 2.0 et de les manipuler de manière transparente en Python.

Cette nouvelle version corrige principalement les bogues de la 0.14.

Voici les modifications :

  • Can infer data property values when reasoning with Pellet

  • Optimize searches with 'type =', 'subclass_of =', or 'is_a =' parameters

  • Add Property.range_iri

  • Add _case_sensitive parameter to search()

  • Add inverse property support in RDFlib support

  • Show Java error message when reasoners crash

  • Bugfixes: - Consider inverse property in get_properties() - Fix parsing bug in reasoning with HermiT and infer_property_values = True - Namespace prefix support in RDFlib binding - Fix dupplicates values when a relation involving a property with inverse is asserted in both directions - Better workaround in case of metaclass conflict - Fix 'sqlite3.OperationalError: too many SQL variables' in searches with 'type =', 'subclass_of =', or 'is_a =' parameters

La nouvelle version peut être téléchargé sur PyPI (Python Package Index) : https://pypi.python.org/pypi/Owlready2

Owlready2 0.14 est disponible !

Owlready2 est un module Python pour la programmation orientée ontologie. Il permet de charger des ontologies OWL 2.0 et de les manipuler de manière transparente en Python.

Cette nouvelle version apporte la possibilité d'inférer les valeurs des propriétés (comme dans Protégé) et d'utiliser des règles SWRL, et une meilleure gestion des propriétés de classe et le support d'UMLS (la documentation reste à faire !). Elle corrige aussi plusieurs bogues.

Voici les modifications de la version 0.14 :

  • UMLS support (owlready2.pymedtermino2 package)

  • Can infer object property values when reasoning (thanks W Zimmer)

  • New implementation of property values; use INDIRECT_prop to get indirect values

  • Support several class property types : some, only, some + only, and direct relation

  • Automatically create defined classes via class properties

  • Support anonymous individuals, e.g. Thing(0)

  • Optimize search() when only the number of returned elements is used

  • Optimize FTS search() when using also non-FTS statements

  • Can restrict reasoning to a list of ontologies

  • Union searches (i.e. default_world.search(...) | default_world.search(...))

  • Bugfixes: - Fix functional class properties with inheritance - Fix dupplicated instance list restrictions when calling close_world(ontology) - Fix use of '*' in search - Fix synchronization, using contextvars for global variables

La nouvelle version peut être téléchargé sur PyPI (Python Package Index) : https://pypi.python.org/pypi/Owlready2

Owlready2 0.13 est disponible !

Owlready2 est un module Python pour la programmation orientée ontologie. Il permet de charger des ontologies OWL 2.0 et de les manipuler de manière transparente en Python.

Cette nouvelle version corrige plusieurs bogues et diminutions de performance liés aux nouveaux quadstore introduit dans la version précédente.

Voici les modifications de la version 0.13 :

  • Bugfixes: - Fix performance regression due to suboptimal index in the quadstore - Fix messing up with IRI ending with a / - Fix error in World cloning - Fix the addition of Thing in class's parent when redefining a class with Thing as the only parent - Fix inverse_resctriction() - Add error message when creating an existent quadstore

La nouvelle version peut être téléchargé sur PyPI (Python Package Index) : https://pypi.python.org/pypi/Owlready2

Owlready2 0.12 est disponible !

Owlready2 est un module Python pour la programmation orientée ontologie. Il permet de charger des ontologies OWL 2.0 et de les manipuler de manière transparente en Python.

Cette nouvelle version majeure utilise un nouveau quadstore plus performant, testé jusqu'à 200 millions de triplets RDF (sur DBpedia). Le support de PostgresQL a été retiré car son intérêt était très limité (les performances étant bien moins bonnes qu'avec Sqlite3).

Voici les modifications de la version 0.12 :

  • New quadstore

  • Numerical search (NumS, e.g. all patients with age > 65)

  • Nested searches

  • Synchronization for multithreading support

  • Add Class.inverse_restrictions() and Class.direct_instances()

  • Drop PostgresQL support (little interest: more complex and slower than Sqlite3)

  • Bugfixes: - Fix call to _get_by_storid2 - Fix rdfs_subclassof in doc - Fix FTS triggers - Fix boolean in RDFlib / SPARQL - Fix bug when destroying an AnnotationProperty

La nouvelle version peut être téléchargé sur PyPI (Python Package Index) : https://pypi.python.org/pypi/Owlready2

Owlready2 0.11 est disponible !

Owlready2 est un module Python pour la programmation orientée ontologie. Il permet de charger des ontologies OWL 2.0 et de les manipuler de manière transparente en Python.

Cette nouvelle version apporte deux nouveautés majeures : le support du raisonneur Pellet et la recherche plein-texte optimisée.

Voici les modifications de la version 0.11 :

  • Optimized Full-Text Search

  • Support Pellet reasoner in addition to HermiT

  • Support loading of huge OWL files (incremental load)

  • Use Class.property.indirect() for indirect Class property (instead of Class.property)

  • Add reload and reload_if_newer parameters to Ontology.load()

  • search() is now much faster on properties that have inverse

  • Add shortcut for SOME ConstrainedDatatype: e.g. age >= 65

  • Bugfixes: - Fix creation of an individual that already exists in the quadstore - Fix missing import of EntityClass in class_construct.py - Fix World.save() with RDF/XML format - Fix Thing.subclasses() and Thing.descendants() - Fix ontology's update time for ontologies created de novo in Python with Owlready - Fix reasoning when asserting new parents with equivalent classes

La nouvelle version peut être téléchargé sur PyPI (Python Package Index) : https://pypi.python.org/pypi/Owlready2

Owlready2 0.10 est disponible !

Owlready2 est un module Python pour la programmation orientée ontologie. Il permet de charger des ontologies OWL 2.0 et de les manipuler de manière transparente en Python.

Cette nouvelle version corrige de nombreux bogues et apporte le support des métadonnées de l'ontologie. Elle introduit aussi l'utilisation de Cython, pour accélérer la lecture des fichiers RDF/XML et OWL/XML. Owlready2 est désormais capable de charger ces fichiers aussi rapidement que Java !

Voici les modifications de la version 0.10 :

  • Add Ontology.metadata for adding/querying ontology metadata

  • Allows multiple individual creations with the same name/IRI, now returning the same individuals

  • Add OwlReadyInconsistentOntologyError and Word.inconsistent_classes()

  • Implement RDF/XML and OWL/XML parsing in Cython (25% speed boost for parsing)

  • Small optimization

  • Extend individual.prop.indirect() to include relations asserted at the class level

  • Add .query_owlready() method to RDF graph

  • Bugfixes: - Fix reasoning when obtaining classes equivalent to nothing - Fix World creation with backend parameters - Fix error when adding property at the class definition level - Fix loading of ontology files with no extension from onto_path - Fix properties defined with type 'RDF Property' and subproperty of 'OWL Data/Object/Annotation Property' - Support old SQLite3 versions that do not accept WITHOUT ROWID - Fix reference to undeclared entities (they were replaced by None, now by their IRI) - Fix loading and saving ontologies whose base IRI ends with / - Fix RDF query using string

La nouvelle version peut être téléchargé sur PyPI (Python Package Index) : https://pypi.python.org/pypi/Owlready2

Owlready2 0.9 est disponible !

Owlready2 est un module Python pour la programmation orientée ontologie. Il permet de charger des ontologies OWL 2.0 et de les manipuler de manière transparente en Python.

Cette nouvelle version permet d'utiliser PostgresQL à la place de SQLite3 (cependant les performances sont généralement moins bonnes). Elle facilite également l'accès aux restrictions de type SOME sur les classes, en utilisant la notation pointée "classe.propriété".

Voici les modifications de la version 0.9 :

  • PostgresQL backend (in addition to SQLite3)

  • Add 'exclusive = False' option for SQLite3 backend (slower, but allows multiple uses)

  • Use unique index in sqlite3 quadstore on resources table

  • Optimize sqlite3 quadstore by caching IRI dict (5% faster)

  • Add == support for class construct

  • Add get_namespace() support on World

  • Add 'existential restrictions as class properties' feature

  • Bugfixes: - Fix imported ontologies - Fix saving ontologies in onto_path - Fix clear() on CallbackList - Fix bug in Class IRI in ontologies whose base IRI ends with a / - Fix imported ontologies in ontologies whose base IRI ends with a /

La nouvelle version peut être téléchargé sur PyPI (Python Package Index) : https://pypi.python.org/pypi/Owlready2

Le grand tableau des ontologies

Ce grand tableau récapitule 5 notations utilisées pour les ontologies formelles en OWL : les logiques de description, la syntaxe de l'éditeur Protégé, la syntaxe d'Owlready2 en Python, et la sémantique en logique du premier ordre et en logique ensembliste. À garder à portée de main quand on travail sur les ontologies formelles !

Vous pouvez télécharger le grand tableau des ontologies (the great table of ontologies).

Owlready2 0.8 est disponible !

Owlready2 est un module Python pour la programmation orientée ontologie. Il permet de charger des ontologies OWL 2.0 et de les manipuler de manière transparente en Python.

Voici les modifications des versions 0.6, 0.7 et 0.8 (les deux premières n'ayant duré que quelques heures) :

  • Add set_datatype_iri() global function for associating a Python datatype to an IRI

  • Add nquads ontology format (useful for debugging)

  • Add support for dir() on individuals

  • Add support for ontology using https: protocol (thanks Samourkasidis Argyrios)

  • Add observe module (for registering callback when the ontology is modified)

  • Improve docs

  • Bugfixes: - Align Python floats with xsd:decimal rather than xsd:double, finally, because decimal accepts int too - Fix Class.instances() so as it returns instances of subclasses (as indicated in the doc) - Fix direct assignation to Ontology.imported_ontologies - Fix a bug in reasoning, when adding deduced facts between one loaded and one non-loaded entity - Fix search(prop = "value") when value is a string and the ontology uses localized string

La nouvelle version peut être téléchargé sur PyPI (Python Package Index) : https://pypi.python.org/pypi/Owlready2

Owlready2 0.5 est disponible !

Owlready2 est un module Python pour la programmation orientée ontologie. Il permet de charger des ontologies OWL 2.0 et de les manipuler de manière transparente en Python.

Cette nouvelle version corrige plusieurs bogues.

Elle peut être télécharger sur PyPI (Python Package Index) : https://pypi.python.org/pypi/Owlready2