ontolutils 0.2.0a4__tar.gz → 0.2.0a5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/PKG-INFO +1 -1
  2. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/_iana_utils.py +6 -3
  3. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils.egg-info/PKG-INFO +1 -1
  4. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/setup.cfg +1 -1
  5. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/LICENSE +0 -0
  6. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/README.rst +0 -0
  7. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/__init__.py +0 -0
  8. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/_version.py +0 -0
  9. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/cache.py +0 -0
  10. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/classes/__init__.py +0 -0
  11. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/classes/decorator.py +0 -0
  12. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/classes/jsonld.py +0 -0
  13. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/classes/query_util.py +0 -0
  14. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/classes/thing.py +0 -0
  15. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/classes/typing.py +0 -0
  16. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/classes/utils.py +0 -0
  17. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/__init__.py +0 -0
  18. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/_version.py +0 -0
  19. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/codemeta.py +0 -0
  20. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/dev.py +0 -0
  21. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/m4i.py +0 -0
  22. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/obo.py +0 -0
  23. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/pivmeta.py +0 -0
  24. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/qudt_kind.py +0 -0
  25. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/qudt_unit.py +0 -0
  26. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/schema.py +0 -0
  27. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/ssno.py +0 -0
  28. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils.egg-info/SOURCES.txt +0 -0
  29. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils.egg-info/dependency_links.txt +0 -0
  30. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils.egg-info/requires.txt +0 -0
  31. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils.egg-info/top_level.txt +0 -0
  32. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/pyproject.toml +0 -0
  33. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/setup.py +0 -0
  34. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/tests/test_classes.py +0 -0
  35. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/tests/test_namespaces.py +0 -0
  36. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/tests/test_query.py +0 -0
  37. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/tests/test_readme.py +0 -0
  38. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/tests/test_typing.py +0 -0
  39. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/tests/test_utils.py +0 -0
  40. {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/tests/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ontolutils
3
- Version: 0.2.0a4
3
+ Version: 0.2.0a5
4
4
  Summary: Utility library for the work with ontologies.
5
5
  Home-page: https://github.com/matthiasprobst/ontology-utils
6
6
  Author: Matthias Probst
@@ -27,9 +27,12 @@ def read_csv_file(filename, prefix: str) -> Dict[str, str]:
27
27
 
28
28
 
29
29
  def get_media_type(category: str) -> dict:
30
- download_link = f'https://www.iana.org/assignments/media-types/{category}.csv'
31
- csv_fname = download_file(download_link,
32
- dest_filename=iana_cache / f'{category}.csv')
30
+ """Return a dictionary of media types for the given category."""
31
+ csv_fname = iana_cache / f'{category}.csv'
32
+ if not csv_fname.exists():
33
+ download_link = f'https://www.iana.org/assignments/media-types/{category}.csv'
34
+ csv_fname = download_file(download_link,
35
+ dest_filename=iana_cache / f'{category}.csv')
33
36
  return read_csv_file(csv_fname, 'https://www.iana.org/assignments/media-types/')
34
37
 
35
38
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ontolutils
3
- Version: 0.2.0a4
3
+ Version: 0.2.0a5
4
4
  Summary: Utility library for the work with ontologies.
5
5
  Home-page: https://github.com/matthiasprobst/ontology-utils
6
6
  Author: Matthias Probst
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = ontolutils
3
- version = 0.2.0a4
3
+ version = 0.2.0a5
4
4
  author = Matthias Probst
5
5
  author_email = matthias.probst@kit.edu
6
6
  description = Utility library for the work with ontologies.
File without changes
File without changes
File without changes