User:Claus chr/Test1

From KDE Wiki Sandbox
Revision as of 19:09, 5 January 2013 by Claus chr (talk | contribs) (Created page with "== Test of Input template == <nowiki>{{Input|1=<nowiki>This is verbatim text entered in a template to be displayed as is</ nowiki>}}</nowiki> gives this result {{Inpu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Test of Input template

{{Input|1=<nowiki>This is verbatim text entered in a template to be displayed as is</ nowiki>}}

gives this result

This is
verbatim text
  entered in a template
     to be displayed as is

Test of the <code> tag

This snippet <code>short command</code> displayes a short command in the body of text that encloses it.

Syntaxhighlight

The queries can be run via this model -

    QString query = QString::fromLatin1("select ?r where { ?r a nco:Contact . }");
    Soprano::Model* model = Nepomuk2::ResourceManager::instance()->mainModel();
    Soprano::QueryResultIterator it = model->executeQuery( query, Soprano::Query::QueryLanguageSparql );

    while( it.next() ) {
        kDebug() << it["r"].uri();
    }