Code Comments
Programming Forum and web based access to our favorite programming groups.In an earlier reply, Jan from SWI had mentioned a hash table. I can't find any documentation on this in SWI-Prolog. Can someone help or do I have to code my own. And does anyone know about the rdf parser, I want to mimic it for another ontology format. Does the rdf library use the same hash table. Thanks Dale
Post Follow-up to this messageOn 2005-04-16, dpatte3@cs.umbc.edu <dpatte3@cs.umbc.edu> wrote: > In an earlier reply, Jan from SWI had mentioned a hash table. I can't > find any documentation on this in SWI-Prolog. Can someone help or do I I do not know in which context. Hash-tables are used internally for indexing predicates with many clauses (and many other things). It is just a datastructure, so you can make one in Prolog if you want. Library assoc.pl contains associations using binary trees, often a good choice for Prolog. > have to code my own. And does anyone know about the rdf parser, I want > to mimic it for another ontology format. Does the rdf library use the > same hash table. No idea what you are after. The source is open though. Success --- Jan
Post Follow-up to this messageassoc.pl - that's what I'm looking for. Thanks
Post Follow-up to this messagedpatte3@cs.umbc.edu wrote: > assoc.pl - that's what I'm looking for. perhaps. Another possibility would be the fsa_hash.pl library (+related variants) that comes with my Fsa utilities package. Depending on how you want to use the hash-like datastructure this might be *much faster* (or much slower...). Gertjan -- Gertjan van Noord Alfa-informatica, RUG, Postbus 716, 9700 AS Groningen vannoord at let dot rug dot nl http://www.let.rug.nl/~vannoord
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.