[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: suggestions
> Great. Remind me though, how do we tell the parser (or DataStore) to
> start emitting facts/assertions to all listing Tellables? Is this
> something speciifc to SiRPAC's DataStore implementation or should we
> have a 'go()' method on the store. Otherwisee it may start before we've
> registered all the observers.
1. I'll change the name to DataSource - that sounds good to me.
2. there's no need for go(), is there?
Tellable t1, t2;
SiRPAC ds = new SiRPAC (); (implements DataSource)
ds.register (t1);
ds.register (t2);
ds.fetchRDF(sURI); // another ds could implement some other funny method
// with different parameters
// a plain go() without parameters would require non-interface method
/ + a call to go() separately which complicates life (at least from
// SiRPAC perspective)
-> implied calls
t1.start (ds);
t2.start (ds);
t1.assert(...);
t2.assert(...);
...
t1.end (ds);
t2.end (ds);
Are we there?
Janne
--
Janne Saarela | Visiting scientist
Email: jsaarela@w3.org | World Wide Web Consortium http://www.w3.org/