Hi Johannes,

what is the nature of the problem? It doesn't behave as it is supposed to? Or you're getting an error? If so could you paste it?

I tried to run

scheme_router.py

I'm getting the follow error attached.

Nil

On 4/16/19 11:35 AM, Johannes Castner wrote:
Dear all,

A couple of months back I’ve spent some significant time working on Python and 
Scheme code that imported the opencog system and the AtomSpace and then 
imported, merged and reasoned on a collection of ontologies in various formats 
(owl, obo and JSON-LD) all in anticipation of then running the pattern-miner to 
discover important questions that aren’t explicitly answered in any of those 
ontologies.  I did all of that in order to complete my dissertation and I have 
to urgently now make all of this code work; but for some reason, as one bug was 
fixed, all of my code subsequently stopped working and we (I’m working with a 
friend as we’re seeking to use all of this code in a bigger project) and we 
were unable until now to make it work! Here’s my repo that I need to make work; 
it’s a bunch of Python and scheme code I’ve written against the Opencog API:

https://github.com/CollectiWise/collectiwise

In particular, I’m trying to run this file (which imports some of the others):

https://github.com/CollectiWise/collectiwise/blob/master/python/scheme_router.py

please someone help us to get it running again; I’m desperate as this code is 
necessary for 1) a product we’re trying to get to market and 2) my last paper 
for my dissertation that I need to defend in two months.


--
You received this message because you are subscribed to the Google Groups 
"opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/opencog/afdc4077-4f77-bd49-fd23-ee6fac3594c5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
nilg@sofia-desktop:~/Sources/collectiwise/python$ trash opencog.log; python3 
scheme_router.py 
True
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/pronto/parser/obo.py", line 234, 
in _classify
    s = _cached_synonyms[obo_header]
KeyError: '"all" RELATED synonym []'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/pronto/synonym.py", line 115, in 
__init__
    self.syn_type = SynonymType._instances[syn_type]
KeyError: 'synonym'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "scheme_router.py", line 149, in <module>
    main()
  File "scheme_router.py", line 126, in main
    envo = 
pronto.Ontology('https://raw.githubusercontent.com/EnvironmentOntology/envo/master/envo.obo')
  File "/usr/local/lib/python3.6/dist-packages/pronto/ontology.py", line 109, 
in __init__
    self.parse(handle, parser)
  File "/usr/local/lib/python3.6/dist-packages/pronto/ontology.py", line 224, 
in parse
    self.meta, self.terms, self.imports, self.typedefs = p.parse(stream)
  File "/usr/local/lib/python3.6/dist-packages/pronto/parser/obo.py", line 70, 
in parse
    terms, typedefs = cls._classify(_rawtypedef, _rawterms)
  File "/usr/local/lib/python3.6/dist-packages/pronto/parser/obo.py", line 236, 
in _classify
    s = Synonym.from_obo(obo_header, scope)
  File "/usr/local/lib/python3.6/dist-packages/pronto/synonym.py", line 139, in 
from_obo
    return cls(**groupdict)
  File "/usr/local/lib/python3.6/dist-packages/pronto/synonym.py", line 118, in 
__init__
    raise ValueError("Undefined synonym type: {}".format(syn_type))
ValueError: Undefined synonym type: synonym

Reply via email to