Importing owl models into SADL files #624
Replies: 4 comments 2 replies
-
|
@AbhaMoitra , following the instructions at http://semanticapplicationdesignlanguage.github.io/sadl/ExternalModels.html (which I just updated, it was in the old documentation but not easily found), I have this resulting structure. (I downloaded the file first to my local drive, hence the path shown.) `Inference of '/home/camfe/andy/ws/sadl/runtime-EclipseApplication2/GH-624/importdiamond.sadl' requested. You'll observe an issue here. Namespace display in query results is turned on, as shown by the classes from the SadlImplcitModel. However, the classes from diamond.owl show as "nuclear:dddddd" where d is a digit. The cause is apparent when examining the content of the diamond.owl file. The header declares the xml:base to be "https://github.com/idaholab/DIAMOND/" and concepts in the file are designated, for example, by '<owl:Class rdf:about="https://github.com/idaholab/DIAMOND/nuclear:000703">'. The way I read the W3C standards, this is not a value URI. It certainly confounds the meaning of QNames of the form :. The parsers used by Jena don't seem to be able to separate such a URI into namespace and local fragment based on query output, and SADL expects a "#" delimiter between the two. At a minimum, SADL will interpret a reference to "nuclear:000703" to be a QName with prefix "nuclear" and an [invalid since it begins with a digit] local fragment "000703". |
Beta Was this translation helpful? Give feedback.
-
|
@AbhaMoitra , as far as your second comment about loading into Protege 5.5.0, I'm unsure if Protege requires that imports be available or how it handles that. I would be surprised if the OWL files are not valid as they are written by Jena. You did not identify the issue that you encountered loading into Protege other than saying that you were not able to do so. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I followed the instructions and I am now able to query and even graph a small part of it. Thank you. |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
I was trying to import an owl file https://github.com/idaholab/DIAMOND/blob/master/diamond.owl into a SADL project but ran into issues. I then tried to import a much simpler (and you may say a well-known) owl file https://protege.stanford.edu/ontologies/pizza/pizza.owl but still ran into issues. Any suggestions on what should be done?
I also tried loading a simple owl file from one of our projects into Protege 5.5.0 and was not able to do so. The owl file I tried this on is https://github.com/ge-high-assurance/RACK/blob/master/RACK-Ontology/OwlModels/PROV-S.owl. Now this owl file imports "sadlbasemodel", "sadlimplicitmodel" so they need to be incorporated. Any suggestions on best way to do that?
Beta Was this translation helpful? Give feedback.
All reactions