Changes between Version 3 and Version 4 of Sample

Show
Ignore:
Timestamp:
11/30/08 23:13:13 (5 years ago)
Author:
dschwabe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Sample

    v3 v4  
    33 
    44 
     5This page illustrates the usage of Explorator.  
    56 
    6 Let us now illustrate the usage of Explorator. Suppose the user needs to find all the lakes contained exclusively in Russia (and not in any other country). The task can be decomposed in the following steps: 
     7The repository contains geo-political data about countries in the World. 
     8 
     9Suppose the user needs to find all the lakes contained exclusively in Russia (and not in any other country). One possible way to achieve this task is as follows: 
    710 
    811 
     
    1114 2. Find Russia, the country; 
    1215 
    13  3. Find all the lakes in Russia obtaining a set we will call LR; 
     16 3. Find all the lakes in Russia obtaining a set which we will call LR; 
    1417 
    1518 4. Find the countries that share a boundary with Russia (Russia’s neighbors); 
    1619 
    17  5. Find all the lakes in Russia’s neighbors, obtaining a set we will call LN; and 
     20 5. Find all the lakes in Russia’s neighbors, obtaining a set which we will call LN; and 
    1821 
    1922 6. Build the set of the lakes contained exclusively in Russia by calculating the difference between the previous sets: LR-LN 
    2023 
    2124 
    22 To find all the lakes in the database, the user first searches for “lake”: 
     25First we must select the repository. Click on Menu and select Repositories. Deselect all, and select "Mondial". Click ok. 
     26 
     27To find all the lakes in the database, a simple way is to search for “lake”: 
    2328 
    2429 
    2530[[Image(wiki:Sample:1.JPG)]] 
    2631 
    27  
    28 He locates the Lake class in the resulting set, and gets the set of instances of the Lake class by clicking on the Instances link, to obtain all the lakes in the database: 
     32Locate the `Lake` class in the resulting set, and get the set of instances of the `Lake` class by clicking on the Instances link, to obtain all the lakes in the database: 
    2933 
    3034 
     
    3236 
    3337  
    34 Next, to find Russia, he searches for “Russia” and locates the resource Russia in the resulting set: 
     38Next, to find Russia, search for “Russia” and locates the resource `Russia` in the resulting set: 
    3539 
    3640 
     
    3842 
    3943 
    40 To make sure he has the right resource, he views the resource details: 
     44To make sure it is the right resource, look at the resource details by double-clicking on it: 
    4145 
    4246 
     
    4448 
    4549  
    46 Next, to find all the lakes LR in Russia, he selects the set of all lakes and sets it as the subject of his query by clicking on the [S] toolbar button: 
     50Next, to find all the lakes LR in Russia,  select the set of all lake (clicking on the box) and set it as the subject of an SPO query by clicking on the [S] toolbar button: 
    4751 
    4852 
     
    5054 
    5155  
    52 Continuing to build the query, he selects the resource Russia and sets it as the object of his query: 
     56Continuing to build the query, select the resource `Russia` and set it as the object of the SPO query by clicking on the [o] toolbar button: 
    5357 
    5458 
     
    5660 
    5761  
    58 He executes the query to obtain the set of all lakes in Russia: 
     62Execute the query (click on the [=] toolbar button) to obtain the set of all lakes in Russia: 
    5963 
    6064 
     
    6266 
    6367  
    64 Next, to find the countries that share a boundary with Russia, he views the details of the Russia resource and locates the neighbor property in Russia, thereby finding its neighboring countries: 
     68Next, to find the countries that share a boundary with Russia, look at the details of the `Russia` resource and locate the `neighbor` property, thereby finding its neighboring countries: 
    6569 
    6670 
     
    6872 
    6973  
    70 To find all the lakes in Russia’s neighbors, he selects the set of Lakes in Russia and sets it as the subject of his next query: 
     74To find all the lakes in Russia’s neighbors, select the set of Lakes in `Russia` and sets it as the subject of the next query: 
    7175 
    7276  
     
    7478 
    7579 
    76 He selects the set of Russia’s neighbors and sets it as the object of his query: 
     80Selects the set of Russia’s neighbors and set it as the object of his query: 
    7781 
    7882  
    7983[[Image(wiki:Sample:10.JPG)]] 
    8084 
    81  
    82 He then executes the query to find all lakes in Russia’s neighboring countries: 
     85Execute the query to find all lakes in Russia’s neighboring countries: 
    8386 
    8487  
     
    8689 
    8790 
    88 Finally, to build the set of the lakes contained exclusively in Russia, he needs to calculate the difference between the set of lakes in Russia and the set of lakes in Russia’s neighbors. To do this, he selects the first set and the difference operator: 
     91Finally, to build the set of the lakes contained exclusively in Russia, we need to calculate the difference between the set of lakes in Russia and the set of lakes in Russia’s neighbors. To do this, select the first set and the difference operator: 
    8992 
    9093  
     
    9295 
    9396 
    94 Finally, he selects the second set (containing the lakes in Russia’s neighbors) and executes the difference operation by clicking on the equal [=] toolbar button, thereby obtaining the desired result: 
     97Finally, select the second set (containing the lakes in Russia’s neighbors) and execute the difference operation by clicking on the equal [=] toolbar button, thereby obtaining the desired result: 
    9598 
    9699