Error on import of OWL RDF/XML

12 views
Skip to first unread message

Tze-John Tang

unread,
May 9, 2014, 2:46:56 PM5/9/14
to sta...@clarkparsia.com
I am attempting to import an OWL file generated from Protege into the Stardog store. I am using the command:

stardog data add --named-graph http://schemas.abbvienet.com/ontologies/infrastructure.owl -f "RDF/XML" infrastructureDb /tmp/infrastructure.owl

The owl file is attached. The error I get refers to line 20, but I assume it actually means line 18, where the ontologyIRI line is.

WARNING: Error parsing /tmp/infrastructure.owl: Not a valid (absolute) URI: ontologyIRI [line 20, column 59]
Not a valid (absolute) URI: ontologyIRI [line 20, column 59]

Does anyone have any suggestions?

Thanks,

-tj
infrastructure.owl

Mike Grove

unread,
May 9, 2014, 2:49:52 PM5/9/14
to stardog
On Fri, May 9, 2014 at 2:46 PM, Tze-John Tang <tzejoh...@gmail.com> wrote:
I am attempting to import an OWL file generated from Protege into the Stardog store. I am using the command:

You exported OWL/XML, not RDF/XML, from Protege, which Stardog does not yet support.  If you pick one of the RDF serializations, it should work fine.

Cheers,

Mike
 

stardog data add --named-graph http://schemas.abbvienet.com/ontologies/infrastructure.owl -f "RDF/XML" infrastructureDb /tmp/infrastructure.owl

The owl file is attached. The error I get refers to line 20, but I assume it actually means line 18, where the ontologyIRI line is.

WARNING: Error parsing /tmp/infrastructure.owl: Not a valid (absolute) URI: ontologyIRI [line 20, column 59]
Not a valid (absolute) URI: ontologyIRI [line 20, column 59]

Does anyone have any suggestions?

Thanks,

-tj

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

Tze-John Tang

unread,
May 9, 2014, 2:50:55 PM5/9/14
to sta...@clarkparsia.com
Ok. I think the issue was with the fact that the document was on OWL/XML format instead of RDF/XML.  I re-exported in the RDF/XML format, and that seems to have imported ok.

-tj

Peter Ansell

unread,
May 10, 2014, 9:38:11 PM5/10/14
to sta...@clarkparsia.com
Hi Mike,

OWLAPI-4 will support this functionality by wrapping the OWLAPI
OWL/XML, Manchester, and Functional parsers as Rio parsers.
owlapi-rio.jar will be a drop in jar (along with the other owlapi
dependencies) to get the functionality using META-INF/services like
the other Rio parsers.

Pull Request merged yesterday: https://github.com/owlcs/owlapi/pull/181

Cheers,

Peter
> To unsubscribe from this group and stop receiving emails from it, send an
> email to stardog+u...@clarkparsia.com.

Mike Grove

unread,
May 13, 2014, 7:37:57 AM5/13/14
to stardog
On Sat, May 10, 2014 at 9:38 PM, Peter Ansell <ansell...@gmail.com> wrote:
Hi Mike,

OWLAPI-4 will support this functionality by wrapping the OWLAPI
OWL/XML, Manchester, and Functional parsers as Rio parsers.
owlapi-rio.jar will be a drop in jar (along with the other owlapi
dependencies) to get the functionality using META-INF/services like
the other Rio parsers.

Pull Request merged yesterday: https://github.com/owlcs/owlapi/pull/181

Thanks for the reference, we'll keep an eye on this.

Cheers,

Mike
Reply all
Reply to author
Forward
0 new messages