heavy duty query visualization

Marco Martin notmart at gmail.com
Mon Oct 17 20:50:35 UTC 2011


On Friday 14 October 2011, Marco Martin wrote:
> Hi all,
> 
> in Plasma Active one things like the activity screen that shows all the
> nepomuk resources, the ui to search and add a new one, the image viewer
> (that lists all objects of type image) use the plasma metadata dataengine.
> this one is basically just a wrapper around Nepomuk QueryClient.
> due to the architecture of plasma dataengines, this is not so much
> efficient, since a quite too much of data copy around is involved.

update on this:
the model can be created from qml, correctly loads results from queries.
supports desktop queries, date ranges, resource types, tags, ratings, 
activities.
still missing the lazy loading of only a subset of results at a time.

at the moment filters on a single type and a single activity, it will probably 
be an or of an array of types and an array of activities.

an example is: (there is a test.qml in the folder to do some tests)
ListView {
	model: MetadataModel {
            id: metadataModel
            queryString: "foobar"
            resourceType: "Document"
            activityId: "12c8a6ea-c99b-4a54-bf42-a4e8fbcb9be7"
            sortBy: ["nie#url", "nao#lastModified"]
	}
}

it looks quite simple...
if and only if something more complex will be needed, we could attempt an 1:1 
binding to the nepomuk query api.. not now tough ;) (mostly for concerns 
regarding qtscript future)

some other fancy things that should be supported come to mind? ;)

Cheers,
Marco Martin


More information about the Active mailing list