Public Member Functions | Protected Member Functions | Protected Attributes

RDFModel_SPARQLLimited Class Reference

A view on the given delegate model, restricted to showing only the triples which match a given SPARQL query. More...

Inheritance diagram for RDFModel_SPARQLLimited:
PD_RDFModelFromAP PD_DocumentRDF PD_RDFModel RDFModel_XMLIDLimited

List of all members.

Public Member Functions

 RDFModel_SPARQLLimited (PD_DocumentRDFHandle rdf, PD_RDFModelHandle delegate)
virtual ~RDFModel_SPARQLLimited ()
createMutation ()
virtual std::string getSparql ()
void setSparql (const std::string &s)
virtual const PP_AttrPropgetAP (void)

Protected Member Functions

virtual void update ()

Protected Attributes

PD_DocumentRDFHandle m_rdf
PD_RDFModelHandle m_delegate
std::string m_sparql

Detailed Description

A view on the given delegate model, restricted to showing only the triples which match a given SPARQL query.

For dynamicaly created queries, a subclass might overload getSparql() and make the query string at runtime.

Subclasses might decide to override createMutation() to adjust things when changes are desired.

Constructor & Destructor Documentation

RDFModel_SPARQLLimited::RDFModel_SPARQLLimited ( PD_DocumentRDFHandle  rdf,
PD_RDFModelHandle  delegate 
) [inline]
virtual RDFModel_SPARQLLimited::~RDFModel_SPARQLLimited (  )  [inline, virtual]

Member Function Documentation

PD_DocumentRDFMutationHandle RDFModel_SPARQLLimited::createMutation (  )  [virtual]

Reimplemented from PD_DocumentRDF.

Reimplemented in RDFModel_XMLIDLimited.

virtual const PP_AttrProp* RDFModel_SPARQLLimited::getAP ( void   )  [inline, virtual]

Reimplemented from PD_RDFModelFromAP.

References PD_RDFModelFromAP::m_AP, and update().

virtual std::string RDFModel_SPARQLLimited::getSparql (  )  [inline, virtual]

Reimplemented in RDFModel_XMLIDLimited.

References m_sparql.

Referenced by update().

void RDFModel_SPARQLLimited::setSparql ( const std::string &  s  )  [inline]

References m_sparql.

Member Data Documentation

std::string RDFModel_SPARQLLimited::m_sparql [protected]

Referenced by getSparql(), and setSparql().

The documentation for this class was generated from the following file: