Home > Archive > Prolog > April 2005 > Hash table and SWI-Prolog
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Hash table and SWI-Prolog
|
|
| dpatte3@cs.umbc.edu 2005-04-16, 3:58 pm |
| 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
| |
| Jan Wielemaker 2005-04-16, 3:58 pm |
| On 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
| |
| dpatte3@cs.umbc.edu 2005-04-21, 3:58 pm |
| assoc.pl - that's what I'm looking for.
Thanks
| |
| vannoord@let.rug.nl 2005-04-21, 3:58 pm |
| dpatte3@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
|
|
|
|
|