![]() Working with References to External/Untyped Resourcesįor more details on this topic, see Protege-OWL API Advanced Class Definitions (OWL DL).Using Object Properties to Build Relationships between Resources.Using Datatype Properties and Datatype Values.The output should be "Class URI: ".įor more details on this topic, see Protege-OWL API Basics ![]() ("Class URI: " + worldClass.getURI()) Įxecute this program stand-alone. OWLNamedClass worldClass = owlModel.createOWLNamedClass("World") OwlModel.getNamespaceManager().setDefaultNamespace("") OWLModel owlModel = ProtegeOWL.createJenaOWLModel() Then create a Java class such as the following: Set your compiler output path to plugins/classes. Next, add all the JAR files from the installation to your project classpath. If you are using a Java IDE such as Eclipse or IntelliJ, select the Protege installation folder as your project home. Now let us configure our Java project and write a small "Hello World" application. In particular, you will need to understand the interfaces from the .owl.model package.įollowing a successful installation, your directory structure should look approximately as follows:ĭirectory structure of the Protege application after a successful install You will also find Javadoc for the API useful. The URL to download the Protege-OWL source code using a Subversion client is: Detailed instructions on how to download source code from our repository are available on the main Protege website. The source code is the most reliable reference for the system's functionality and browsing the source code with a Java IDE is a great way to learn the API. In addition to installing Protege, you should download the source code from the Protege Subversion repository. The Protege-OWL editor is provided with the standard installation of Protege. If you have trouble getting started, please post questions on the protege-owl mailing list. ![]() The complete source code for most of the examples can be found in the .owlx.examples package in the Protege-OWL source code. The guide tries to illustrate the API by examples, and most examples create parts of OWL ontologies such as properties and restrictions. This guide will introduce you to some basic concepts of the Protege-OWL API, no matter whether you intend to use it for stand-alone applications or Protege plug-ins. Developers can initially wrap their components into a Protege tab widget and later extract them to distribute them as part of a stand-alone application. The Protege-OWL editor provides many editing and browsing facilities for OWL models, and therefore can serve as an attractive starting point for rapid application development. Protege has an open architecture that allows programmers to integrate plug-ins, which can appear as separate tabs, specific user interface components (widgets), or perform any other task on the current model. Protege is a flexible, configurable platform for the development of arbitrary model-driven applications and components.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |