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

Handling of the "uima.noNamespace" prefix #170

Closed
reckart opened this issue Aug 13, 2021 · 0 comments
Closed

Handling of the "uima.noNamespace" prefix #170

reckart opened this issue Aug 13, 2021 · 0 comments

Comments

@reckart
Copy link
Member

reckart commented Aug 13, 2021

Is your feature request related to a problem? Please describe.
In XMI files, an artificial "uima.noNamespace" prefix is introduced for types that are not in any package. However, cassis does not only handle this situation in the XMI (de)serializer code but leaks this prefix into the actual type system. The Apache UIMA Java SDK only uses this prefix in the XMI serialization code (also in the legacy JSON serialization code) but not in the actual type system.

Describe the solution you'd like
The XMI deserializer should strip this prefix. The XMI serializer should add it again. The TypeSystem (de)serializer should not have to worry about it at all.

@jcklie jcklie added this to the 0.6.0 milestone Aug 13, 2021
@jcklie jcklie self-assigned this Aug 13, 2021
jcklie added a commit that referenced this issue Aug 14, 2021
- Move no namespace handling to xmi
- Add better tests for this
jcklie added a commit that referenced this issue Aug 14, 2021
- Move no namespace handling to xmi
- Add better tests for this
@jcklie jcklie closed this as completed Aug 14, 2021
reckart added a commit that referenced this issue Aug 19, 2021
* main:
  #172 - Naming: cas.add_annotation(s) (#181)
  #175 - Set a feature if the feature name is in a variable (#180)
  #175 - Set a feature if the feature name is in a variable
  #174 - FSes that are only transitively referenced cannot be serialized (#179)
  #170 - Handling of the "uima.noNamespace" prefix (#178)
  No issue
  #173 - Rename add_feature to create_feature (#177)

# Conflicts:
#	cassis/typesystem.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants