Before you start
This tutorial is the second in a three-part "Resource description framework application development in DB2 10 for Linux, UNIX, and Windows" series of tutorials that gives you hands-on experience in using DB2 for Linux, UNIX, and Windows software with Resource Description Framework (RDF) technology:
- Part 1 of the series introduces a sample use case for an RDF application. The tutorial walks you through the steps of building a sample application, creating an RDF store, querying data by using SPARQL queries, and maintaining the statistics. Part 1 also provides a process to migrate your RDF stores to DB2 software.
- Part 2 covers advanced topics:
- Providing an overview of the characteristics of RDF data and how DB2 software optimizes the storage of RDF data.
- Describing the process for creating optimized stores.
- Comparing the optimized store against the default store you created for the same application in Part 1, so you can see the benefits of an optimized store.
- Describing how to provide more fine-grained access control for the RDF stores. The tutorial walks you through enforcing access control by using the DB2 engine and by using the application.
Here in Part 2, we build upon the sample application use case in Part 1. If you have not done so already, review the Part 1 for context.
Part 3 will cover more SPARQL-specific features, such as
CONSTRUCT query forms and unions of named
To review from Part 1, DB2 software supports the creation of two types of RDF stores:
- Default RDF stores — Create a default RDF store
when you do not have information about the RDF data you are
loading or when no appropriate sample is available. To create this
type of store, use the
- Optimized RDF stores — Create an optimized store when there is representative sample data for the RDF data set. Optimized stores provide an optimal schema based on the input RDF data set you provide.
A major focus of this tutorial is the creation of optimized stores.