360 likes | 453 Views
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.).
E N D
Introduction to OntylogDTSAPI 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.)
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.
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.
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.
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.
Examples on How to Use OntylogDTS API • Retrieve Thesaurus Data • Develop Web-based Thesaurus Browser
Jar Files • ApelonCommon.jar • Jaxp.jar • Log4j.jar • OntylogDTS.jar • Parser.jar • Classes111.zip
Setup Log Configuration • Main() function
Sample API Calls • getAllRoleTypes()
Sample API Calls • getAllPropertyTypes()
Sample API Calls • getRootConcepts()
Sample API Calls Get subconcepts Get code, name, id Get supconcepts Get roles
Sample API Calls Get role values Get properties Get property values
Compile • javac -classpath %classpath%;..\lib\jaxp.jar;..\lib\ApelonCommon.jar;..\lib\log4j.jar;..\lib\OntylogDTS.jar GetXML.java
Run • java -classpath %classpath%;..\lib\jaxp.jar;..\lib\ApelonCommon.jar;..\lib\log4j.jar;..\lib\OntylogDTS.jar GetXML
OntylogDTS Browser Home Page http://cii-server9.nci.nih.gov/ontylog/.
Browser Functionality • Search concepts by • Name • CUI • Semantic type • Browse hierarchies (trees) • Display concept data • Supconcepts • Subconcepts • Defining roles • Properties
Servlet Initialization Setup connection
Servlet Implementation Match concept by name Get property type Match concept by property type
Servlet Implementation Generate response HTML page
Contact Kim L. Ong TRW Inc. 12011 Sunset Hills Road Reston, VA 20190-3262 Phone: (703) 345-8134 E-mail: kim.ong@trw.com