User Tools

Site Tools


querying_a_gellish_english_database

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
querying_a_gellish_english_database [2018/11/17 20:28]
andries
querying_a_gellish_english_database [2020/03/03 13:59]
andries Simple query description improved
Line 15: Line 15:
   * a specification of additional constraints that specify values for characteristics for the object(s) that are the result of the basic question.   * a specification of additional constraints that specify values for characteristics for the object(s) that are the result of the basic question.
 For example, the basic question could be: ‘which objects are classified as a pump?’ \\ For example, the basic question could be: ‘which objects are classified as a pump?’ \\
-In Gellish such a question should be expressed as if it was a positive statement about an individual object, while specifying as intention '​query'​ (instead of '​assertion'​) ​unknown object(s) an specifying as name of the unknown a term that is unknown in the dictionary. For examplethe name 'what'. The above query is expressed in Gellish English (ignoring the contextual facts) as is illustrated in Table 1: \\+In Gellish such a question should be expressed as if it was a positive statement about an individual object, while specifying as intention '​query'​ (instead of '​assertion'​) ​and specifying as name of the unknown ​one of the reserved names for unknowns such as '​who'​ or '​what'​ or a term that starts with a question marksuch as '?-1'. The above query is expressed in Gellish English (ignoring the contextual facts) as is illustrated in Table 1, together with another example: \\
 ^Intention^Name of left hand object^Name of relation type^Name of right hand object^ ^Intention^Name of left hand object^Name of relation type^Name of right hand object^
-|query| ​ what |  is classified as a |  pump| +|query| ​ what |  is classified as a |  pump 
-//Table 1, A simple ​Gellish English ​query// \\ +|query| ​ who|  is manager of |  Ford 
-The example question asks for the object(s) that have a relation of type “is classified as a” with the concept “pump”. Instead of the term '​what'​ there are several other names of unknowns in ordinary language available, but any unknown ​name is allowed. Recommended names are: what-1, what-2, etc. to indicate an unknown object that is wanted to be identified and about which information is provided in one or more expressions. Gellish English has defined the following reserved terms:+//Table 1, Simple queries in Gellish English// \\ 
 +The first example question asks for the object(s) that have a relation of type “is classified as a” with the concept “pump”. Because of the taxomic nature of Gellish this query should also trigger software to search for subtypes of '​pump'​. Thus, for example, it should also find things that are classified as a '​centrifugal pump' (which is defined as a subtype of '​pump'​. Instead of the term '​what'​ there are several other names of unknowns in ordinary language available, but any name that starts with a question mark is allowed. Recommended names are: what-1, what-2, etc. to indicate an unknown object that is wanted to be identified and about which information is provided in one or more expressions. Gellish English has defined the following reserved terms:
   * what   * what
   * who   * who
-  * which object +  * which ...
-  * which aspect +
-  * which person+
   * where   * where
   * when   * when
 +Note that the three dots may denote a kind that can be interpreted by software are a requirements for the kind that classifies the searched thing(s).
  
-The use of the intention '​query'​ or '​question'​ indicates that an expression should be interpreted by a computer as a question, whereas the unknown terms are free text. Note that when an unknown indicates an aspect, then not just the possible name of an aspect should be retrieved, but also its value and if applicable the unit of measure ​for the value. \\ +The use of the intention '​query'​ or '​question'​ indicates that an expression should be interpreted by a computer as a question. Note that Gellish incudes the following rule: when an unknown indicates an aspect, then the software should ​not only retrieve ​the possible ​aspect(s) ​name(s), but also their values ​and if applicable the units of measures ​for the values. \\  
-Full Gellish expressions use unique identifiers (UID'​s) to identify objects. Objects that are unknowns are identified in Gellish by UIDs in the reserved range 1-99. Thus, the use of a UID in that range means that the object is unknown and is requested. The name of the unknown is then free, although for human readability the use of one or more of the above reserved terms is still recommended.+Full Gellish expressions use unique identifiers (UID'​s) to identify objects. Objects that are unknowns are identified in Gellish by UIDs in the reserved range 1-99, possibly preceded by a prefix and a colon, such as '​unkn:'​. Thus, the use of a UID in that range means that the object is unknown and is requested.
 ==== 2.1 Querying results and inheritance ==== ==== 2.1 Querying results and inheritance ====
 A query expressions are in fact a template for the resulting expressions,​ where knowns are filled-in on places of unknowns. So a search engine should find all the expressions that fit in the template. Thus, the result of a query will be a list of expressions that satisfy the query template. \\ A query expressions are in fact a template for the resulting expressions,​ where knowns are filled-in on places of unknowns. So a search engine should find all the expressions that fit in the template. Thus, the result of a query will be a list of expressions that satisfy the query template. \\
querying_a_gellish_english_database.txt · Last modified: 2020/03/11 14:06 by andries