althonos / althonos/pronto

.obo SyntaxErorrs

未關閉
#131 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
external
主要語言
Python
星號
267
分支
48
PR 合併指標
30 天內沒有已合併 PR

描述

What is the best way to force pronto to continue in the face of messy/real data?

```
>>> cl = Ontology("http://purl.obolibrary.org/obo/uberon.obo")
Traceback (most recent call last):
File "", line 1, in
File "/home/plastic/anaconda3/envs/uberon/lib/python3.8/site-packages/pronto/ontology.py", line 283, in __init__
cls(self).parse_from(_handle) # type: ignore
File "/home/plastic/anaconda3/envs/uberon/lib/python3.8/site-packages/pronto/parsers/obo.py", line 45, in parse_from
raise SyntaxError(s.args[0], location) from None
File "http://purl.obolibrary.org/obo/uberon.obo", line 199316
def: "A free, modified neural spine of a preural or a ural vertebra that is placed between the last developed neural spine of a preural centrum and the dorsal axis (= anterior margin of first uroneural) of the caudal skeleton . An epural commonly supports one or more dorsal procurrent rays. An epural is an unpaired median perichondrally ossified bone." [TAO:Arratia and Schultze_1992]␊
^
SyntaxError: expected QuotedString

>>> cl = Ontology("http://purl.obolibrary.org/obo/cl.obo")
Traceback (most recent call last):
File "", line 1, in
File "/home/plastic/anaconda3/envs/uberon/lib/python3.8/site-packages/pronto/ontology.py", line 283, in __init__
cls(self).parse_from(_handle) # type: ignore
File "/home/plastic/anaconda3/envs/uberon/lib/python3.8/site-packages/pronto/parsers/obo.py", line 45, in parse_from
raise SyntaxError(s.args[0], location) from None
File "http://purl.obolibrary.org/obo/cl.obo", line 163708
creation_date: 202z-09-29T15:45:36Z␊
^
SyntaxError: expected Iso8601Year

>>> cl = Ontology("http://purl.obolibrary.org/obo/basic.obo")
Traceback (most recent call last):
File "", line 1, in
File "/home/plastic/anaconda3/envs/uberon/lib/python3.8/site-packages/pronto/ontology.py", line 283, in __init__
cls(self).parse_from(_handle) # type: ignore
File "/home/plastic/anaconda3/envs/uberon/lib/python3.8/site-packages/pronto/parsers/rdfxml.py", line 89, in parse_from
raise ValueError("could not find `owl:Ontology` element")
ValueError: could not find `owl:Ontology` element

```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。