Hey Bogan<br><br><div class="gmail_quote">On Sat, Sep 8, 2012 at 3:58 PM, Bogdan Bivolaru <span dir="ltr"><<a href="mailto:bogdan.bivolaru@gmail.com" target="_blank">bogdan.bivolaru@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<div>I'm looking for a way to integrate my browsers (Firefox, Chormium and sometimes Rekonq) and my torrent client (Ktorrent) with Nepomuk.</div><div>I want to link a file downloaded to the site I got it from and if it is a movie or a song I would like to extract author information from the website. It is likely that the site contains in the download page some information about the performers in the downloaded movie/song and I would like to save that information to the file.</div>



<div> </div><div>I have thought of two solutions to this problem:</div><div> 1) in Firefox, make a native plugin using NPAPI (<a href="https://developer.mozilla.org/en-US/docs/Gecko_Plugin_API_Reference" target="_blank">https://developer.mozilla.org/en-US/docs/Gecko_Plugin_API_Reference</a>); I suppose other browsers also have such a native code API.</div>



<div>This is hard to do because someone has to write and maintain the plugin code for every browser in use. <br></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> 2) An easier task would be to make a http server that listens on localhost and receives and answers JSON documents.</div>


<div>I would then be able to write extensions in HTML which query and add new properties to resources. Most/all of the HTML/JS code for the extensions would run without changes on all browsers.</div></blockquote><div><br>
But then you wouldn't be able to ship the plugin very easily. Maybe through a distro, but not through the browser's addon page.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br></div><div>UPDATE: </div>


<div> 3) From what I remember reading in an article about a year ago, Zeitgeist is to be integrated with Nepomuk and zeitgeist-datasources are to provide such functionality. What is the status of the integration of Zeitgeist in KDE?</div>



<div>Zeitgeist data providers (<a href="http://bazaar.launchpad.net/~zeitgeist-dataproviders/zeitgeist-datasources/git/files" target="_blank">http://bazaar.launchpad.net/~zeitgeist-dataproviders/zeitgeist-datasources/git/files</a>) support a lot of applications!</div>



<div>/UPDATE</div></blockquote><div><br>It seems as though Zeitgeist does provide a lot lot information. Unfortunately, AFAIK it does not push any of that data into Nepomuk. There have been a number of plans to push the data, but nothing concrete.<br>
 <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div>This second solution seems pretty easy, but I have some questions:</div><div> 4) has anyone else started such a project?</div>
<div>I have googled "Nepomuk JSON" on the net and I came out with a GWT application (<a href="https://bitbucket.org/pombredanne/webannotator/" target="_blank">https://bitbucket.org/pombredanne/webannotator/</a>), an Eclipse application (<a href="http://dev.nepomuk.semanticdesktop.org/wiki/EclipseDevelopment" target="_blank">http://dev.nepomuk.semanticdesktop.org/wiki/EclipseDevelopment</a>) and a server called <span style="color:rgb(51,51,51);font-size:12px;font-family:Verdana,Lucida,Geneva,Helvetica,Arial,sans-serif">SWIM. I have also found a dead link to the home page of a Mandriva software. So in my opinion, the existing http server software is unmantained, undocumented and/or does not do what I need.</span></div>
</blockquote><div><br>Most of the stuff on the <a href="http://semanticdesktop.org">semanticdesktop.org</a> is very outdated from a KDE point of view.<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><span style="color:rgb(51,51,51);font-size:12px;font-family:Verdana,Lucida,Geneva,Helvetica,Arial,sans-serif"></span> 5) putting on a network a server which knows about most of the files in my user's home directory might pose a security risk, doesn't it?</div>
</blockquote><div><br>Depends on which port you're running it on, and the kind of ports you have open for general consumption. I see nothing wrong with running and http server on some random port, and not allowing foreign connections on that port.<br>
<br>But why don't you just use a local socket connection, instead?<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><br></div><div> 6) Do you have more up to date documentation? Do you have any advice?</div></blockquote><div><br>Well, we have *very* good technical documentation for Nepomuk [1].<br><br>I think it would be best if you split your idea into multiple parts - fetching the download link, and extracting further metadata. The latter has already been done extensively. Fetching the download link in KDE applications should be fairly straight forward, specially since you can directly access the Nepomuk APIs.<br>
<br>The only difficult part might be understanding the ontologies.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div> 7) Querying the Nepomuk database also queries the Zeitgeist DB?</div>
</blockquote><div><br>Nope. Zeitgeist and Nepomuk and completely separate. <br><br>[1] <a href="http://techbase.kde.org/Projects/Nepomuk">http://techbase.kde.org/Projects/Nepomuk</a><br><br>-- <br></div></div><span style="color:rgb(192,192,192)">Vishesh Handa</span><br>
<br>