Revision 57f3963...

Go back to digest for 7th August 2011

Features in KDE Base

Sebastian Trueg committed changes in [kde-runtime] /services/storage:

New and improved describeResources method.

The DataManagementModel's describeResources now uses flags instead of
the boolean parameter. The supported flags are
- ExcludeDiscardableData - does exactly what it says: it excludes all
data from discardable graphs.
- ExcludeRelatedResources - excludes related resources except sub-
resources. By default all related resources are returned with their
identifying properties. If this flag is set only sub-resources are
included.

As mentioned before sub-resources are now always included. A sub-
resource is defined as being part of the super-resource and not making
any sense without it. Thus, excluding sub-resources is pointless.

The method also includes a third parameter: targetParties. This is not
implemented yet but will be used to specify the nao:Partys that the
data should be sent to. describeResources will then filter out data
that is not public to all of the parties.

Many situations are covered in the unit tests although probably not all.

One Virtuoso issue remains: all queries have to be executed for each
resource individually. I already asked on the Virtuoso mailing list[1]
about this issue. To me it seems like a bug.

[1] http://sourceforge.net/mailarchive/forum.php?thread_name=4E36D5ED.9020904%40kde.org&forum_name=virtuoso-users

File Changes

Modified 22 files
  • /services/storage
  •   nepomuk/classandpropertytree.cpp
  •   nepomuk/crappyinferencer.cpp
  •   nepomuk/crappyinferencer2.cpp
  •   nepomuk/datamanagementadaptor.cpp
  •   nepomuk/datamanagementadaptor.h
  •   nepomuk/datamanagementcommand.h
  •   nepomuk/datamanagementmodel.cpp
  •   nepomuk/datamanagementmodel.h
  •   nepomuk/lib/datamanagement.cpp
  •   nepomuk/lib/datamanagement.h
  •   nepomuk/lib/datamanagementinterface.h
  •   nepomuk/lib/describeresourcesjob.cpp
  •   nepomuk/lib/describeresourcesjob.h
  •   nepomuk/lib/simpleresource.cpp
  •   nepomuk/lib/simpleresource.h
  •   nepomuk/lib/simpleresourcegraph.cpp
  •   nepomuk/lib/simpleresourcegraph.h
  •   nepomuk/test/asyncclientapitest.cpp
  •   nepomuk/test/CMakeLists.txt
  •   nepomuk/test/datamanagementmodeltest.cpp
  •   nepomuk/test/datamanagementmodeltest.h
  •   nepomuk/test/qtest_dms.cpp
22 files changed in total