Open henrietteharmse opened 3 years ago
Actions:
All done
1.1. Most of the images under webapp/img can be deleted. 1.2. Under webapp/forms there are some .php files that are not used. 1.3 Most files under webapp/assets are not used.
The class names in the project do not follow typical Java guidance on class names. See this. 2.1 Change SemerdServlet to SemanticERDServlet. 2.2 Move convertRDFJSON into convert package. 2.3 /convert/FileWriter - What is HDT? Make it more apparent what it is and why you are checking for it. 2.4 Rename FromRDF to RDFtoJsonLDConverter 2.5 Remove convert/Main class. 2.6 Move /convert/PublisherCommandLine to utils package 2.7 Move /utils/Report to validator package 2.8 Rename ShexVal to ShexValidator 2.9 In ShexVal rename method shexVal to doShexValidation
Variable names 3.1 Write variable names out. I.e. in SerializePattern change p to pattern and m to matcher.
Unused code 5.1 Remove ReadByLine class as it is not used.
Some observations of on the code:
You seem to have copied some website as basis to build this 1 from. Thus, there are lots of files that has no relevance for EJPRD. This will confuse any other developer who wants to use or extend this code. This needs to be cleaned up. 1.1. Most of the images under webapp/img can be deleted. 1.2. Under webapp/forms there are some .php files that are not used. 1.3 Most files under webapp/assets are not used.
The class names in the project do not follow typical Java guidance on class names. See this. 2.1 Change SemerdServlet to SemanticERDServlet. 2.2 Move convertRDFJSON into convert package. 2.3 /convert/FileWriter - What is HDT? Make it more apparent what it is and why you are checking for it. 2.4 Rename FromRDF to RDFtoJsonLDConverter 2.5 Remove convert/Main class. 2.6 Move /convert/PublisherCommandLine to utils package 2.7 Move /utils/Report to validator package 2.8 Rename ShexVal to ShexValidator 2.9 In ShexVal rename method shexVal to doShexValidation
Variable names 3.1 Write variable names out. I.e. in SerializePattern change p to pattern and m to matcher.
Hardcodes 4.1 Remove hardcodes in SerializePattern 4.2 Remove hardcodes in ShexVal
Unused code 5.1 Remove ReadByLine class as it is not used.