Ontology data import/export method and apparatus
First Claim
1. An ontology data import apparatus, comprising:
- an ontology data format analyzer device configured to analyze a format in which input ontology data is encoded, and perform format determination by utilizing an ontology format database which stores decoding information for decoding formats of successfully imported ontologies, the decoding information including decoding information for decoding a private unknown format; and
a private unknown format data importer device configured to decode, separate and import the encoded ontology data into an ontology database, which stores ontologies, in accordance with a result of the format determination by the ontology data format analyzer device,wherein when analyzing the format in which the input ontology data is encoded, for a private unknown format, if the private unknown format contains format decoding information, then the ontology data format analyzer device directly extracts the format decoding information and adds the private unknown format into the ontology format database, and provides the contents and format decoding information of the ontology data directly to the private unknown format data importer device,wherein when analyzing the format in which the input ontology data is encoded, for a private unknown format, if the private unknown format does not contain format decoding information, then the ontology data format analyzer device gets decoding information for decoding all private unknown formats stored in the ontology format database,wherein if the private unknown format in which the input ontology data is encoded matches with any of the stored decoding information for decoding private unknown formats, then the ontology data format analyzer device decides to use this matched decoding information for decoding the private unknown format, and provides the contents and format decoding information of the ontology data to the private unknown format data importer device,wherein when analyzing the format in which the input ontology data is encoded, for a private unknown format, if the private unknown format does not contain format decoding information, then the ontology data format analyzer device extracts decoding information for decoding all private unknown formats stored in the ontology format database, andwherein if the input private unknown format does not match with any of the stored decoding information for decoding private unknown formats, then the ontology data format analyzer device extracts n most-frequently used separators from a separator database in the ontology format database, and for each of the n separators, repeatedly performs the following operations;
in the input contents, a search for this separator is performed;
if a position of this separator is correspondingly found, then forward and backward separator detections are continuously performed from this position;
an area consisting of continuous separators is determined as a separation area;
if two separation areas are found, then a corresponding separation format is determined and generated as a detected private unknown format; and
the ontology data format analyzer device provides the contents and format decoding information of the ontology data to the private unknown format data importer device.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention provides a flexible ontology data import/export method and apparatus. The ontology data import apparatus comprises: an ontology data format analyzer for analyzing a format of input ontology data, and performing format determination by utilizing an ontology format database which stores formats of those successfully imported ontologies if it is a private unknown format; and an unknown format data importer for separating and importing the data into an ontology database which stores ontologies, in accordance with a result of the format determination by the ontology data format analyzer. Further, the ontology data export apparatus comprises a keyword-based and query-language-combined ontology exporter and an ontology data export format analyzer, and the keyword-based and query-language-combined ontology exporter outputs a query result returned from the ontology database in accordance with the export format returned from the ontology data export format analyzer.
-
Citations
31 Claims
-
1. An ontology data import apparatus, comprising:
-
an ontology data format analyzer device configured to analyze a format in which input ontology data is encoded, and perform format determination by utilizing an ontology format database which stores decoding information for decoding formats of successfully imported ontologies, the decoding information including decoding information for decoding a private unknown format; and a private unknown format data importer device configured to decode, separate and import the encoded ontology data into an ontology database, which stores ontologies, in accordance with a result of the format determination by the ontology data format analyzer device, wherein when analyzing the format in which the input ontology data is encoded, for a private unknown format, if the private unknown format contains format decoding information, then the ontology data format analyzer device directly extracts the format decoding information and adds the private unknown format into the ontology format database, and provides the contents and format decoding information of the ontology data directly to the private unknown format data importer device, wherein when analyzing the format in which the input ontology data is encoded, for a private unknown format, if the private unknown format does not contain format decoding information, then the ontology data format analyzer device gets decoding information for decoding all private unknown formats stored in the ontology format database, wherein if the private unknown format in which the input ontology data is encoded matches with any of the stored decoding information for decoding private unknown formats, then the ontology data format analyzer device decides to use this matched decoding information for decoding the private unknown format, and provides the contents and format decoding information of the ontology data to the private unknown format data importer device, wherein when analyzing the format in which the input ontology data is encoded, for a private unknown format, if the private unknown format does not contain format decoding information, then the ontology data format analyzer device extracts decoding information for decoding all private unknown formats stored in the ontology format database, and wherein if the input private unknown format does not match with any of the stored decoding information for decoding private unknown formats, then the ontology data format analyzer device extracts n most-frequently used separators from a separator database in the ontology format database, and for each of the n separators, repeatedly performs the following operations; in the input contents, a search for this separator is performed; if a position of this separator is correspondingly found, then forward and backward separator detections are continuously performed from this position; an area consisting of continuous separators is determined as a separation area; if two separation areas are found, then a corresponding separation format is determined and generated as a detected private unknown format; and the ontology data format analyzer device provides the contents and format decoding information of the ontology data to the private unknown format data importer device. - View Dependent Claims (2, 3, 4, 5, 6, 7, 31)
-
-
8. An ontology data import method, comprising:
-
analyzing, by at least one processor, a format in which input ontology data is encoded, and performing format determination by utilizing an ontology format database which stores decoding information for decoding formats of successfully imported ontologies, the decoding information including decoding information for decoding a private unknown format; and decoding, separating and importing, by the at least one processor, the encoded ontology data into an ontology database, which stores ontologies, in accordance with a result of the format determination, wherein when analyzing the format in which the input ontology data is encoded, for a private unknown format, if the private unknown format contains format decoding information, then the format decoding information is directly extracted and the private unknown format is added into the ontology format database, wherein when analyzing the format in which the input ontology data is encoded, for a private unknown format, if the private unknown format does not contain format decoding information, then the decoding information for decoding all private unknown formats stored in the ontology format database is fetched, wherein if the private unknown format in which the input ontology data is encoded matches with any of the stored decoding information for decoding private unknown formats, then it is decided to use this matched decoding information for decoding the private unknown format, wherein when analyzing the format in which the input ontology data is encoded, for a private unknown format, if the private unknown format does not contain format decoding information, then decoding information for decoding all private unknown formats stored in the ontology format database is fetched, and wherein if the input private unknown format does not match with any of the stored decoding information for decoding private unknown formats, then n most-frequently used separators are extracted from a separator database in the ontology format database, and for each of the n separators, the following operations are repeatedly performed; in the inputted contents, a search for this separator is performed; if a position of this separator is correspondingly found, then forward and backward separator detections are continuously performed from this position; an area consisting of continuous separators is determined as a separation area; and if two separation areas are found, then a corresponding separation format is determined and generated as a detected private unknown format. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. An ontology data export apparatus, comprising:
-
an ontology data export format analyzer device; a combined keyword-based and query-language ontology exporter device configured to; receive a keyword and/or an export format for encoding ontology data that is to be exported; after processing the received keyword and/or export format into a query language, query ontology data stored in an ontology database which stores ontologies; and request an export format for encoding ontology data that is to be exported from the ontology data export format analyzer device; wherein the ontology data export format analyzer device is configured to directly return the requested export format, or obtain the requested export format, by a query utilizing an ontology format database which stores decoding information for decoding formats of successfully imported ontologies, in accordance with the request from the combined keyword-based and query-language ontology exporter device; wherein the combined keyword-based and query-language ontology exporter device is further configured to output a query result returned from the ontology database in accordance with the export format returned from the ontology data export format analyzer device, wherein the ontology data export format analyzer device is configured to judge whether or not the export command contains an export format for encoding ontology data that is to be exported, and if an export format for encoding ontology data that is to be exported is contained, then directly returns the requested export format, wherein if it is judged that the export command does not contain an export format for encoding ontology data that is to be exported, then the ontology data export format analyzer device returns the most-recently and most-frequently used import format in the ontology format database, and wherein the ontology data export format analyzer device is configured to determine the most-recently and most-frequently used import format as follows; selecting all formats which have been used for successfully importing the private unknown format ontologies within a predetermined time period n from the ontology format database, denoted as a set of formats rs; for each format r in the set of formats rs, calculating a usage rate rate thereof; and selecting a format corresponding to the maximum usage rate ratemax, as the export format for encoding ontology data that is to be exported, and returning it to the combined keyword-based and query-language ontology exporter device. - View Dependent Claims (16, 17, 18, 19, 20, 21, 22)
-
-
23. An ontology data export method, comprising:
-
receiving, by at least one processor, a keyword and/or an export format for encoding ontology data that is to be exported; after processing, by the at least one processor, the received keyword and/or export format into a query language, querying, by the at least one processor, ontology data stored in an ontology database which stores ontologies, and requesting an export format for encoding ontology data that is to be exported; directly returning, by the at least one processor, the requested export format or obtaining, by the at least one processor, the requested export format by a query utilizing an ontology format database which stores decoding information for decoding formats of successfully imported ontologies, in accordance with the request for the export format; and outputting, by the at least one processor, a query result returned from the ontology database in accordance with the returned export format, wherein it is judged whether or not the export command contains an export format for encoding ontology data that is to be exported, and if an export format for encoding ontology data that is to be exported is contained, then the requested export format is directly returned, wherein if it is judged that the export command does not contain an export format for encoding ontology data that is to be exported, then the most-recently and most-frequently used import format in the ontology format database is returned, and wherein the determining the most-recently and most-frequently used import format comprises the following; selecting all formats which have been used for successfully importing the private unknown format ontologies within a predetermined time period n from the ontology format database, denoted as a set of formats rs; for each format r in the set of formats rs, calculating a usage rate rate thereof; and selecting a format corresponding to the maximum usage rate ratemax, as the export format for encoding ontology data that is to be exported. - View Dependent Claims (24, 25, 26, 27, 28, 29, 30)
-
Specification