[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: suggestions
> 1.
> We should also leave in the older, anonymous, form of assert() so that
> arbitrary other code can make RDF assertions without having to be a
> datasource.
Good point. It's just that users should still implement
the anonymous version, too. Well, those applications who do
not implement DataSource can just pass on 'null' in the
assert(). What do you think? (Oh well, it's not perfect design but...)
> 2.
> Convenience additions to DataSource:
> /**
> * Convenience constructor which also sets the URI propert y
> *
> * @param sURI URI to the RDF data
> */
> public DataSource (String sURI);
...nope.
public class Foo implements DataSource
{
Foo (String sURI) {
setURI (sURI);
}
public void setURI (String sURI) {
// save it somewhere
}
}
An interface cannot require anything from the implementing
class constructor, can it?
> 3
> The test/main method in SiRPAC doesn't use Tellable -- would it be good
> to have an example class EchoDemo.java that implemented Tellable by
> simply printing all recieved assertions to System.out?
I'd love to have a nice example and a nice tutorial to this
Tellable/DataSource thing anyway. I wonder if you have
something simple or ambition to add some documentation to
the SiRPAC distribution... :-) If not, I guess I'll try to
do it some day.
Janne
--
Janne Saarela | Visiting scientist
Email: jsaarela@w3.org | World Wide Web Consortium http://www.w3.org/