Skip to content

Commit

Permalink
Merge pull request #20 from hsolbrig/misc_tweaks
Browse files Browse the repository at this point in the history
Misc tweaks
  • Loading branch information
hsolbrig authored Aug 5, 2021
2 parents 3a42b61 + dfe3ed7 commit bf649db
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 8 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
GitHub Action <[email protected]>
Harold Solbrig <[email protected]>
clin113jhu <[email protected]>
hsolbrig <[email protected]>
Expand Down
14 changes: 14 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
CHANGES
=======

* Update dependency on urllib3

v0.1.6
------

* Automatically generated requirements and Pipfile.lock
* Fix issue #14
* Update setup.cfg

v0.1.5
------

* Remove 3.7 unit tests
* Automatically generated requirements and Pipfile.lock
* Add github actions for unit test and update
* Update test cases to reflect rdflib 5.0 differences
* Fix issue 12
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ verify_ssl = true
requests = "*"

[packages]
rdflib = ">=5.0.0"
rdflib = "~=5.0, >=5.0.0"
pyjsg = ">=0.11.6"
rfc3987 = "*"
bcp47 = "*"
8 changes: 4 additions & 4 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion funowl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import sys
from warnings import warn

from . prefix_declarations import Prefix
from . declarations import Declaration
from . literals import Datatype, StringLiteralNoLanguage, TypedLiteral, StringLiteralWithLanguage, Literal
Expand Down Expand Up @@ -29,7 +32,11 @@
from . ontology_document import OntologyDocument, Ontology, Import
from . axioms import Axiom


if sys.version_info < (3, 8, 0):
warn(f"FunOwl needs python 3.8 or later. Current version: {sys.version_info}")

# TODO: Run coverage and test or toss anything that isn't executed
# TODO: Consider removing the streaming IO feature -- it doesn't seem to do a lot for performance and makes things compicated
# TODO: Put an official unit test in -- something like rdflib
# TODO: See table 5 in OWL Spec -- builtin solution?
# TODO: See table 5 in OWL Spec -- builtin solution?
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

bcp47
pyjsg>=0.11.6
rdflib>=5.0.0
rdflib~=5.0, >=5.0.0
rfc3987
2 changes: 1 addition & 1 deletion tests/test_owl2_test_suite/syntax_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def convert(key: str, content: str, output_format: OWLFormat=OWLFormat.func) ->
:return: Converted information if successful
"""
try:
resp = requests.post('http://www.ldf.fi/service/owl-converter/',
resp = requests.post('https://www.ldf.fi/service/owl-converter/',
data=dict(onto=content, to=output_format.name))
except ConnectionError as e:
logging.getLogger().error(f"{key}: {str(e)}")
Expand Down

0 comments on commit bf649db

Please sign in to comment.