Changes between Version 10 and Version 11 of query_builder_doc


Ignore:
Timestamp:
Feb 15, 2016, 10:40:42 AM (8 years ago)
Author:
casties
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • query_builder_doc

    v10 v11  
    8888In the first select box we select "**Relation type is**".
    8989
    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".
     90In 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".
    9191
    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:
     92When we select "**works of**" in the second select box the system runs the query to find all texts that were created by Tusi:
    9993
    10094[[Image(qb-person-tusi-id-created.png, 500px)]]
     
    106100Now we click "**add step**" again to add another step to select the witnesses of the texts.
    107101
    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**".
     102In the first select box we select "**Relation type is**" again and in the second select box we select "**witnesses to title**".
    111103
    112104This runs the query to find all witnesses that are exemplars of the previously selected texts:
     
    117109
    118110Since 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
     114You 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
     116The "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
     118To 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**".