Semantic Workbench – A Humble Beginning
Wednesday, August 18th, 2010As a way to work with semantic web concepts, including asserting triples, seeing the resulting inferences and also leveraging SPARQL, I have needed a GUI. In this post I’ll describe a very basic tool that I have created and released that allows a user to interact with a semantic model.
My objectives for this first GUI were basic:
- Support input of a set of triples in any format that Jena supports (e.g. REF/XML, N3, N-Triples and Turtle)
- See the inferences that result for a set of assertions
- Create a tree view of the ontology
- Make it easy to use SPARQL queries with the model
- Allow the resulting model to be written to a file, again using any format supported by Jena
Here are some screen shots of the application. Explanations of the tabs are then provided.
- Initial View: Appearance at startup. The reasoner cannot be run until there is text in the assertions text area.
- Assertions Tab Populated: The assertions tab is shown populated. The Run Reasoner button is then used to run the reasoner and create an in-memory model that can be saved to disk or explored using SPARQL.
- Inferences Tab: Once the reasoner has been run successfully (e.g. legal set of assertons entered on the Assertions tab and the Run Reasoner button used), any inferences will be displayed on this tab.
- Tree View Tab: Once the reasoner has been run successfully (e.g. legal set of assertons entered on the Assertions tab and the Run Reasoner button used), the model (asserted and inferred) will be shown as a tree structure based on class.
- SPARQL Tab: Execute SPARQL queries against the model
The program provides each feature in a very basic way. On the Assertions tab a text area is used for entering assertions. The user may also load a text file containing assertions using the File|Open menu item. Once the assertions are entered, a button is enabled that allows the reasoner to process the assertions. The reasoner level is controlled by the user from a drop down.




