Changes between Version 10 and Version 11 of query_builder_doc
- Timestamp:
- Feb 15, 2016, 10:40:42 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
query_builder_doc
v10 v11 88 88 In the first select box we select "**Relation type is**". 89 89 90 In the second select box we get a list of all relations of the Tusi object in the database like " is_alias_name_of" or "was_born_in".90 In the second select box we get a list of all relations of the Tusi object in the database like "roles of person" or "works of". 91 91 92 You will note that all relation types show up in the list a second time prefixed with "<-". These are the reverse relations. These are needed because the relations are directed and you have to select the direction of the relation. 93 94 The "normal" relation is read from the last selected object, in this case a PERSON to the next possible objects. To find the birthplace of the PERSON you would select "**was_born_in**" and you would get the relation `PERSON-[was_born_in]->PLACE` going from a PERSON to a PLACE. 95 96 To get the texts written by Tusi we need the relation `TEXT-[was_created_by]->PERSON` which goes from a TEXT to a PERSON. But in our case we want to start at the PERSON not the TEXT so we have to select the reverse relation "**<- was_created_by**". 97 98 When we select "**<- was_created_by**" in the second select box the system runs the query to find all texts that were created by Tusi: 92 When we select "**works of**" in the second select box the system runs the query to find all texts that were created by Tusi: 99 93 100 94 [[Image(qb-person-tusi-id-created.png, 500px)]] … … 106 100 Now we click "**add step**" again to add another step to select the witnesses of the texts. 107 101 108 We want to use the relation `WITNESS-[is_exemplar_of]->TEXT` but we have to use the reverse relation because we are starting from the TEXT. 109 110 In the first select box we select "**Relation type is**" again and in the second select box we select "**<- is_exemplar_of**". 102 In the first select box we select "**Relation type is**" again and in the second select box we select "**witnesses to title**". 111 103 112 104 This runs the query to find all witnesses that are exemplars of the previously selected texts: … … 117 109 118 110 Since there are more than 1000 results the result table is hidden at first. If you want to browse all the results click on the "**show results**" button. 111 112 = Relations with "funny" names = 113 114 You will note that some relation types show up in the list prefixed with "<-". These are the reverse relations. These are needed because the relations are directed and you have to select the direction of the relation. 115 116 The "normal" relation is read from the last selected object, in this case a PERSON to the next possible objects. To find the birthplace of the PERSON you would select "**was_born_in**" and you would get the relation `PERSON-[was_born_in]->PLACE` going from a PERSON to a PLACE. 117 118 To get the texts written by Tusi we needed the relation `TEXT-[was_created_by]->PERSON` which goes from a TEXT to a PERSON. But in our case we want to start at the PERSON not the TEXT so we have to select the reverse relation "**<- was_created_by**".