next up previous
Next: Using the Configuration Utility Up: Setting up the Plugin Previous: Setting up the Plugin Home: The RDF(s)-DB Protégé Plugin Home


Removing Instances using Sesame

  1. Let's assume we want to remove a Employee named Kim who is a Columnist in Protégé newspaper example.


  2. To retrieve the Employee name using sesame we must know the Resources, Properties, and Values. In the image above it shows the resource value as Kim (type=Columnist, name=newspaper_00021).
  3. Now open a browser to http://localhost:8080/sesame/ .Log in as testuser with password opensesame.
  4. Select the path you gave for the instances and click Go > > >.


  5. You must see the below screen with 2 frames with out any errors.Now select RDQL which is a query language for RDF to find the subject, predicate and object.


  6. To get all the resources, type the query select ?x where (?x ?y ?z) and in the results you can see the resource value newspaper_00021.A link to RDQL tutorial is available in the same sesame page.


  7. When you click the link it will show you all the values of subject, predicate and object.Using this you can find the name of the employee using RDQL query.


  8. To find the employee name using RDQL, execute the query similar to which you see in the image using appropriate subject, predicate and object. In the results you will find the employee name which matches the query.


  9. To remove the employee name Kim click Remove which is present in Modify actions and enter the appropriate subject, predicate, object values and click Remove statements.


  10. When you click Remove statements the instances is removed successfully and the message is displayed.


  11. When you try to execute the same query to find the employee name using RDQL the instances will not be shown.


  12. Once the instances is removed using sesame we need to check whether it is reflected in protege.Now Exit Protégé without saving the project by clicking No.



  13. Start Protégé, choose the RDF Database and click Open.


  14. When you check the instances in Protégé the values will be removed. In this case its the name of the employee Kim.


  15. You can also try this by creating you own class, slots and instances.Create a new project and experiment. If you have any questions, contact Akhil or Muthu or Manohar.