Releases: OnroerendErfgoed/skosprovider
Releases · OnroerendErfgoed/skosprovider
1.2.0
1.1.1
1.1.0
- Last release at this location. Development will move to main Onroerend Erfgoed Github account for future versions.
- Allow passing a list of languages to the label function. Eg. passing ['nl-BE', 'en'] will first try to match with any form of Dutch, then any form of English and finally anything else. Bear in mind that nl-BE will also match with nl, so passing ['nl-BE', 'nl', 'en'] is superfluous. (#80)
- Better error handling when registering a Conceptscheme with the registry (or removing it). (#102)
- Add a CITATION.cff file to make it easier to cite Skosprovider. (#104)
1.0.0
0.7.1
0.7.0
- Add dumpers to transform a provider, a conceptscheme, a concept or collection in to a dictionary compatible with a JSON-LD context that has been added. This makes it possible to transform a provider into Linked Data.
- Make handling of the hierarchy involving collections as thesaurus arrays more logical. A collection now has an attribute skosprovider.skos.Collection.infer_concept_relations that indicates if the members of a collection should be seen as narrower concepts of a superordinate concept. This is generally important when expanding a concept to all it's narrower concepts for searching. (#57)
- Add a new query option for querying matches with concepts from external conceptschemes to skosprovider.providers.VocabularyProvider.find. (#58)
- A registry can now carry metadata just like a provider.
- A registry now has an attribute skosprovider.registry.Registry.instance_scope that indicates how the registry is managed in the application process. All providers need to indicate what kinds of instance_scope they're compatible with. Especially important for SQLAlchemyProvider run in a web application. (#63, #66)
- Fix a bug that made it impossible for a skosprovider.providers.SimpleCsvProvider to read sources. (#36)
- Drop support for Python 3.3, 3.4 and 3.5. Adds support for 3.8. This is the last version that will support Python 2. Version 0.8.0 will drop support for Python 2.7.
0.6.1
- A provider can now receive a dataset keyword containing a dict. If present, this
dict
needs to have auri
attribute. - Update some requirements.
0.6.0
- Allow marking a note as containing HTML. (#17)
- Add languages attribute to
skosprovider.skos.ConceptScheme
to make it possible to track what languages are being used in a thesaurus. (#19) - Add a sources attribute to
skosprovider.skos.ConceptScheme
,skosprovider.skos.Collection
andskosprovider.skos.Concept
. Every source is an object that currently only has one attribute, a citation. This looks like a good universal common denominator. Just as with notes, a citation may contain HTML. (#20, #24) - Add sorting to
skosprovider.providers.VocabularyProvider.get_all
,skosprovider.providers.VocabularyProvider.find
,skosprovider.providers.VocabularyProvider.get_top_concepts
,skosprovider.providers.VocabularyProvider.get_top_display
,skosprovider.providers.VocabularyProvider.get_children_display
. Sorting can be done onid
,label
orsortlabel
. The last option makes it possible to introduce arbitrary sorting for concepts, eg. to sort periods chronologically. The sort order can be specified with thesort_order
parameter. (#21) - Remove
skosprovider.providers.VocabularyProvider.expand_concept
that was deprecated since0.2.0
. - Fixed a bug with
skosprovider.skos.dict_to_label
andskosprovider.skos.dict_to_note
that would assignNone
instead ofund
as the language for labels and notes that have no language. - Improved checking for valid URIs with e.g.
skosprovider.skos.ConceptScheme
. This was causing weird issues with registering a provider to theskosprovider.registry.Registry
. (#27)
0.5.3
- When a
skosprovider.providers.DictionaryProvider
reads a dictionary containing aURI
and that URI's None, generate a URI. (#12) - Upgrade to the newest version of language-tags, this fixes a showstopping bug on Windows machines. (#16)
- Added an examples folder with a script that demonstrates the API using a DictionaryProvider.
- Added a wheel config file.
0.5.2
Release 0.5.1 was a brown-paper-bag release due to some mucking about with pypi.