Semantic API Recommendation via Ontology and Text Preprocessing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing approaches to recommend services using natural language queries are limited by reliance on manual annotation and are not readily applicable to new domains, as they primarily focus on keyword matching and entity relationships, ignoring semantic similarity between queries and services.

Innovation Solution

A framework that generates domain and client-specific application program interface (API) recommendations by preprocessing service descriptions to remove frequent and infrequent words, constructing communities based on semantic similarity, and using ontology components to analyze performance and generate recommendations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If manual annotation and keyword matching are used for service recommendation, then implementation is straightforward, but the system is not readily applicable to new domains and ignores semantic similarity

Engineering Contradiction:
Improveapplicability to new domainsVSAvoidsystem complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The system performs preliminary action by pre-processing service descriptions to extract semantic features and build ontologies before actual query processing. This allows the system to be immediately applicable to new domains without requiring manual annotation for each new domain, as the semantic extraction framework is already in place

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces an intermediary layer (semantic feature extraction and ontology components) between the raw service descriptions and the recommendation engine. This intermediary transforms unstructured text into structured semantic representations that can be efficiently queried, enabling domain adaptability without increasing overall system complexity

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If semantic similarity analysis is implemented, then meaningful recommendations across multiple domains are achieved, but preprocessing complexity increases

Engineering Contradiction:
Improvesemantic similarity accuracyVSAvoidpreprocessing complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The preprocessing pipeline is segmented into distinct modular components: text cleaning, tokenization, semantic feature extraction, and ontology generation. Each component handles a specific aspect of the processing, making the overall complex task manageable and maintainable while achieving high measurement precision through cumulative refinement

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system changes parameters by transforming raw text into multiple derived representations (tokens, n-grams, semantic features, ontology nodes). This parameter transformation enables precise semantic similarity measurement while the modular architecture keeps preprocessing complexity controlled

Inventive Principle:
Principle #35Parameter changes

3Loss of information

If frequent and infrequent words are removed from service descriptions, then semantic relationships are better captured, but information loss may occur

Engineering Contradiction:
Improvesemantic information retentionVSAvoidtext data reduction
Core Design Contradiction:
Loss of informationVSLoss of substance

Solution Approach 1:

The system selectively extracts only the essential semantic-carrying elements from service descriptions while removing stop words and noise. This extraction process removes redundant text data (articles, prepositions, common verbs) that do not contribute to semantic meaning, thereby reducing information loss while capturing core semantic relationships

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS10803108B2Facilitation of domain and client-specific application program interface recommendations
Publication Date: 2020.10.13 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US10803108B2 patent drawing
  • US10803108B2 patent drawing
  • US10803108B2 patent drawing

AI summary

Techniques for generating domain and client-specific application program interface recommendations are provided. In one example, a computer-implemented method comprises modifying, by a device operatively coupled to a processor, a description of a client application program interface by removing text data associated with the description of the client application program interface, resulting in a modified description of the client application program interface. The computer-implemented method can further comprise analyzing, by the device, a performance associated with the client application program interface to generate an ontology based on a semantic similarity between the modified description of the client application program interface and one or more previous descriptions of one or more previous client application program interfaces.