Hello,
I have installed onto spy on a Mac running 10.10.5. When I try calling "ontospy http://purl.org/spar/frbr" I get the following error:
OntoSpy v1.6.8.3
Local library: '/Users/squiresrb/.ontospy/models/'
You passed the argument: http://purl.org/spar/frbr
Traceback (most recent call last):
File "/Users/squiresrb/anaconda/bin/ontospy", line 11, in
sys.exit(main())
File "/Users/squiresrb/anaconda/lib/python3.5/site-packages/ontospy/ontospy.py", line 235, in main
g = Graph(args[0])
File "/Users/squiresrb/anaconda/lib/python3.5/site-packages/ontospy/core/graph.py", line 82, in init
self.OWLTHING = OntoClass(rdflib.OWL.Thing, rdflib.OWL.Class, self.namespaces)
File "/Users/squiresrb/anaconda/lib/python3.5/site-packages/ontospy/core/entities.py", line 259, in init
self.slug = "class-" + str(self.id) + "-" + slugify(self.qname)
File "/Users/squiresrb/anaconda/lib/python3.5/site-packages/ontospy/core/util.py", line 856, in slugify
value = unicode(re.sub('[^\w\s-]', '', value).strip().lower())
File "/Users/squiresrb/anaconda/lib/python3.5/re.py", line 182, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: cannot use a string pattern on a bytes-like object
Hello, I have installed onto spy on a Mac running 10.10.5. When I try calling "ontospy http://purl.org/spar/frbr" I get the following error: OntoSpy v1.6.8.3
Local library: '/Users/squiresrb/.ontospy/models/'
You passed the argument: http://purl.org/spar/frbr Traceback (most recent call last): File "/Users/squiresrb/anaconda/bin/ontospy", line 11, in
sys.exit(main())
File "/Users/squiresrb/anaconda/lib/python3.5/site-packages/ontospy/ontospy.py", line 235, in main
g = Graph(args[0])
File "/Users/squiresrb/anaconda/lib/python3.5/site-packages/ontospy/core/graph.py", line 82, in init
self.OWLTHING = OntoClass(rdflib.OWL.Thing, rdflib.OWL.Class, self.namespaces)
File "/Users/squiresrb/anaconda/lib/python3.5/site-packages/ontospy/core/entities.py", line 259, in init
self.slug = "class-" + str(self.id) + "-" + slugify(self.qname)
File "/Users/squiresrb/anaconda/lib/python3.5/site-packages/ontospy/core/util.py", line 856, in slugify
value = unicode(re.sub('[^\w\s-]', '', value).strip().lower())
File "/Users/squiresrb/anaconda/lib/python3.5/re.py", line 182, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: cannot use a string pattern on a bytes-like object