зеркало из https://github.com/mozilla/gecko-dev.git
37 строки
1.2 KiB
Plaintext
37 строки
1.2 KiB
Plaintext
|
This is the TripleDB, a way of persistantly remembering "triples" of data.
|
||
|
|
||
|
Each entry is kind of a "subject-verb-object" set. For example, some
|
||
|
entries might be:
|
||
|
|
||
|
Noun Verb Object
|
||
|
=========================================
|
||
|
File1 Length 1253254
|
||
|
File1 MimeType text/html
|
||
|
File1 Author Ralph
|
||
|
File2 Length 32542
|
||
|
File2 MimeType image/gif
|
||
|
File2 Author Bertha
|
||
|
|
||
|
|
||
|
This API is about storing, deleting, and querying such triples to a
|
||
|
database. Each member of a triple can be a string, integer, or date.
|
||
|
|
||
|
For more details, read the API, in tdbapi.h.
|
||
|
|
||
|
|
||
|
FAQ:
|
||
|
|
||
|
Q: "Hey! There's no Makefile!"
|
||
|
A: Yeah, yeah, I know. This is developed as part of a project at
|
||
|
work, and our Makefiles are all messed up. If you have one that fits in well
|
||
|
with other stuff at mozilla.org, please feel free to contribute it.
|
||
|
|
||
|
Q: Um, so else here uses this?
|
||
|
A: That's right. But this maps in pretty well to RDF, I believe. I wouldn't
|
||
|
be surprised if someone decides to use it to store a biggish RDF database,
|
||
|
and adds it to mozilla for that purpose.
|
||
|
|
||
|
|
||
|
|
||
|
- Terry Weissman terry@mozilla.org
|