From: Tomasz P. <tom...@gm...> - 2013-03-07 12:59:06
|
Hi All I have just been fiddling with the Configuration API and I have a lesser suggestion regarding its user-friendliness. The current API would remain intact but for a simpler usage it could be wrapped with a helper class so that the user can do this: // alternatively this could take a preloaded IGraph instance ConfigurationHelper config = new ConfigurationHelper("configuration.ttl"); // string for blank node ID var endpoint = config.Load<SparqlRemoteEndpoint>("sparql"); // URI for URI nodes var store = config.Load<ITripleStore>(UriFactory.Create("http://example.com/store)); This way the user won't have to drag the configuration IGraph everywhere, create nodes INodes and manually cast objects to desired types. The name ConfigurationHelper is hideous and just an example. Guess we could come up with something better :). What do you think? Thanks, Tom |