[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SiRPAC V1.11
> Here's fragment of simple demo, where TellDemo just echos to stdout for
> now.
>
> public static void main(String[] s) {
> String data = "example1.rdf";
> if (s.length>0) { data = s[0]; }
> DataSource sirpac = new SiRPAC();
> sirpac.setURI( data );
> System.out.println("Setting datasource URI to "+data);
> Tellable stdout = new TellDemo();
> sirpac.register(stdout);
> try {
> sirpac.fetchRDF();
> }
> catch(Exception e){
> System.err.println("TellDemo: error getting data ");
> }
>
>
> }
Cool. Maybe we could focus even more the fact that there can be multiple
Tellable objects that register to a DataSource. So you could register
two TellDemo objects which print a bit differently. What do you think?
Janne
--
Janne Saarela | Visiting scientist
Email: jsaarela@w3.org | World Wide Web Consortium http://www.w3.org/