Releases: althonos/pronto
Releases · althonos/pronto
2.2.1
Fixed
- Extraction of subclasses/superclasses hierarchy from nested imports.
- Serialization of OBO frames not being done in order.
- Parsing issue with
anti_symmetric
clauses in OBO typedefs. - Xrefs not being extracted when declared as axioms in RDF/XML documents.
ResourceWarning
when creatingOntology
from file-handles not mapping
to a filesystem location.
2.2.0
Added
threads
parameter toOntology
constructor to control the number of
threads used by parsers supporting multithreading (OBO and OBO JSON at
the moment).- Deprecation warnings for suspected uses of the
is_a
pseudo-relationship
since subclasses/superclasses is now to be handled by the ownerOntology
. - Support for subclass/superclass edition directly from the objects returned
byTerm.subclasses()
andTerm.superclasses()
. (#84)
Changed
- Updated
fastobo
tov0.8
, which reduce memory footprint of identifiers,
and improves the parser speed. - Improved OBO parser performance using threading plus zero-copy validation
of identifiers onXref
instantiation. - Improved performance in debug mode by having the typechecker only extract
the wrapped function signature once.
Fixed
- OBO parser crashing on files containing
idspace
clauses in their headers. - Reference management issue with binary operations of
TermSet
.
Removed
nanoset
depency, which was not useful anymore in Python 3.8 and caused
issues with multithreading when processing OBO frames in parallel.
2.1.0
2.0.1
Fixed
- Internal handling of ontology data forcing an
Ontology
to outlive all
of theTerm
s created from it. Term.id
property missing a return type annotation.Term.equivalent_to
not returning aTermSet
but a set of strings.
Changed
- Refactored implementation of
SubclassesIterator
and
SuperclassesIterator
to make both use the interal subclassing cache. - Make
Term.is_leaf
use internal subclassing cache to make it run in
constant time.
2.0.0
Added
TermSet.subclasses
andTermSet.superclasses
methods to query all
the subclasses / superclasses of allTerm
.TermSet
class to the top-levelpronto
module.- Dynamic management of subclassing cache for the
Ontology
class. - Setters for
Term.consider
,Term.union_of
andTerm.intersection_of
.
Removed
cache
keyword argument for theOntology
.
Fixed
SuperclassesIterator.to_set
being namedto_self
because of a typo.- Several bugs affecting the
fastobo
-backed serializer.
1.2.0
Added
- Parameter
with_self
to disable reflexivity ofTerm.subclasses
and
Term.superclasses
iterators. TermSet
class which stores a set of terms efficiently while providing
some useful shortcuts to access the underlying data.
Changed
- Moved code of
Term.subclasses
andTerm.superclasses
to a dedicated
iterator class in thepronto.logic
submodule. - Dropped
contexter
requirement.
Fixed
- Fix a typo in
Synonym.type
setter leading to a potential bug when
the giventype
isNone
. - Fix miscellaneous bugs found with
mypy
. fastobo
serializer crashing on namespace clauses because of a type
issue.fastobo
parsers using data version clauses as format version clauses.