Help:Using SPARQL and RDF stores - semantic-mediawiki.org - 0 views
-
In SMW 1.6.0, stores are required to accept updates and queries that do not specify a graph but it is planned to remove this limitation in the future.
-
The first line tells SMW to use the SPARQL store implementation to store data (instead of the SMWSQLStore2 that is the default). The remaining lines provide the relevant service locations, where the last line can be omitted if not applicable. By default, SMW will use a generic SPARQL connector that is based on recent SPARQL documents. Some RDF databases might not be fully compatible with this or might need special tweaks to make use of advanced, non-standard features. For this purpose, it is possible to change the SPARQL connector that SMW uses by setting the variable $smwgSparqlDatabase. In SMW 1.6.0, there is only one special connector:
-
$smwgSparqlDatabase = 'SMWSparqlDatabase4Store';
- ...2 more annotations...
-
By default, SMW stores all data in the MySQL database that is used by MediaWiki. This ensures a simple setup but it is not an ideal solution for the data format and data access methods that SMW needs. A more natural data model for SMW data is RDF, a data format that organizes information in graphs rather than in fixed database tables. It is possible to use such systems in addition to the SQL database for managing SMW data and for answering queries. This page explains the details