Re: Issues using W3C Time Ontology

Posted by msf on
URL: http://owlready.306.s1.nabble.com/Issues-using-W3C-Time-Ontology-tp2204p2254.html

Does not work. With this code:

  from owlready2 import *
  time = get_ontology('http://www.w3.org/2006/time').load(url = "http://www.w3.org/2006/time.rdf")

I get the following error:

* Owlready2 * Warning: optimized Cython parser module 'owlready2_optimized' is not available, defaulting to slower Python implementation
Traceback (most recent call last):
  File "resourceTest.py", line 20, in <module>
    time = get_ontology('http://www.w3.org/2006/time').load(url = "http://www.w3.org/2006/time.rdf")
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/owlready2/namespace.py", line 777, in load
    try:     new_base_iri = self.graph.parse(fileobj, default_base = self.base_iri, **args)
TypeError: parse() got an unexpected keyword argument 'url'