# Namespace Soprano.Query

Module | soprano
Namespace | Soprano.Query

### enums

- QueryLanguage { QueryLanguageNone, QueryLanguageSparql, QueryLanguageRdql, QueryLanguageSerql, QueryLanguageUser, QUERY_LANGUAGE_NONE, QUERY_LANGUAGE_SPARQL, QUERY_LANGUAGE_RDQL, QUERY_LANGUAGE_SERQL, QUERY_LANGUAGE_USER }

enum details

### methods

- queryLanguageFromString (queryLanguage)

  returns Soprano.Query.QueryLanguage

  Argument | Type | Default
  --- | --- | ---
  queryLanguage | QString |

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

  queryLanguage - The query language string to convert.

  Returns The QueryLanguage value corresponding to queryLanguage or Soprano.Query.QueryLanguageUser if it is unknown.

- queryLanguageToString (lang, userQueryLanguage)

  returns QString

  Argument | Type | Default
  --- | --- | ---
  lang | Soprano.Query.QueryLanguage |
  userQueryLanguage | QString | QString()

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

  lang - The query language to convert

  userQueryLanguage - If 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.

### enums - detail

- QueryLanguage { QueryLanguageNone, QueryLanguageSparql, QueryLanguageRdql, QueryLanguageSerql, QueryLanguageUser, QUERY_LANGUAGE_NONE, QUERY_LANGUAGE_SPARQL, QUERY_LANGUAGE_RDQL, QUERY_LANGUAGE_SERQL, QUERY_LANGUAGE_USER }

  %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

  | QueryLanguageNone | - 0x0 | - | No query language
  | QueryLanguageSparql | - 0x1 | - | The SPARQL query language: http: www.w3.org TR rdf-sparql-query
  | QueryLanguageRdql | - 0x2 | - | The RDQL RDF query language: http: www.w3.org Submission 2004 SUBM-RDQL-20040109
  | QueryLanguageSerql | - 0x4 | - | Sesame RDF %Query Language: http: openrdf.org doc sesame2 users ch05.html
  | QueryLanguageUser | - 0x1000 | - | The user type can be used to introduce unknown query lanaguages by name
  | QUERY_LANGUAGE_NONE | - QueryLanguageNone | - | Deprecated < i>< b> use QueryLanguageNone
  | QUERY_LANGUAGE_SPARQL | - QueryLanguageSparql | - | Deprecated < i>< b> use QueryLanguageSparql
  | QUERY_LANGUAGE_RDQL | - QueryLanguageRdql | - | Deprecated < i>< b> use QueryLanguageRdql
  | QUERY_LANGUAGE_SERQL | - QueryLanguageSerql | - | Deprecated < i>< b> use QueryLanguageSerql
  | QUERY_LANGUAGE_USER | - QueryLanguageUser | - | Deprecated < i>< b> use QueryLanguageUser