Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] - How to correctly configure import of namespaces in OML2OWL tool? #68

Open
kataph opened this issue Nov 16, 2024 · 0 comments
Labels
Question Further information is requested

Comments

@kataph
Copy link

kataph commented Nov 16, 2024

I am trying to translate from OML to OWL this ontology: https://github.com/OpenModelica/ModelicaOML/

When trying to use the owl-adapter tool various errors are returned e.g.

        [1, 2]: Couldn't resolve reference to AnnotationProperty 'dc:title'.
        [15, 9]: Couldn't resolve reference to Scalar 'xsd:string'.
        [21, 9]: Couldn't resolve reference to Scalar 'xsd:string'.
        [65, 9]: Couldn't resolve reference to Scalar 'xsd:string'.
        [73, 9]: Couldn't resolve reference to Scalar 'xsd:string'.
        [78, 9]: Couldn't resolve reference to Scalar 'xsd:string'.
        [83, 9]: Couldn't resolve reference to Scalar 'xsd:decimal'.
        [116, 9]: Couldn't resolve reference to Scalar 'rdfs:Literal'.

etc., which suggest an issue with the import of the corresponding namespaces.
Following the discussion in issue 67, I've tried to set up the structure of the project in such a way that files containing the needed namespaces are located in relative paths that reflect their URIs.
In particular, the (input) project structure is

|...
|catalog.xml
|
|src
--|standards
   | --|...
   |    |purl.org
   |     --|dc
   |         --|terms.ttl
--|main
    --|oml2
        --|openmodelica.org
            --|openmodelica
                --|bundle.oml
                   |classes.oml
                   |modelica.oml

The file catalogue contains

<?xml version='1.0'?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">
	<rewriteURI uriStartString="http://openmodelica.org/" rewritePrefix="src/main/oml2/openmodelica.org/"/>
	<rewriteURI uriStartString="http://" rewritePrefix="src/standards/" />
</catalog>

And the various .oml files all import the :dc prefix as extends <http://purl.org/dc/terms/> as dc (idem for xsd and rdfs, but lets focus on dc only), and the term.ttl file contains

@prefix dc: <http://purl.org/dc/terms/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .

dc:title a owl:AnnotationProperty .

Nevertheless, the error 1, 2]: Couldn't resolve reference to AnnotationProperty 'dc:title' persists.
Am I doing something wrong?

Many thanks for the kind attention

@kataph kataph added the Question Further information is requested label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant