beagle r4297 - in branches/beagle-rdf: BeagleClient beagled tools



Author: dbera
Date: 2007-12-16 17:10:57 +0000 (Sun, 16 Dec 2007)
New Revision: 4297
ViewCVS link: http://svn.gnome.org/viewcvs/beagle?rev=4297&view=rev

Modified:
   branches/beagle-rdf/BeagleClient/Property.cs
   branches/beagle-rdf/BeagleClient/Query.cs
   branches/beagle-rdf/beagled/DumpIndex.cs
   branches/beagle-rdf/beagled/LuceneCommon.cs
   branches/beagle-rdf/beagled/LuceneQueryingDriver.cs
   branches/beagle-rdf/tools/RdfQueryTool.cs
Log:
Implement the left out case for RDF queries. Taking a hint from SmartShawCells(TM), this is how URIs of all documents with a certain field is returned: Enumerate all terms with that field, for each term, find all docs that have that term and flag the corresponding doc-id in a bitarray. Then enumerate all terms with the URI field. For all terms, find all docs with that term (actually only doc per term, assuming URI is unique across all docs), see if its doc-id is flagged in the bitarray - if it is, then add the uri (obtained from the term-enum; no need to do an expensive CreateDocument) to the list of returned URIs.
Some cosmetic changes to the other tools.
Add --fields option to dump-index to show all fields in an index (useful for RDFQuery as well as advanced property query). Also add a propertytype internal for internal properties.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]