Hi!<div><br></div><div>I&#39;m Ignacio Serantes and I&#39;m new to this list and an active nepomuk user. I&#39;m from Spain, so my apologies for my English and excuse me for my rude language.</div>

<div><br></div><div>I&#39;m actually developing a python script to backup/restore, share nepomuk data in usb disks and tag/untag files from command line. The script name is neposidekick and I submitted to kde-apps.</div>

<div><br></div><div>But I updated last week to KDE 4.6 and because search is not working, I dislike a lot the new filter panel, and I hate that the query toolbar box was removed in KDE 4.6, I decided to add queries to my script.</div>

<div><br></div><div>Actually queries works only in console fine and fast except if you mix ontologies, a design mistake because I barely know sparql, but next weekend I will rewrite sparql builder and solve this problem.</div>

<div><br></div><div>The search syntax is currently:</div><div><br></div><div>exact_string = &quot;string&quot; | &#39;string&#39;</div><div>value = exact_string | date | number | string</div>
<div>op = &gt; | &lt; | &gt;= | &lt;= | = | != </div><div><br></div><div>term = [ + | - ] value [op] [:ontology]</div><div>query = term [ [or] term ]...</div><div><br></div><div>but dates, numbers and arithmetic operators are not supported and only Tag, hasTag, description and url ontologies are implemented yet.</div>

<div><br></div><div>Here are same usage examples:</div><div>query: &#39;pending&#39;:hasTag .avi:name -&#39;Takeuchi Yūko&#39;:actor</div><div>explanation: hasTag equals pending, file name contains .avi and actor not equal &#39;Takeuchi Yūko&#39;</div>

<div><br></div><div>query: wind</div><div>explanation: wind contained in all supported places</div><div><br></div><div>query: movie:hasTag 5&gt; </div><div>explanation: hasTag contains movie and rating &gt; 5</div><div><br>

</div><div>query: 5&lt; or 8&gt;</div><div>explanation: rating &lt; 5 or rating &gt; 8</div><div><br></div><div>Some question are not decided yet, for example date format, but when I will rewrite sparql generator I will have more knowledge about this stuff.</div>

<div><br></div><div>About query language, please consider that my intention is not create a natural language, an easy language or an input interface because this are nepomuksearch and filter panel goals. I want a syntax where you can write complex queries in a few seconds, without inutile key presses or a method where you need to open a window several times and do a search to add a tag to build your query.</div>

<div><br></div><div>In irc sxe (sorry and don&#39;t know his real name) was a great help testing my work and he and V. Handa suggested to write a KIO. I think that this is a great idea if KIO could be written in python so any knowledge about this stuff will be appreciated.</div>

<div>
<div><br></div><div>Comments and suggestions about my work are welcome :).</div><div><br></div><div>On the other side, I&#39;m reading nmm ontologies and I found that there is a lot of interesting stuff, at least for me, missing. Things like music videos or live performances, documentaries or emission dates. I&#39;m a newbie so I don&#39;t know if things like this are inside or outside of nmm goals neither this stuff was discussed before.</div>

<div><br></div><div>-- </div></div><div>Cheers<br><div>Ignacio</div><div><br></div>
</div>