package pipeline;

import java.lang.reflect.Method;

public class StartPipeline 
{
    public static void main(String[] args) 
    {
        try 
        {
            // Call OWLpreprocessing main method
            Class<?> owlPreprocessingClass = Class.forName("OWLpreprocessing.OWLpreprocessing");
            Method mainMethod1 = owlPreprocessingClass.getMethod("main", String[].class);
            mainMethod1.invoke(null, (Object) new String[0]);
            
            // Call OWL2_Generator main method
            Class<?> owl2GeneratorClass = Class.forName("OWL2generator.OWL2_Generator");
            Method mainMethod2 = owl2GeneratorClass.getMethod("main", String[].class);
            mainMethod2.invoke(null, (Object) new String[0]);
            
        } 
        catch (Exception e) 
        {
            System.err.println("Error starting pipeline: " + e.getMessage());
            e.printStackTrace();
        }
        
    }   //  end of method main()
    
}   //  end of class StartPipeline
