Re: Trying to load go-plus (gene ontology)

Posted by jotomicron on
URL: http://owlready.306.s1.nabble.com/Trying-to-load-go-plus-gene-ontology-tp793p798.html

Thanks for the quick answer.

1) Could you also add the IRI of the file being parsed into the error message?

2) As soon as I find some time, I will try to see if this feature is something I am able to tackle.

On Wed, 23 Jan 2019 at 14:25, Jiba [via Owlready] <[hidden email]> wrote:
Hi,

For 1), I agree that the error message is not exactly appropriate... Owlready uses NTriples as default file format, so it is difficult to distinguish between a non-NTripes file and a errored NTriples file...

I'm going to change it to "NTriples parsing error (or unrecognized file format)" (a bit better).


For 2), any help is welcome!

For loading new file format, you shoul dlook at the rdfxml_2_ntriples.py and owlxml_2_ntriples.py files. These files are actually independent Python scripts that transform RDF/XML and OWL/XML in NTriples. They can be used either as in command line, printing NTriple to output, or in Python with Owlready : in this case, they produce triple in the form of Python tuples (to avoid parsing NTriple after parsing RDF/XML or OWL/XML).

Best regards,
Jiba


If you reply to this email, your message will be added to the discussion below:
http://owlready.8326.n8.nabble.com/Trying-to-load-go-plus-gene-ontology-tp793p797.html
To unsubscribe from Trying to load go-plus (gene ontology), click here.
NAML