prefix management
Michele Palmia <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <CALkm6kcSmeLHFJ2pMzKPFatRm8129X-P-PEYPnqhf=T2kKgnhg@mail.gmail.com> |
Hi everybody,
I'm a newby of SWI-Prolog so sorry for huge mistakes and embarrassing
questions.
I'm trying to debug some problems with an owl file I'm working with and
I'm facing prefix issues in prolog. My prolog shell
imports thea/owl_parser, semweb/rdf_db, semweb/rdf_edit, semweb/rdfs and
semweb/owl.
After parsing the owl file with
?- owl_parse('file_path.owl', false, false, true).
I try to check if namespaces have been imported (because it seems like they
didn't) using
?- rdf_current_prefix(A, B).
or
?- rdf_current_ns(A,B).
I get an error saying
ERROR: toplevel: Undefined procedure: current_ns/2 (DWIM could not correct
goal)
in both cases.
Calling
?- rdf_register_ns(test, 'somestring')
on the other hand, works like a charm.
Am I not using some libraries I should import? Am I calling the wrong
construct?
By the way, is it normal for owl_parse not to import namespaces? What
should I change to let owl_parse import them?
Thank you in advance,
Michele Palmia
UniversitĂ degli Studi di Padova
-------------- next part --------------
HTML attachment scrubbed and removed