• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

syndication/rdf

  • Syndication
  • RDF
  • Statement
Public Member Functions

Syndication::RDF::Statement Class Reference

An RDF statement, consisting of a triple (subject, predicate, object). More...

#include <statement.h>

List of all members.

Public Member Functions

 Statement ()
 Statement (const Statement &other)
 Statement (ResourcePtr subject, PropertyPtr predicate, NodePtr object)
virtual ~Statement ()
virtual ResourcePtr asResource () const
virtual QString asString () const
virtual bool isNull () const
virtual NodePtr object () const
Statement & operator= (const Statement &other)
virtual bool operator== (const Statement &other) const
virtual PropertyPtr predicate () const
virtual ResourcePtr subject () const

Detailed Description

An RDF statement, consisting of a triple (subject, predicate, object).

Definition at line 43 of file statement.h.


Constructor & Destructor Documentation

Syndication::RDF::Statement::Statement ( )

creates a null statement

Definition at line 57 of file statement.cpp.

Syndication::RDF::Statement::Statement ( const Statement &  other)

creates a copy of another statement

Parameters:
otherthe statement to copy

Definition at line 64 of file statement.cpp.

Syndication::RDF::Statement::Statement ( ResourcePtr  subject,
PropertyPtr  predicate,
NodePtr  object 
)

creates a statement Do not call this in your code, use Model::createStatement() instead.

Parameters:
subjectthe subject resource of the statement
predicatethe predicate of the statement
objectthe object node of the statement

Definition at line 69 of file statement.cpp.

Syndication::RDF::Statement::~Statement ( ) [virtual]

destructor

Definition at line 78 of file statement.cpp.


Member Function Documentation

ResourcePtr Syndication::RDF::Statement::asResource ( ) const [virtual]

returns the object of this statement as resource, if possible.

Returns:
the object node as Resource, or null if the object is not a resource

Definition at line 119 of file statement.cpp.

QString Syndication::RDF::Statement::asString ( ) const [virtual]

returns the object of this statement as string, if possible.

Returns:
the literal text as QString, or a null string if the object is not a literal

Definition at line 129 of file statement.cpp.

bool Syndication::RDF::Statement::isNull ( ) const [virtual]

returns whether this statement is a null statement (i.e.

was created using Statement())

Definition at line 96 of file statement.cpp.

NodePtr Syndication::RDF::Statement::object ( ) const [virtual]

the object of the statement

Definition at line 113 of file statement.cpp.

Statement & Syndication::RDF::Statement::operator= ( const Statement &  other)

assigns another statement

Parameters:
otherthe statement to assign

Definition at line 82 of file statement.cpp.

bool Syndication::RDF::Statement::operator== ( const Statement &  other) const [virtual]

returns whether two statements are equal.

Currently statements are equal, if they are from the same model (!) and subject, predicate and object are equal.

Parameters:
otherthe statement to compare to

Definition at line 88 of file statement.cpp.

PropertyPtr Syndication::RDF::Statement::predicate ( ) const [virtual]

the predicate of the statement

Definition at line 107 of file statement.cpp.

ResourcePtr Syndication::RDF::Statement::subject ( ) const [virtual]

the subject of the statement.

Definition at line 101 of file statement.cpp.


The documentation for this class was generated from the following files:
  • statement.h
  • statement.cpp

syndication/rdf

Skip menu "syndication/rdf"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal