Soprano  2.7.56
Enumerations | Functions
Soprano::Query Namespace Reference

Enumerations

enum  QueryLanguage {
  QueryLanguageNone = 0x0, QueryLanguageSparql = 0x1, QueryLanguageRdql = 0x2, QueryLanguageSerql = 0x4,
  QueryLanguageSparqlNoInference = 0x8, QueryLanguageUser = 0x1000, QUERY_LANGUAGE_NONE = QueryLanguageNone, QUERY_LANGUAGE_SPARQL = QueryLanguageSparql,
  QUERY_LANGUAGE_RDQL = QueryLanguageRdql, QUERY_LANGUAGE_SERQL = QueryLanguageSerql, QUERY_LANGUAGE_USER = QueryLanguageUser
}

Functions

SOPRANO_EXPORT QString queryLanguageToString (Soprano::Query::QueryLanguage lang, const QString &userQueryLanguage=QString())
SOPRANO_EXPORT QueryLanguage queryLanguageFromString (const QString &queryLanguage)

Enumeration Type Documentation

Soprano defines a set of well-known query languages that can be used to serialize queries. Additional languages may be supported using Query::QueryLanguageUser in combination with string codes.

See also:
Model::executeQuery, Query::Parser, Query::Serializer
Enumerator:
QueryLanguageNone 

No query language

QueryLanguageSparql 

The SPARQL query language: http://www.w3.org/TR/rdf-sparql-query/

QueryLanguageRdql 

The RDQL RDF query language: http://www.w3.org/Submission/2004/SUBM-RDQL-20040109/

QueryLanguageSerql 

Sesame RDF Query Language: http://openrdf.org/doc/sesame2/users/ch05.html

QueryLanguageSparqlNoInference 

The SPARQL query language without any inference. This special language was introduced in Soprano 2.8 to level the fact that no support for query flags exists. It is not supported by any backend yet but can be used in FilterModels. A possible implementation would be a FilterModel which enables Virtuoso inference through special SPARQL extensions as done in Nepomuk.

QueryLanguageUser 

The user type can be used to introduce unknown query lanaguages by name

QUERY_LANGUAGE_NONE 
Deprecated:
use Soprano::Query::QueryLanguageNone
QUERY_LANGUAGE_SPARQL 
Deprecated:
use Soprano::Query::QueryLanguageSparql
QUERY_LANGUAGE_RDQL 
Deprecated:
use Soprano::Query::QueryLanguageRdql
QUERY_LANGUAGE_SERQL 
Deprecated:
use Soprano::Query::QueryLanguageSerql
QUERY_LANGUAGE_USER 
Deprecated:
use Soprano::Query::QueryLanguageUser

Definition at line 129 of file sopranotypes.h.


Function Documentation

Convert a Soprano::Query::QueryLanguage value into a string representation.

Parameters:
langThe query language to convert
userQueryLanguageIf lang equals Query::QueryLanguageUser, userQueryLanguage defines the language to use.
Returns:
A string representation of lang. If lang equals Soprano::Query::QueryLanguageUser, the method simply returns userQueryLanguage.

Convert a query language string into a Soprano::Query::QueryLanguage value.

Parameters:
queryLanguageThe query language string to convert.
Returns:
The QueryLanguage value corresponding to queryLanguage or Soprano::Query::QueryLanguageUser if it is unknown.