/* (c) Copyright 2008 Hewlett-Packard Development Company, LP All rights reserved. $Id$ */ package run; import java.io.*; import run.support.Arguments; import com.hp.jena.graph.*; import com.hp.jena.graph.io.GraphIORegistries; import com.hp.jena.shared.*; public class cat { public static void main( String [] argStrings ) throws IOException { Arguments args = new Arguments( "from", argStrings ); Graph g = GraphFactory.createGraph(); for (String arg: args.valuesFor( "from" )) g.readFrom( arg, FileUtils.guessLang( arg ) ); g.write( System.out, args.valueFor( "out", GraphIORegistries.NTRIPLES ) ); } }