Storing/Retrieving RDF URIs
<"neil.stansbury () redbacksystems ! com"@lists.mozilla.org> Thu, 30 Aug 2007 00:56:50 +0100
| Newsgroups | gmane.comp.mozilla.devel.rdf |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I am in dire need of an elegant solution storing & retrieving potentially hundreds of RDF reference URIs. I started out with constants in my code but this is really starting to get unwieldy and unmanageable. What I really need is some form of dynamically loadable lookup/hash table that I can get the correct URI from but without resorting to loads of keys declared as constants. One potential way I can see would be to load the RDF schemas themselves into a datasource, which has the advantage of them being dynamic but doesn't really help me retrieve them. The only solution I can come up with is as a class of getters but again makes it difficult to overload the base class, something like: dcTable = New DublinCoreTable() uri = dcTable.getTitle() Just wondered if anyone else has crossed and solved this problem? Cheers, Neil