At the beginning of this week, I have added two new features to my Nepomuk query parser.
The first one is logic operators. By default, terms or comparisons that are simply separated by spaces and ANDed. For instance “holidays size > 2M” matches documents containing “holidays” and having a size greater than 2 megabytes. Supported operators are AND, OR and NOT (that can also be written “!”). These operators can be enclosed into braces, to impose a specific grouping. Every operator has the same priority, and they are left-associative: “a AND b OR c” is parsed to “(a AND b) OR c”.
The second new feature is nested queries. Nested queries are used to match documents related to others, or contained in a specific archive, or sent as attachments to an email, etc. The pattern syntax for this is “related to … ,”, where “…” matches a list of terms, and the comma indicates that this list of matched terms ends when a comma or the end of the query is encountered. The parsing pass receives the list of the tokens matched by the “…”, and can build a subquery with them.
The query I used to test this feature is “files related to e-mails sent by Denis, size > 2M”. This query is parsed to this tree of terms:
You see that everything seems to work. “2M” is converted to an integer, and the subquery starts at line 6 (the and) and ends at line 15 (the end of the and).
The next steps are the following:
Parsing tags (using patterns like “tagged as %1”, “(has|have) tag %1” and “# %1”, the hashtag syntax)
Getting range information about properties. This will allow the parser to know that “fileSize” needs an integer (and not a string for instance). This feature will be especially useful for the auto-completion box, as it will allow the box to show drop-down lists for known property ranges. For instance, typing “has tag” will list you tags, “sent by” will display your contacts, and “modified on” could even show a calendar!
Parsing date-times. I want to see if my parser can handle all the parsing rules of the current KHumanDateTimeParser I have developed some weeks ago.
I hope to have most of that ready by the start of next week. This way, I will be on schedule and I will be able to start thinking about the syntax-highlighting and auto-completion.
28.02.2008 devel/hs-uulib - 0.9.5 Fast Parser Combinators and Pretty Printing Combinators
libraries by the Utrecht University.
maintainer: Arie Middelkoop <email@example.com>
UU.Parsing.Merge UU.Parsing.Offside UU.Parsing.Perms
UU.Parsing.StateParser UU.Parsing UU.DData.IntBag
UU.DData.Map UU.DData.MultiSet UU.DData.Queue
UU.DData.Scc UU.DData.Seq UU.DData.Set UU.PPrint
UU.Pretty.Ext UU.Pretty...17.03.2008 dns/p5-Net-DNS - 0.63 Update to version 0.63, which has a couple of bug fixes, including:
Fix rt.cpan.org #30316 Security issue with Net::DNS Resolver.
Net/DNS/RR/A.pm in Net::DNS 0.60 build 654 allows remote attackers
to cause a denial of service (program "croak") via a crafted DNS
response (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2007-6341). Packet
parsing routines are now enclosed in eval blocks to trap exception
and avoid premature termination of user program.
Used ideas from:
Submitted by: Felippe de Meirelles Motta <firstname.lastname@example.org>06.04.2008 sysutils/deltup - 0.4.4_1 - remove what looks like a debug leftover printf() which offers no useful
information but makes parsing the output hard.
Approved by: novel@ (maintainer, implicit)19.04.2008 A Ruby Plasma Data Engine based on DBPedia SPARQL queries Submitted by richard dale on Thu, 04/17/2008 - 19:08. KDE General I've been playing with using KIO::get() to make queries on the DBPedia SPARQL endpoint, parse the XML result set and convert it to be used by a ... 13.03.2008 Статья о производительности xml-парсеров Scott Sanders опубликовал статью с результатами сравнения различных xml-парсеров. Проверке подверглись как известные продукты, такие как RapidXml, DOM4J, libxml2sax, Java6, так и менее известные - Aalto, Javolution, Woodstox, StaX, phobos и Tango. По результатам сравнения видно, что с задачей обработки файлов одинакового объема быстрее всех справляется Tango pull parser. С небольшим отставанием идут Tango SAX, Tango DOM и RapidXml. >>> Why is D/Tango so fast at parsing XML?16.10.2012 KBibTeX 0.4.1 KBibTeX is a BibTeX editor for KDE to edit bibliographies used with LaTeX. Features include comfortable input masks, starting Web queries , and exporting to PDF, PostScript, RTF, and XML/HTML. As KBibTeX is using KDE's KParts technology, it can be embedded into Kile or Konqueror.07.03.2011 New Articles Published for week ending 3/5/11 New Articles Published for week ending 3/5/11 VMware Alive Enterprise Setting multiple FSDB locations in VMware Alive (1034899) Date Published: 3/1/2011 Connecting to the VMware Alive Enterprise SCOM adapter using Windows Authentication (1035184) Date Published: 3/3/2011 VMware Data Recovery More than 0 virtual machines were selected. A maximum of 0 virtual machines can be backed up by one Data Recovery appliance (1033813) Date Published: 2/28/2011 VMware Data Recovery File Level Restore: Installing FUSE on a Debian-based Linux 64bit OS (1035231) Date Published: 3/3/2011 VMware ESX vMotio...02.05.2011 KBibTeX 0.3 beta 2 KBibTeX is a BibTeX editor for KDE to edit bibliographies used with LaTeX. Features include comfortable input masks, starting Web queries , and exporting to PDF, PostScript, RTF, and XML/HTML. As KBibTeX is using KDE's KParts technology, it can be embedded into Kile or Konqueror.24.05.2011 New Articles Published for Week Ending 5/21/11 New Articles Published for Week Ending 5/21/11 Apache Tomcat Determining your version of Tomcat (1033932) Date Published: 5/19/2011 VMware Converter VMware Converter fails with the error: Unable to create a VSS snapshot of the source volume(s) (1039087) Date Published: 5/20/2011 VMware ESX Cursor fails to interact with any objects in the bottom 3 inches of the screen of a full screen virtual machine. (1000467) Date Published: 5/20/2011 Exporting system logs fail for ESX/ESXi host fails with the error: A general system error occurred: internal error (1000558) Date Published: 5/20/2011 Wi...27.06.2011 New Articles Published for Week Ending 6/25/11 New Articles Published for Week Ending 6/25/11 Apache Tomcat 7 How can Tomcat redirect to a secure connection when behind a reverse proxy web server? (1037406) Date Published: 6/22/2011 Eclipse Virgo Enabling the YourKit Profiler with Eclipse Virgo (2000979) Date Published: 6/24/2011 VMware Converter Setting the minimum vCenter Server permissions required to perform VMware Converter operations (2000123) Date Published: 6/21/2011 VMware Data Recovery Backing up a virtual machine using VMware Data Recovery fails with the error: Trouble writing to destination store, -1115 ( disk full) (...