From: Amir P. <pa...@gm...> - 2010-09-22 07:42:45
|
Hi On Tue, Sep 21, 2010 at 12:00 PM, Sebastian Trüg <tr...@kd...> wrote: > Hi Amir, > > looks like I missed this one. So here goes. > > On 09/14/2010 06:50 PM, Amir Pakdel wrote: > > The last prombems were: > > > > 1. > > > > I havd to update Krunner Nepomuk plugin to the last version > > > > 2. > > > > There is a /22rdfsyntaxnsmetadata/ function in /rdf/ which I had > > to comment out > > Is this something Nepomuk-related? Something that did not work or might > need fixing from my part? > The rdf.h and rdf.cpp files are generated from rdf.trig file using the following CMake commands: set(nepomukintegration_LIB_SRCS nepomukintegration.cpp) include(SopranoAddOntology) soprano_add_ontology(nepomukintegration_LIB_SRCS ${SHAREDDESKTOPONTOLOGIES_ROOT_DIR}/core/rdf.trig "RDF" "Soprano::Vocabulary" "trig") And rdf.trig is in /usr/share/ontology/core/ (at least in my Ubuntu 10.04 lucid) and it is a part of shared-desktop-ontologies package. I am not sure it is related to Nepomuk or Soprano or anything else. Does anyone have any idea? > > > I have attached latest version of /src/nepomukintegration.h/ and > > /src/nepomukintegration.cpp/ and I would be greateful if you could take > > look and inform me of any error, bug or requred features. > > Some comments: > - It is recommended to use KUrl(path) instead of > QUrl::fromLocalFile(path) > Corrected in my source. > - setProperty( "a" ) is very very wrong. :) What you want to do is > calling addType() > I was trying to mimic what Laura mentioned in the following line: <nepomuk:/res/a_note> a <pimo:Note> I removed it from my source and uncommented the addType() > - there is no need to add nfo:FileDataObject type manually. That is > already handled by strigi and Resource. The same goes for nie:url > - nfo:fileUrl is deprecated in favor of nie:url. - Please do not use DC. Rather use nie:title. > - use setLabel() instead of setProperty( NAO::prefLabel(), > Corrected these too. Thanks. > > > Here is the updated and reformatted testing procedure: > > I am not sure what to do with the explanations below. Is that for manual > testing? > > Yes, I was testing my code to see if it is working properly. Does that testing procedure seem OK? > > > Trüg, do you know why I cannot find tags? > > Laura, what metadata do you suggest to add next? > > Have the tags been created properly? Best way to check since yesterday > is NepSaK[1] by selecting "All resources" in the browsing tab and then > look for Tag. > > It is a great tool; made my life easier :) > Cheers, > Sebastian > > [1] > > https://trueg.wordpress.com/2010/09/20/what-happens-if-mr-nepomuk-meets-a-bunch-of-telepathyans/ > Thank you very much. Cheers, Amir |