i2group / analyze

Develop and deploy custom Java extensions and REST API client code for i2 Analyze. View the Java API documentation.
https://i2group.github.io/analyze/
MIT License
37 stars 30 forks source link

law-enforcement-schema.jar does not generate correctly #19

Closed Joai2 closed 9 years ago

Joai2 commented 9 years ago

I am developing the DLD example in IAP 3.0.9 but when i run the command:

da-setup.py -t generate-mapping-jar -x law-enforcement-schema.xml -o law-enforcement-schema.jar

The created jar is not showing the name of the entitys, links, propertys nor property groups, instead it show EntityX, LinkX, PropertyX, PropertyGroupX (the X changes for a different number for all elements).

How can i create the .jar with the real names?

Thank you.

boalesth commented 9 years ago

Hi Joai,

The XSDs that are created within the jar should have the correct names embedded within them. Can you open those and check?

Thanks

Esther

Joai2 commented 9 years ago

Hi Esther

I checked the XSDs and the schema4.xsd have the name correctly but the .jar still the same, without the names.

Greetings

boalesth commented 9 years ago

Hi Joai,

That is by design. The classes in the jar are internal, and named 'EntityX' etc to allow schemas to support entity types that use reserved words, punctuation, and foreign characters. The xml that you need to create is xml that complies with schema4.xsd.

Thanks

Esther

Joai2 commented 9 years ago

Hello boalesth!

Sorry for the late comment.

How can i create a xml that complies with schema4.xsd?

johngid commented 8 years ago

Is there a way of mapping from the schema4.xsd to the actual jar?, ie a way to know that Entity12 is Person.