To compile the program, open an instance of Terminal and navigate to the directory where the program is installed. From here, change the directory again to the application, which is found at
data-integration/Project/Database-IO/. Use the command: mvn compile. Once compiled, you can now execute it.
To execute the program, go the the application's location in the directory and run the following command:
mvn exec:java -Dexec.mainClass="popbr.DatabaseIO".
After Compiling and Executing, the program should be running. If you run into any errors/either step fails, try the following:
- Run the installation test and see if the same error persists.
- Make sure you're executing the commands in the correct directory.
- for example:
cd C:\Users\JDoe\Desktop\data-integration\Project\Database-IOwill set the current direction to the program's folder
- for example:
- Try uninstalling and reinstalling the program
- Open an issue on our Github
Please ensure that you change the following parameters to suit your use of this program.
Login Information for SQL can be found here:
data-integration/Project/Database-IO/target/LoginInfoTemplate.xml
To change a specific username and password, like SQL, you must create a new file, titled LoginInfo.xml in the data-integration/Project/Database-IO/target/ folder. To do this efficiently, copy and rename the LoginInfoTemplate.xml file. Then edit the username and password fields to match the required information.
Do not edit the LoginInfoTemplate.xml file. The LoginInfo.xml file is intended to only be used on one's local machine, with the LoginInfoTemplate.xml file being used as a base.
Websites you wish to be scanned can be added/found in:
data-integration/Project/Database-IO/target/DBInfo.xml
Removing websites requires the deletion of the entire website's id, including name and URL. Adding websites requires a new DB id to have the new webpage properly scanned, with the name and URL to the database file.
Database files you want scanned that you already have downloaded can be put in the downloads folder at:
.../Database-IO/target/Downloads/.
Dropping the database file in this folder is all that has to be done. The types of files that are accepted are in the .xml, .xlsx, .txt, or .csv format.
With an example file, DBExample.xml, you would have move this file in to the Downloads section of the Database-IO folder, and leave it there. Nothing further has to be done.
- Clone the repository.
git clone https://github.com/popbr/data-integration.git - Run the Installation Test to make sure your use of DatabaseIO will work
-
To execute the Installation Test, go the the application's location at
C:\Users\sleep\Desktop\data-integration\Installation_Test
-
Run the following command:
mvn exec:java -Dexec.mainClass="popbr.DatabaseIO".
-
- Make sure to have the following items on your setup
- MySQL Server 8.0
- mySQL Workbench 8.0
- Java technologies:
- JDK 16
- JRE 1.8 or higher
- Maven
- It is strongly suggested you have a Spreadsheet software
- this Program uses Excel as its default, but other variants, like LibreOffice, work as well
Before running the program, make sure:
You have at least one database in the downloads folder at .../Database-IO/target/Downloads/. These databases are files that catalogue researching entities with attributes or classify/detail than. These files can be in the format of .xml, .xlsx, .txt, or .csv For more instructions on this, see the "Databases Scanned" section
or
You can specify websites to scrape for database/allow pre-selected databases to be scrapped. For instructions on this, see the "Websites Scanned" Section
If you wish to look for only a certain entity (school, person, research group, etc.), then that can be specified at/after runtime (TO BE IMPLEMENTED).
Resulting information from searches will be returned as an Excel Sheet, created in the data-integration/Project/Database-IO/ folder.
This project may be downloaded for the purposes of academic research or inquiry, but please note that this project is only a tool for the collection and examination of databases and the data within said databases. This project and its authors do not claim ownership over any files downloaded or any data handled by the project, nor do they claim 100% accuracy in conclusions drawn from any results user may receive.