The v1.2 release of the Semantics.SDK includes a sample model that can be loaded into the Model Manager. The model contains a simple ontology for describing a baseball team lineup and a sample lineup that uses the ontology. To try out the sample, start the Model Manager application, click the menu item “Help -> Open Sample Project…” and select the “baseball.project” file.
The model has two graphs that contain the ontology (http://www.intellidimension.com/schema/baseball/20090721#Ontology) and instance data (http://www.intellidimension.com/schema/baseball/20090721#Data). The RDF data for these graphs are available in the files “baseball-ontology.ttl” and “team-data.ttl” respectively.
The sample includes a couple of SPARQL query files that can be used with this model. To open a SPARQL query click on the “File->Open->Query” menu and open one of the queries in the directory “<install dir>\samples\models\baseball”.
The query file “lineup-card.sparql” contains a SPARQL SELECT query that creates a result set in a format similar to lineup card. The other query file “validate-lineup.sparql” runs a set of inference rules over the lineup data to ensure that it’s valid. This query adds the same batter twice to the lineup to create a violation and report on it.
0 comments:
Post a Comment