You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the EMF-based OML API, OML defines an OASIS XML Catalog, oml.catalog.xml, for mapping OML IRIs to EMF Resource URIs (see EMF's URIConverter). With multiple oml.catalog.xml files, it is possible to break an important EMF invariant; specifically, that all EMF Resources in an EMF ResourceSet must have distinct URIs.
For example, consider an Eclipse project with the following folders and files:
and where ./A/example.org/vocabulary.oml and ./B/example.org/vocabulary.oml have the same content:
open terminology <http://example.org/vocabulary> {
// ... some OML terminology content ...
}
Outside of Eclipse, this situation is not a problem because OML APIs use a single catalog.
Inside of Eclipse, this situation can be problematic, particularly with the Eclipse UI where the nature of the project (in ./.project) includes 'Modeling' and 'Xtext'. When building this project, Eclipse will recognize the *.oml files and may load them in an EMF ResourceSet. If these files are loaded in the same ResourceSet, the invariant about EMF Resource URIs will be broken.
The effect of breaking this invariant manifests in strange errors like #261 and #262.
The text was updated successfully, but these errors were encountered:
For the EMF-based OML API, OML defines an OASIS XML Catalog,
oml.catalog.xml
, for mapping OML IRIs to EMF Resource URIs (see EMF's URIConverter). With multipleoml.catalog.xml
files, it is possible to break an important EMF invariant; specifically, that all EMFResource
s in an EMFResourceSet
must have distinct URIs.For example, consider an Eclipse project with the following folders and files:
where
./A/oml.catalog.xml
and./B/oml.catalog.xml
have the same content:and where
./A/example.org/vocabulary.oml
and./B/example.org/vocabulary.oml
have the same content:Outside of Eclipse, this situation is not a problem because OML APIs use a single catalog.
Inside of Eclipse, this situation can be problematic, particularly with the Eclipse UI where the nature of the project (in
./.project
) includes 'Modeling' and 'Xtext'. When building this project, Eclipse will recognize the*.oml
files and may load them in an EMFResourceSet
. If these files are loaded in the sameResourceSet
, the invariant about EMF Resource URIs will be broken.The effect of breaking this invariant manifests in strange errors like #261 and #262.
The text was updated successfully, but these errors were encountered: