1 6 7 package jena; 8 9 import java.lang.reflect.Constructor ; 10 11 import com.hp.hpl.jena.rdf.arp.NTriple; 12 import com.hp.hpl.jena.shared.Command; 13 14 66 67 public class rdfparse { 68 69 72 public static void main( String [] args ) throws Exception { 73 if (args.length == 1 && (args[0].equals( "--test" ) || args[0].equals( "--internal-test" ))) 74 runTests( args[0].equals( "--test" ) ); 75 else 76 NTriple.main( args ); 77 } 78 79 82 protected static void runTests( boolean internetTest ) throws Exception { 83 Class rdfparse = Class.forName( "jena.test.rdfparse" ); 84 Constructor constructor = rdfparse.getConstructor( new Class [] {boolean.class} ); 85 Command c = (Command) constructor.newInstance( new Object [] {new Boolean ( internetTest ) } ); 86 c.execute(); 87 } 90 } 91 92 121 | Popular Tags |