Changes between Version 7 and Version 8 of multipleOperations


Ignore:
Timestamp:
08/24/10 15:34:30 (8 years ago)
Author:
nixdell
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • multipleOperations

    v7 v8  
    2121 
    2222Add a "Start" node to the workspace (if you do not know how to do this please try [wiki:bindingVariables tutorial 2]).  [[BR]]  
    23 Add an "Input" node to the workspace and select the input data source to be the "fma" (if you do not know how to do this please try [wiki:bindingVariables tutorial 2]).  
     23Add an "Input" node to the workspace and select the input data source to be the "fma" (if you do not know how to do this please try [wiki:bindingVariables tutorial 2]). [[BR]]  
    2424Add an edge which connects the "Start" node to the "Input" node (if you do not know how to do this please try [wiki:bindingVariables tutorial 2]).  
    2525  
     26[[Image(multiple_tut_1.png, left)]]  
    2627 
    27 === Step 9: Finishing up === 
     28=== Step 3: Adding an Extract Tree operation ===  
    2829 
    29 Add an "Output" node to the workspace. You do not need to change the output location unless you want to (if you do not know how to do this please try [wiki:bindingVariables tutorial 2]).  
     30We wish to add the operation that will extract all of the "regional_parts" and "constitutional_parts" of the "Skull".  
     31 
     32Add an "Extract Tree" operation to the workspace (if you do not know how to do this review how to add nodes in [wiki:bindingVariables tutorial 2]).  [[BR]]  
     33Set the "From Graph" drop-down to be "fma".  [[BR]]  
     34Set the "Root" to be "fma:Skull".  [[BR]]  
     35Add another property to the table by clicking on the (+) button directly below the "Root" parameter. You should now have two properties in the table. [[BR]]  
     36Set the first property to be "fma:regional_part" with the direction "outgoing".  [[BR]]  
     37Set the second property to be "fma:constitutional_part" with the direction "outgoing".  
     38Add an edge which connects the "Input" node to the "Extract Tree" node.  
     39 
     40NOTE that for this operation we do not need a "WHERE" clause since we have no unknown variables.  
     41 
     42[[Image(multiple_tut_2.png, left)]]  
     43 
     44=== Step 3: Adding a Replace operation ===  
     45 
     46We wish to add the operation that will replace the "regional_part" property with the "part" property.   
     47 
     48Add a "Replace Property" node to the workspace. [[BR]]  
     49Since the results of the "Extract Tree" operation will be put into the default graph, the "Replace" operation should use the "default" graph.  [[BR]]  
     50Set the "From Graph" drop-down to be "default". [[BR]]  
     51Set the "Replace Property" field to be "fma:regional_part". [[BR]]  
     52Set the "New Property" field to be "fma:part". [[BR]]  
     53Add an edge from the "Extract Tree" node to the "Replace Property" node.  
     54 
     55NOTE that for this operation we do not need a "WHERE" clause since we have no unknown variables.  
     56 
     57[[Image(multiple_tut_3.png, left)]]  
     58 
     59=== Step 4: Adding another Replace operation ===  
     60 
     61We now want to add the operation that will replace the "constitutional_part" property with the "part" property.   
     62 
     63Add a "Replace Property" node to the workspace. [[BR]]  
     64Since the results of the "Extract Tree" operation will be put into the default graph, the "Replace" operation should use the "default" graph.  [[BR]]  
     65Set the "From Graph" drop-down to be "default". [[BR]]  
     66Set the "Replace Property" field to be "fma:constitutional_part". [[BR]]  
     67Set the "New Property" field to be "fma:part". [[BR]]  
     68Add an edge from the first "Replace Property" node to this "Replace Property" node.  
     69 
     70NOTE that for this operation we do not need a "WHERE" clause since we have no unknown variables.  
     71 
     72[[Image(multiple_tut_4.png, left)]]  
     73 
     74=== Step 5: Finishing up === 
     75 
     76Add an "Output" node to the workspace. You do not need to change the output location unless you want to.  
    3077Add an edge which connects the last "Replace" node to the "Output" node (if you do not know how to do this please try [wiki:bindingVariables tutorial 2]).  
    3178 
    3279[[Image(multiple_tut_last.png, left)]]  
    3380 
    34 === Step 10: Compile and execute the query === 
     81=== Step 6: Compile and execute the query === 
    3582 
    36 Congratulations! You have finished formulating the query. Click on the "compile query" button [[Image(execute.png, left)]] to compile the query and open the execution environment. Run the query and visualize the results (if you do not know how to do this then please review tutorial 1 parts 2 and 3). HINT: This query should return X RDF triples.  
     83Congratulations! You have finished formulating the query. Click on the "compile query" button [[Image(execute.png, left)]] to compile the query and open the execution environment. Run the query and visualize the results (if you do not know how to do this then please review tutorial 1 parts 2 and 3). HINT: This query should return 746 RDF triples.  
    3784 
    3885For information on how to use the execution environment, see [wiki:ExecutingQuery part 2 of tutorial 1]. [[BR]]