Hello, SPDX workgroup I am currently working on the SPDX merge project. So far, the program design as following methods:
1. MergeSpdxDocs.java - this is the main class which allows user input multiple spdx documents in RDF format. The program will verify the documents first. If the documents are good, the program will store the documents into a hashMap. The key will be the input order number and the value will be the corresponding spdx document. 2. There will be six classes in the SpdxMerge package. Each of them will merge the documents from Doc Info.,Creation Info., Reviewer Info., Package Info., File Info., License Info.. Here, I use SpdxFileInfoMerger as example: The program will get the spdxDoc hashMap from the MergeSpdxDocs program. Then, it uses RDF parser to get file level information from each document in the spdxDoc hashMap. The information will store into a new hashMap called spdxDocFileInfo hashMap (hashMap spdxDocFileInfo < spdxFileInfoNum, hashMap<String, String>>). In the hashMap<String, String>, the key will each rubric name (file name, file type...). Next, a comparison between each file name and file checksum will be preformed. If both file names and file checksums are matched. The second file info. will be removed from spdxDocFileInfo hashMap. Finally, the program returns the results to the main class program. 3. In the main class program, the merged result will be read from each returned hashMap. Then, using RDF parser to build the new spdx document. Right now, I am writing the main class and SpdxFileInfoMerger class. I have to understand the RDF parser well. Also, I have taken credit from spdx compare app to understand the build of comparison processes. Thanks to Mr. O'Neall's helps. Please give feedback on the design if I am wrong or any improvement. Thanks, Alex Ling -- Gang Ling University of Nebraska at Omaha College of Information Science and Technology LinkedIn Profile <http://www.linkedin.com/in/gangling/>
_______________________________________________ Spdx-tech mailing list [email protected] https://lists.spdx.org/mailman/listinfo/spdx-tech
