The Model Manager has a number of significant improvements in version 1.2 of the Semantics.SDK. The Model Manager is a Windows desktop application that exposes many of the features of the Semantics.SDK and Semantics.Server.
Projects and Models
The Model Manager operates on a single project at a time that consists of one or more models. A model is fundamentally a set of RDF graphs that can be queried. The Model Manager supports different types of models each with additional capabilities beyond supporting graphs and queries. The Model Manager allows you to create, edit and remove models from your project.
A model can be created from either the main application file menu or from a context menu on the models collection item in the tree control. A model can be saved to file as part of a project or in its own file where it can be opened in another project.
Local Model
A Local Model is a model that runs in the same process as the Model Manager. It supports federated queries across local in-memory RDF graphs, as well as, external sources of data such a relational store (SQL Data Source) or a Semantics.Server graph (Server Graph). In addition of data sources to a Local Model also supports:
- Custom Functions
- Rulebases
- Graph Aliases
- Namespaces
Server Model
A Server Model is a model that runs in a separate process from that of the Model Manager. Server Models support one or more RDF graphs and can be queried. Server Model graphs can also be added as data sources to a Local Model to perform federated queries with graphs not part of that Server Model. A Local Model can also be created from a Server Model to include all the graphs from that Server Model in the Local Model. The advantage being now you can make use of all the features supported by the Local Model (ex: custom functions or namespaces). Each type of Server Model supports a different set of features that may or may not be the same of those available in a Local Model.
Semantics.Server Model
A Semantics.Server Model is added to a project by selecting it from the new model menu. This will open the dialog shown below that allows you to define the SQL Server connection settings for the database.
If the database does not exist or Semantics.Server has not been installed on that database then you must first run the Semantics.Server installer by clicking on the “Setup” button.
SQL Data Source
The SQL Data Source exposes existing relational databases as RDF and allows them to be queried using SPARQL. You can add a SQL Data Source to your Local Model by selecting it on the add menu available as a context menu on the data source collection for the model. The following configuration dialog will open that allows you to defined the URI for the data source, the SQL connection string for the relational DB, the base URI for the relation data, and the query mode (data, ontology or both).
Queries
The Model Manager now supports a multiple query files open at the same time! To execute a query you must select the model you wish to query using the main menu and either open an existing query file or type in a query and press “F5”. The query results are shown in the grid below. The query results can be saved to a file using SPARQL Results XML format by using the context menu available from the grid.
0 comments:
Post a Comment