1 / 36

Introduction to OntylogDTS API

Introduction to OntylogDTS API. Prepared for the National Cancer Institute (NCI) Kim Ong 12/07/2001. Ontylog. Apelon’s Ontylog is a language of description logics class for building and maintaining large knowledge bases. Source: The Ontylog Language: An Overview (by Apelon Inc.).

leland
Download Presentation

Introduction to OntylogDTS API

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. Introduction to OntylogDTSAPI Prepared for the National Cancer Institute (NCI) Kim Ong 12/07/2001

  2. Ontylog • Apelon’s Ontylog is a language of description logics class for building and maintaining large knowledge bases. Source: The Ontylog Language: An Overview (by Apelon Inc.)

  3. Concept, Taxonomy, and Knowledge Base • A concept has a name, is of a unique kind, belongs to a namespace, and exists within a directed acyclic graph of taxonomy. • A taxonomy is a collection of concepts related to each other through subsumption. (Concept A subsumes ConceptB if and only if A is more general than B) • A knowledge base is a collection of taxonomies.

  4. Primitive and Defined Concepts • Concepts are either primitive or defined. • The difference between primitive and defined concepts is a matter of completeness of the definition. • Primitive concepts do not have sufficient definitions, they are the foundations for knowledge representation schema. • Non-primitive concepts represent concepts that are fully defined within the knowledge representation system.

  5. Kinds, Properties, Namespaces • Kinds are pair-wise disjoint (set of concepts). • Properties are additional information attached to concepts. They have no relevance to the semantics of Ontylog. • A namespace is a collection of Kind, Role, Property, and Concept Definitions.

  6. Roles • A role is a binary relation between kinds. • Roles have names, domains, and ranges. • Two logical modifiers, all and some, can be attached to roles within a concept term.

  7. Ontylog_JavaDoc

  8. Concept Class

  9. Methods of Concept Class

  10. Examples on How to Use OntylogDTS API • Retrieve Thesaurus Data • Develop Web-based Thesaurus Browser

  11. Retrieve Thesaurus Data

  12. Jar Files • ApelonCommon.jar • Jaxp.jar • Log4j.jar • OntylogDTS.jar • Parser.jar • Classes111.zip

  13. Log4j Configuration File (logconf.lcf)

  14. Import Statements

  15. Initialzie Member Variables

  16. Setup Log Configuration • Main() function

  17. Connect to OntylogDTS Server

  18. Create Server Instances

  19. Create Output File

  20. Sample API Calls • getAllRoleTypes()

  21. Sample API Calls • getAllPropertyTypes()

  22. Sample API Calls • getRootConcepts()

  23. Sample API Calls Get subconcepts Get code, name, id Get supconcepts Get roles

  24. Sample API Calls Get role values Get properties Get property values

  25. Compile • javac -classpath %classpath%;..\lib\jaxp.jar;..\lib\ApelonCommon.jar;..\lib\log4j.jar;..\lib\OntylogDTS.jar GetXML.java

  26. Run • java -classpath %classpath%;..\lib\jaxp.jar;..\lib\ApelonCommon.jar;..\lib\log4j.jar;..\lib\OntylogDTS.jar GetXML

  27. OntylogDTS Web Site

  28. OntylogDTS Browser Home Page http://cii-server9.nci.nih.gov/ontylog/.

  29. Browser Functionality • Search concepts by • Name • CUI • Semantic type • Browse hierarchies (trees) • Display concept data • Supconcepts • Subconcepts • Defining roles • Properties

  30. Search By Semantic Type

  31. Navigate a Hierarchy

  32. Tomcat Servlet Configuration File (web.xml)

  33. Servlet Initialization Setup connection

  34. Servlet Implementation Match concept by name Get property type Match concept by property type

  35. Servlet Implementation Generate response HTML page

  36. Contact Kim L. Ong TRW Inc. 12011 Sunset Hills Road Reston, VA 20190-3262 Phone: (703) 345-8134 E-mail: kim.ong@trw.com

More Related