Nepomuk
dynamicresourcefacet.h
Go to the documentation of this file.
A property is a resource of type rdf:Property which relates a domain with a range.
Definition property.h:53
int maxRows() const
virtual Query::Query resourceQuery(const Query::Query &clientQuery) const
Construct the query that will be used to determine the resources that are presented as choices in the...
void setResourceType(const Types::Class &type)
This is optional and defaults to the property's range if not set.
DynamicResourceFacet(QObject *parent=0)
Create a new empty facet.
virtual ~DynamicResourceFacet()
Destructor.
QList< Resource > selectedResources() const
void handleClientQueryChange()
Reimplemented to properly update the resource list on client query change.
void setSelected(int index, bool selected=true)
Select or deselect the resource at index.
virtual Nepomuk::Resource resourceForTerm(const Nepomuk::Query::Term &queryTerm) const
Used by selectFromTerm() to convert terms into resources.
void setSelectionMode(SelectionMode mode)
Set the selection mode to use in this facet.
void setMaxRows(int max)
Set the maximum rows to show by default.
virtual QList< Resource > getMoreResources() const
Used to query additional resources if maxRows() is too small to fit all candidates.
bool selectFromTerm(const Nepomuk::Query::Term &queryTerm)
The term is analyzed depending on the selectionMode().
void setSelected(const Nepomuk::Resource &res, bool selected=true)
Select or deselect res.
virtual Nepomuk::Query::Term termForResource(const Resource &res) const
Used by term() to construct the final query term this facet provides.
bool isSelected(int index) const
Nepomuk::Resource resourceAt(int i) const
SelectionMode selectionMode() const
The selection mode set via setSelectionMode()
Types::Class resourceType() const
Types::Property relation() const
Query::Term queryTerm() const
KGuiItem guiItem(int index) const
The parameters used to render the choice at index.
int count() const
void setRelation(const Types::Property &prop)
Set the property to use in the facet.
SelectionMode
A Facet can have one of three selection modes which is provided by selectionMode().
Definition facet.h:93
Query::Query clientQuery() const
The client query set via setClientQuery().
The Query namespace contains all classes that make up the Nepomuk Query API.
The Types namespace contains all classes used to handle ontology entities such as classes and propert...
The Utils namespace contains utility and convenience methods and classes that help the application de...
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.