Open tillmo opened 7 years ago
ontology O =
<http://ontohub.org/sandbox/OrderRelation>
end
does not work either, because OrderRelation.casl is a library. What is the syntax to get the specification OrderRelation from that library? And is the syntax already supported in Hets?
The syntax currently is
%prefix( : <http://ontohub.org/sandbox/> )%
ontology O =
OrderRelation.casl
end
I thought from previous experience that the .casl
can be omitted, but appearently I cannot.
OK, this works for me as well, with the extension. What I was wondering was how Hets knows that from the library OrderRelation.casl
it should import the specification OrderRelation
: is this so because it is the only one, or is there some convention that the spec with the same name as the file is imported? It could be that in the file there are more specifications, and you can't import them all. I thought we must use something like http://ontohub.org/sandbox/OrderRelation.casl//OrderRelation
.
The convention is that there must be only one OMS, that then that is used. Alternatively, you can write
ontology O =
<http://ontohub.org/sandbox/OrderRelation.casl//OrderRelation>
end
but this will work only with Ontohub 2.0.
see https://ontohub.org/sandbox/OrderRelationExtension