Skip to content

Releases: OnroerendErfgoed/skosprovider

1.2.0

11 Aug 14:48
ed09517
Compare
Choose a tag to compare
  • Update links in README.rst (#107)
  • Update setup.py (#108)
  • Drop support for Python 3.6 (#114)

1.1.1

14 Jan 09:53
b3810cc
Compare
Choose a tag to compare
  • An empty or invalid language tag as query parameter is raising 500 Exception (#110)

1.1.0

08 Dec 12:11
1.1.0
Compare
Choose a tag to compare
  • 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

08 Dec 10:27
1.0.0
Compare
Choose a tag to compare
  • Drop support for Python 2. Only version 3.6 and higher are supported now. (#74)
  • Remove pyup suspport. (#85)
  • Update pyld and other dependencies. (#76)

0.7.1

26 May 08:46
Compare
Choose a tag to compare
  • Add check on allowed_instance_scopes being None. (#69)
  • Allow getting a provider URI without loading a Conceptscheme. (#72)
  • Try not to load the full conceptscheme when registering a provider in the
    registry. (#72)

0.7.0

05 Feb 09:49
0.7.0
Compare
Choose a tag to compare
  • 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

17 Jul 07:44
0.6.1
Compare
Choose a tag to compare
  • A provider can now receive a dataset keyword containing a dict. If present, this dict needs to have a uri attribute.
  • Update some requirements.

0.6.0

11 Aug 12:01
0.6.0
Compare
Choose a tag to compare
  • 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 and skosprovider.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 on id, label or sortlabel. The last option makes it possible to introduce arbitrary sorting for concepts, eg. to sort periods chronologically. The sort order can be specified with the sort_order parameter. (#21)
  • Remove skosprovider.providers.VocabularyProvider.expand_concept that was deprecated since 0.2.0.
  • Fixed a bug with skosprovider.skos.dict_to_label and skosprovider.skos.dict_to_note that would assign None instead of und 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 the skosprovider.registry.Registry. (#27)

0.5.3

24 Jun 17:46
Compare
Choose a tag to compare
  • When a skosprovider.providers.DictionaryProvider reads a dictionary containing a URI 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

02 Mar 20:51
Compare
Choose a tag to compare

Release 0.5.1 was a brown-paper-bag release due to some mucking about with pypi.