1 / 13

How Can a Process Knowledgebase Execute the Things That It Represents? Activating Protégé Frames by Additional Java Code

How Can a Process Knowledgebase Execute the Things That It Represents? Activating Protégé Frames by Additional Java Code . Reiner Borchert Institute for Geoinformatics University of Münster, Germany. 2 Including Java Packages.

dayton
Download Presentation

How Can a Process Knowledgebase Execute the Things That It Represents? Activating Protégé Frames by Additional Java Code

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How Can a Process Knowledgebase Execute the Things That It Represents?Activating Protégé Frames by Additional Java Code Reiner Borchert Institute for Geoinformatics University of Münster, Germany Sixth International Protégé WorkshopMonday 7th - Wednesday 9th July 2003 Manchester, England Reiner Borchert - Institute for Geoinformatics - University of Münster, Germany

  2. 2 Including Java Packages • Java Packages can be included in a Protégé project by using a special slot widget. The Java classes included are shown below. • The package name is stored as a simple string slot value. Sixth International Protégé WorkshopMonday 7th - Wednesday 9th July 2003 Manchester, England Reiner Borchert - Institute for Geoinformatics - University of Münster, Germany

  3. 3 The Java Class Slot • To choose a Java class we created a special slot widget: • The available classes are shown in a combo box. • Some Java classes can be optionally configured by parameters (separated by blanks). • Each class should give information about the required input and output slots. • Class name and parameters are stored in one single string slot value. Sixth International Protégé WorkshopMonday 7th - Wednesday 9th July 2003 Manchester, England Reiner Borchert - Institute for Geoinformatics - University of Münster, Germany

  4. 4 Input and Output Slots • The Java class uses two special slots to get information about where to find the required input data and where to store the output data as the result of its execution. • In both cases collections of any slots are used. They should correspond with the information that the class has given (see on the left below). Sixth International Protégé WorkshopMonday 7th - Wednesday 9th July 2003 Manchester, England Reiner Borchert - Institute for Geoinformatics - University of Münster, Germany

  5. 5 The Java Function Slot The function slot has_Parents uses the Java class GetRelatedFrames with 2 input slots. The result is stored as a collection of Instances of the ontology class Human. • has_Parents shows the actual parent values of the Instance Charlotte, derived from the input slots has_Mother and has_Father. Sixth International Protégé WorkshopMonday 7th - Wednesday 9th July 2003 Manchester, England Reiner Borchert - Institute for Geoinformatics - University of Münster, Germany

  6. 6 Restrictions and Constraints • The restricted slot is_Mother_of uses the Java class CheckRelations to check if a new slot value matches some rules: the new slot value must or must not appear in some other slot values. Sixth International Protégé WorkshopMonday 7th - Wednesday 9th July 2003 Manchester, England Reiner Borchert - Institute for Geoinformatics - University of Münster, Germany

  7. 7 Actions and Procedures Database Connection • The buttons Close Connection and Create Table Instances represent action slots. The underlying Java class is called on demand. It can store action results in output slots, in this case the slot DB_has_Tables. • The associated slot widget allows to establish a database connection via JDBC, and to create instances to represent the tables of the database. Sixth International Protégé WorkshopMonday 7th - Wednesday 9th July 2003 Manchester, England Reiner Borchert - Institute for Geoinformatics - University of Münster, Germany

  8. 8 Database Tables • Database tables are represented by instances of the class DB_TABLE. • Special database column slots can be created by pressing the Create Column Slots button. • The same thing happens if you press the other button, Create Table Map Class. Additionally a class of a special type will be created, which maps the content of the database table. Sixth International Protégé WorkshopMonday 7th - Wednesday 9th July 2003 Manchester, England Reiner Borchert - Institute for Geoinformatics - University of Münster, Germany

  9. 9 Database Import • A special class type maps the content of database tables. • If you choose a Key Slot and push start import, all records (or rows) of the table will be imported as instances of this class. The key slot is used to create unique instance names, so the column should contain unique entries. Sixth International Protégé WorkshopMonday 7th - Wednesday 9th July 2003 Manchester, England Reiner Borchert - Institute for Geoinformatics - University of Münster, Germany

  10. 10 Processes • The root class of the process ontology is event. Its subclasses action, decision, and procedure can be used for the modelling of complex processes. Simulations as running processes can be logged by an instance of sequence. Sixth International Protégé WorkshopMonday 7th - Wednesday 9th July 2003 Manchester, England Reiner Borchert - Institute for Geoinformatics - University of Münster, Germany

  11. 11 Sequences • Simulations as running processes can be logged by an instance of sequence. • After a main procedure has been chosen the simulation can be started by pushing the Start Process button. The slot contains_captures shows all events having occurred subsequently as a function result . Sixth International Protégé WorkshopMonday 7th - Wednesday 9th July 2003 Manchester, England Reiner Borchert - Institute for Geoinformatics - University of Münster, Germany

  12. 12 Process Elements • This diagram shows a simple procedure loop scheme: • There are 3 conditions to start, finish, and cancel the process, and an action called startAction, which can be linked to a subsequent action. • The process is cancelled, if the cancel condition is true, and it is finished (or completed), if the end condition is true or no subsequent action is available. Sixth International Protégé WorkshopMonday 7th - Wednesday 9th July 2003 Manchester, England Reiner Borchert - Institute for Geoinformatics - University of Münster, Germany

  13. Thank you. Sixth International Protégé WorkshopMonday 7th - Wednesday 9th July 2003 Manchester, England Reiner Borchert - Institute for Geoinformatics - University of Münster, Germany

More Related