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

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

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