Techniques for automated generation of queries for querying ontologies
First Claim
Patent Images
1. A method of generating a query for querying an ontology, the method comprising:
- receiving a first query in a first language, wherein the first language is a natural language;
checking the first query to determine if the first query complies with a predefined grammar and to determine if the first query comprises one or more terms from a vocabulary used in the ontology;
in response to determining that at least one aspect of the first query does not comply with the predetermined grammar and does not comprise one or more terms from the vocabulary used in the ontology, providing guiding formulation of the first query by providing one or more constraints, wherein the one or more constraints are based upon the predefined grammar and the vocabulary comprising terms used in the ontology, and the predefined grammar is based upon a set of one or more rules;
based on the one or more constraints, constraining the first query to comply with the predetermined grammar and the vocabulary used in the ontology; and
generating, based upon the constrained first query, a second query in a second language, wherein the second query complies with the predetermined grammar and the vocabulary used in the ontology, and wherein the second language is different from the first language and the ontology is capable of being queried using the second query in the second language.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques for simplifying querying of ontologies. In one embodiment, one or more queries for querying an ontology are automatically generated in a language suitable for querying the ontology. A user may enter a query in a simple language such as a natural language query. In response, one or more queries capable of querying the ontology are automatically generated in a second language. The automatically generated queries may, for example, be in SPARQL or PL/SQL. The one or more automatically generated queries may then be used to query one or more ontologies.
81 Citations
21 Claims
-
1. A method of generating a query for querying an ontology, the method comprising:
-
receiving a first query in a first language, wherein the first language is a natural language; checking the first query to determine if the first query complies with a predefined grammar and to determine if the first query comprises one or more terms from a vocabulary used in the ontology; in response to determining that at least one aspect of the first query does not comply with the predetermined grammar and does not comprise one or more terms from the vocabulary used in the ontology, providing guiding formulation of the first query by providing one or more constraints, wherein the one or more constraints are based upon the predefined grammar and the vocabulary comprising terms used in the ontology, and the predefined grammar is based upon a set of one or more rules; based on the one or more constraints, constraining the first query to comply with the predetermined grammar and the vocabulary used in the ontology; and generating, based upon the constrained first query, a second query in a second language, wherein the second query complies with the predetermined grammar and the vocabulary used in the ontology, and wherein the second language is different from the first language and the ontology is capable of being queried using the second query in the second language. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A non-transitory computer-readable storage medium storing a plurality of instructions for controlling a processor to generate a query for querying an ontology, the plurality of instructions comprising:
-
instructions that cause the processor to receive a first query in a first language, wherein the first language is a natural language; instructions that cause the processor to check the first query to determine if the first query complies with a predefined grammar and to determine if the first query comprises one or more terms from a vocabulary used in the ontology; in response to determining that at least one aspect of the first query does not comply with the predetermined grammar and does not comprise one or more terms from the vocabulary used in the ontology, instructions that cause the processor to provide guiding formulation of the first query by providing one or more constraints, wherein the one or more constraints are based upon the predefined grammar and the vocabulary comprising terms used in the ontology, and the predefined grammar is based upon a set of one or more rules; based on the one or more constraints, instructions that cause the processor to constrain the first query to comply with the predetermined grammar and the vocabulary used in the ontology; and instructions that cause the processor to generate, based upon the constrained first query, a second query in a second language, wherein the second query complies with the predetermined grammar and the vocabulary used in the ontology, and wherein the second language is different from the first language and the ontology is capable of being queried using the second query in the second language. - View Dependent Claims (13, 14, 15, 16, 17, 18)
-
-
19. A system for generating a query for querying an ontology, the system comprising:
-
a memory configured to store the ontology; a processor coupled to the memory, wherein the processor is configured to; receive a first query in a first language, wherein the first language is a natural language; check the first query to determine if the first query complies with a predefined grammar and to determine if the first query comprises one or more terms from a vocabulary used in the ontology; in response to determining that at least one aspect of the first query does not comply with the predetermined grammar and does not comprise one or more terms from the vocabulary used in the ontology, provide guiding formulation of the first query by providing one or more constraints, wherein the one or more constraints are based upon the predefined grammar and the vocabulary comprising terms used in the ontology, and the predefined grammar is based upon a set of one or more rules; based on the one or more constraints, constrain the first query to comply with the predetermined grammar and the vocabulary used in the ontology; and generate, based upon the constrained first query, a second query in a second language, wherein the second query complies with the predetermined grammar and the vocabulary used in the ontology, and wherein the second language is different from the first language and the ontology is capable of being queried using the second query in the second language. - View Dependent Claims (20, 21)
-
Specification