[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [cti-users] Inquiry: parsing AIS:TLPMarking with Java
Hi Kathy, Thanks for the details. I have forwarded the information to my colleague. I was wondering that could you also commit the built jars to github? Regards, Kun-Hsien Shih From: Simunich, Kathy Lee [mailto:simunich@anl.gov] well. I ended up adding the retrieval of the AIS xsd to the build process instead of copying the file to the right dir. That way, all changes are in the my forked branch. I needed to alter the xsd so that the JAXB generator would parse it properly, but just like the patch that comes with the library for a cybox class, no need to commit the changed files to the repo as they can be recreated as part of the build process. KL On Apr 15, 2019, at 2:45 PM, Simunich, Kathy Lee <simunich@anl.gov> wrote: Iâve forked the current project and created a branch called ais-markings @ However, it looks like there are submodules for the schema versions: v1.1.1, v1.2-rc-1 and v1.2.0. All I had to do add the AIS_Bundle_Marking_1.1.1_v1.0.xsd file in a directory I named marking_extensions to the v1.2.0 folder. And I had edited the GenerateJAXBTask.groovy class to add the marking_extensions to the schema generation code. Then built the jars using the gradle build script. However, Iâm not sure how to get the xsd file to commit to the submodule - Iâm afraid I might have to also create a fork of the submodule, but Iâm not sure how to then connect that to the main project. If you are not familiar with building the code from the project, I have the jar and sourceJar built, I could possibly commit the actual jars to github? KL On Apr 15, 2019, at 4:59 AM, Kun-Hsien Shih (TWNCERT) <kunshih@twncert.org.tw> wrote: Hi Kathy, Thanks for the Java code. My colleague tried to combine your code with the library (.jar) from https://github.com/STIXProject/java-stix. However, he told me that he couldnât do it. Could you advise me how to use âorg.mitre.stixâ library along with your code? Regards, Kun-Hsien Shih Taiwan National Computer Emergency Response Team No.116, Fuyang St., Daâan Dist., Taipei City 106, Taiwan (R.O.C.) Tel: 886-2-6631-6487 This email may contain confidential information. Please disregard and delete this email if you are not the intended recipient. From: Simunich, Kathy Lee [mailto:simunich@anl.gov] You can retrieve the AIS marking XSD via: Are you talking about the github.com/STIXProject/java-stix.git project? Iâve been using that library for a few years, and I had to add the AIS XSD and make other additions to the code generating files in order to have it create the classes correctly. My code would be way out of date with the version on github, but Iâve attached the generated package/classes from it. Perhaps you can just include it in your version? Hope this helps. KL On Mar 21, 2019, at 8:17 PM, Kun-Hsien Shih (TWNCERT) <kunshih@twncert.org.tw> wrote: Hi Jerome, Thanks for the information about Java library for STIX 2.x. However, we are trying to parse the STIX 1.x in XML format. So far, we couldnât find Java library for STIX 1.x to parse the AIS:TLPMarking. Only the python library, https://stix.readthedocs.io/en/stable/api/extensions/marking/ais.html Regards, Kun-Hsien Shih From: Jerome Athias [mailto:jeromeathias2018@gmail.com] Hi Not sure but did you try this one ? https://github.com/StephenOTT/STIX-Java Hi Forum members, We are using Java STIX library, org.mitre.stix, to parse the AIS feed data, but an error message showed that the Java STIX library couldnât parse the âAIS:TLPMarkingâ. Do you have suggestions about which Java library could be used for parsing âAIS:TLPMarkingâ? p.s. We could only find an article about parsing âAIS:TLPMarkingâ with python code. Thanks, Kun-Hsien Shih Kathy Lee Simunich Argonne National Laboratory Kathy Lee Simunich Modeling & Analytics Group Strategic Security Sciences Division Argonne National Laboratory Kathy Lee Simunich Modeling & Analytics Group Strategic Security Sciences Division Argonne National Laboratory |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]