Help:SPARQLStore VirtuosoHttpDatabaseConnector

From semantic-mediawiki.org
Jump to: navigation, search
SPARQLStoreSPARQLStore/RepositoryConnectorHelp:SPARQLStore VirtuosoHttpDatabaseConnector
SPARQLStore/RepositoryConnector/Virtuoso
Virtuoso opensource access point to the SPARQLStore
Further Information
Short name: Virtuoso
Provided by: Semantic MediaWiki
Added: 2.0
Removed: still in use
Keyword : RDF · SPARQLStore · Database connector · Virtuoso opensource · Virtuoso
Table of Contents

Virtuoso is supported since SMW 1.7.1. Users of Virtuoso should use the following settings:

Configuration

$smwgDefaultStore = 'SMWSparqlStore';
$smwgSparqlDatabaseConnector = 'virtuoso';
$smwgSparqlQueryEndpoint = 'http://localhost:8890/sparql/';
$smwgSparqlUpdateEndpoint = 'http://localhost:8890/sparql/';
$smwgSparqlDataEndpoint = '';
$smwgSparqlDefaultGraph = 'http://example.org/mydefaultgraphname';

The exact URLs depend on the local configuration. The URI of the default graph can be chosen arbitrarily but must be set.

Known limitations

Virtuoso currently still needs minor changes in SMW due to the aforementioned restriction that no named graphs are used in SMW queries.

There are some known limitations with (at least some versions of) Virtuoso:

  • Numerical datatypes are not supported properly, and Virtuoso will miss query results when query conditions require number values. This also affects datatype Date properties since the use numerical values for querying.
  • Some edit (insert) queries fail for unknown reasons, probably related to unusual/complex input data (e.g., using special characters in strings); errors will occur when trying to store such values on a page.
  • Virtuoso stumbles over XSD dates with negative years, even if they have only four digits as per ISO. Trying to store such data will cause errors.
  • More information on combining SMW with Open Virtuoso can be found at [1].
  • Sorting with an unbound limit is by default not supported and will raise Virtuoso 22023 Error SR353: Sorted TOP clause specifies more then 10001 rows to sort. Only 10000 are allowed. (see also Virtuoso MaxSortedTopRows setting)
  • Virtuoso 6.1: Virtuoso will fail for '1 January 300 BC' with 'Virtuoso 22007 Error DT006: Cannot convert -0302-12-28Z to datetime : Incorrect month field length'"