• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

Nepomuk

  • nepomuk
  • core
Functions
tools.h File Reference
#include <QtCore/QString>
#include <QtCore/QList>
#include "variant.h"
#include "nepomuk_export.h"
#include <soprano/node.h>
#include <kdemacros.h>

Go to the source code of this file.

Functions

template<typename T >
QList< T > Nepomuk::convertResourceList (const QList< Resource > &l)
 
template<typename T >
QList< Resource > Nepomuk::convertResourceList (const QList< T > &l)
 
QString Nepomuk::defaultGraph ()
 
QString Nepomuk::naoNamespace ()
 
QString Nepomuk::nrlNamespace ()
 
Variant Nepomuk::RDFLiteralToValue (const Soprano::Node &node)
 
QString Nepomuk::rdfNamepace ()
 
QString Nepomuk::rdfsNamespace ()
 
void Nepomuk::setDefaultRepository (const QString &s)
 
QString Nepomuk::typePredicate ()
 
QList< Soprano::Node > Nepomuk::valuesToRDFNodes (const Variant &)
 
Soprano::Node Nepomuk::valueToRDFNode (const Variant &)
 

Function Documentation

◆ convertResourceList() [1/2]

template<typename T >
QList<T> Nepomuk::convertResourceList ( const QList< Resource > &  l)

Used internally by Resource.

Convert a list of resources to a list of Ts where T needs to be a subclass of Resource.

Returns
A list containing all resources in l represented as a T.

Definition at line 58 of file tools.h.

◆ convertResourceList() [2/2]

template<typename T >
QList<Resource> Nepomuk::convertResourceList ( const QList< T > &  l)

Used internally by Resource.

Convert a list of Ts to a list of Resources where T needs to be a subclass of Resource.

Returns
A list containing all resources in l.

Definition at line 73 of file tools.h.

◆ defaultGraph()

QString Nepomuk::defaultGraph ( )
Returns
The name of the default Nepomuk repository ("main").
Deprecated:
Use Nepomuk::ResourceManager::mainModel()

◆ naoNamespace()

QString Nepomuk::naoNamespace ( )
Deprecated:
Use Soprano::Vocabulary::NAO::naoNamepace()

◆ nrlNamespace()

QString Nepomuk::nrlNamespace ( )
Deprecated:
Use Soprano::Vocabulary::NRL::nrlNamepace()

◆ RDFLiteralToValue()

Variant Nepomuk::RDFLiteralToValue ( const Soprano::Node &  node)
Deprecated:
Use Variant::fromNode() instead.

◆ rdfNamepace()

QString Nepomuk::rdfNamepace ( )
Deprecated:
Use Soprano::Vocabulary::RDF::rdfNamepace()

◆ rdfsNamespace()

QString Nepomuk::rdfsNamespace ( )
Deprecated:
Use Soprano::Vocabulary::RDFS::rdfsNamepace()

◆ setDefaultRepository()

void Nepomuk::setDefaultRepository ( const QString &  s)
Deprecated:
Has no effect anymore.

◆ typePredicate()

QString Nepomuk::typePredicate ( )
Deprecated:
Use Soprano::Vocabulary::RDF::type()

◆ valuesToRDFNodes()

QList<Soprano::Node> Nepomuk::valuesToRDFNodes ( const Variant &  )

Used internally by Resource.

Converts a Variant into a literal value to be used in the RDF store.

Deprecated:
Use Nepomuk::Varaint::toNodeList()

◆ valueToRDFNode()

Soprano::Node Nepomuk::valueToRDFNode ( const Variant &  )

Used internally by Resource.

Converts a non-list Variant into a Soprano::Node.

Deprecated:
Use Nepomuk::Varaint::toNode()
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Feb 3 2022 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk

Skip menu "Nepomuk"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal