Forskjell mellom versjoner av «Tutorial4 OLD»

Fra mn/ifi/camsem
Hopp til: navigasjon, søk
(Ny side: '''Tutorial 4: Making filter who includes more data series'''<br>One of the many problems we have encountered in Anzo for the Web appears when using filters on graphs. If I want to filter s…)
 
Linje 1: Linje 1:
'''Tutorial 4: Making filter who includes more data series'''<br>One of the many problems we have encountered in Anzo for the Web appears when using filters on graphs. If I want to filter selected years, and have bars showing values from two data series, one of the series disappear whenever I add a filter. Here is one solution, a solution we are not so happy about.
+
'''Tutorial 4: Making filter who includes more data series'''<br>One of the many problems we have encountered in Anzo for the Web appears when using filters on graphs. If I want to filter selected years, and have bars showing values from two data series, one of the series disappear whenever I add a filter. Here is one solution, a solution we are not so happy about.  
  
<br>'''Step 1: Edit the ontology'''<br>We now have to introduce two classes in the SSB Data ontology (assuming you have followed Tutorial 2 and 3), namely a class for municipalities, and a class for quarters. Since this ontology diverges from the last one so much, I suggest making a new from scratch, avoiding some of the little problems and bugs in Anzo for Excel.
+
<br>'''Step 1: Edit the ontology'''<br>We now have to introduce two classes in the SSB Data ontology (assuming you have followed Tutorial 2 and 3), namely a class for municipalities, and a class for quarters. Since this ontology diverges from the last one so much, I suggest making a new from scratch, avoiding some of the little problems and bugs in Anzo for Excel.  
  
<br>''Step 1.1: Making the new classes''<br>• Make a new Ontology, for instance “SSB Data”. If you have one from before named just that, delete it, and use another Identifier for the new one (for instance you could add the digit ‘2’ in behind).<br>• Add the classes Kindergarten coverage and Sick Leave.<br>• Add the classes Municipality and Quarter as well, in the same ontology.<br>• Edit Kindergarten coverage and Sick Leave, and make Municipality and Quarter as their base class! OBS! Do not use the classes from Geography and Time period ontologies!
+
<br>''Step 1.1: Making the new classes''<br>• Make a new Ontology, for instance “SSB Data”. If you have one from before named just that, delete it, and use another Identifier for the new one (for instance you could add the digit ‘2’ in behind).<br>• Add the classes Kindergarten coverage and Sick Leave.<br>• Add the classes Municipality and Quarter as well, in the same ontology.<br>• Edit Kindergarten coverage and Sick Leave, and make Municipality and Quarter as their base class! OBS! Do not use the classes from Geography and Time period ontologies!  
 
 
<br>''Step 1.2: Making the properties''<br>• Add a property named Municipality in the class Municipality, with the range set to the Municipality-class in the Geography-ontology!<br>• Add a property named Quarter in the class named Quarter, with the range set to the Quarter-class in the Geography-ontology!<br>• Add a property named Kindergarten coverage in the class named Kindergarten coverage, with the range set to double.<br>• Add three properties named Men sick leave, Women sick leave and Both sick leave, with it’s ranges set to double.<br>The result should look something like this:
 
 
 
 
 
 
 
[[Image:Tutorial_4_bilde_1.jpg]]<br> <br>'''Step 2: Uploading your data!'''<br>The steps for uploading data for Municipalities and Quarters are similar to Tutorial 2.<br>The Kindergarten coverage type and the Sick leave type have now access to year, quartal, municipality and county via the inherent Quartal and Municipality base classes. This is what makes all the differences when filtering!
 
 
 
<br>''Step 2.1: Uploading kindergarten coverage''<br>• Go to the correct spreadsheet and select Link the active workbook.<br>• Choose the correct data-set.<br>• Choose the correct data-type, Kindergarten coverage below SSB Data.<br>• For Municipality, double-click Municipality, click Name, and hook on Search on Quarter.<br>• For year, double click Quarter, double click Year, select Year and hook on Search on Year.<br>• For the Value, go back and double click Kindergarten coverage.<br>• Click Upload.
 
 
 
 
 
 
 
[[Image:Tutorial_4_bilde_2.jpg]]<br> <br>''Step 2.2: Uploading Sick leave ''<br>• Go to the correct spreadsheet and select Link the active workbook.<br>• Choose the correct data-set.<br>• Choose the correct data-type, Sick leave below SSB Data.<br>• Make sure to search on municipality Identifying number and name and Year and quarter.
 
 
 
<br>'''Step 3: Setting up a Anzo view'''<br>This should be familiar by now.<br>Set up a view based on Municipalities, where women and men sick leave are in bars, and kindergarten coverage are a line. You can now filter by years and counties without losing data from one of the series!<br>You can still not filter quarters, since kindergarten coverage does not have any data on quarters.
 
 
 
 
 
 
 
<br>Some great pictures to end this tutorial:<br>
 
 
 
[[Image:Tutorial_4_bilde_3.JPG|thumb]]
 
 
 
[[Image:Tutorial_4_bilde_4.JPG|thumb]]
 
  
 +
<br>''Step 1.2: Making the properties''<br>• Add a property named Municipality in the class Municipality, with the range set to the Municipality-class in the Geography-ontology!<br>• Add a property named Quarter in the class named Quarter, with the range set to the Quarter-class in the Geography-ontology!<br>• Add a property named Kindergarten coverage in the class named Kindergarten coverage, with the range set to double.<br>• Add three properties named Men sick leave, Women sick leave and Both sick leave, with it’s ranges set to double.<br>The result should look something like this:
  
 +
<br>
  
 +
[[Image:Tutorial 4 bilde 1.jpg]]<br> <br>'''Step 2: Uploading your data!'''<br>The steps for uploading data for Municipalities and Quarters are similar to Tutorial 2.<br>The Kindergarten coverage type and the Sick leave type have now access to year, quartal, municipality and county via the inherent Quartal and Municipality base classes. This is what makes all the differences when filtering!
  
 +
<br>''Step 2.1: Uploading kindergarten coverage''<br>• Go to the correct spreadsheet and select Link the active workbook.<br>• Choose the correct data-set.<br>• Choose the correct data-type, Kindergarten coverage below SSB Data.<br>• For Municipality, double-click Municipality, click Name, and hook on Search on Quarter.<br>• For year, double click Quarter, double click Year, select Year and hook on Search on Year.<br>• For the Value, go back and double click Kindergarten coverage.<br>• Click Upload.
  
 +
<br>
  
 +
[[Image:Tutorial 4 bilde 2.jpg]]<br> <br>''Step 2.2: Uploading Sick leave ''<br>• Go to the correct spreadsheet and select Link the active workbook.<br>• Choose the correct data-set.<br>• Choose the correct data-type, Sick leave below SSB Data.<br>• Make sure to search on municipality Identifying number and name and Year and quarter.
  
 +
<br>'''Step 3: Setting up a Anzo view'''<br>This should be familiar by now.<br>Set up a view based on Municipalities, where women and men sick leave are in bars, and kindergarten coverage are a line. You can now filter by years and counties without losing data from one of the series!<br>You can still not filter quarters, since kindergarten coverage does not have any data on quarters.
  
 +
<br>
  
 +
<br>Some great pictures to end this tutorial. Here we are using filters to show Municipalities within selected counties. We could of course filter years as well, if we had more data of years in the Excel sheets.<br>
  
 +
[[Image:Tutorial 4 bilde 3.JPG|thumb]]
  
 +
<br>
  
 +
[[Image:Tutorial 4 bilde 4.JPG|thumb]]
  
 +
<br>
  
 +
<br>
  
 +
<br>
  
 +
<br>
  
 +
<br>
  
 +
<br>
  
 +
<br>
  
 +
<br>
  
 +
<br>
  
 +
<br>
  
 +
<br>
  
 +
<br>
  
 
What would be very awesome to do next, is getting a time dimension to the graphs! We do not know if this is a possibility in Anzo on the Web ...
 
What would be very awesome to do next, is getting a time dimension to the graphs! We do not know if this is a possibility in Anzo on the Web ...

Revisjonen fra 29. jun. 2010 kl. 14:51

Tutorial 4: Making filter who includes more data series
One of the many problems we have encountered in Anzo for the Web appears when using filters on graphs. If I want to filter selected years, and have bars showing values from two data series, one of the series disappear whenever I add a filter. Here is one solution, a solution we are not so happy about.


Step 1: Edit the ontology
We now have to introduce two classes in the SSB Data ontology (assuming you have followed Tutorial 2 and 3), namely a class for municipalities, and a class for quarters. Since this ontology diverges from the last one so much, I suggest making a new from scratch, avoiding some of the little problems and bugs in Anzo for Excel.


Step 1.1: Making the new classes
• Make a new Ontology, for instance “SSB Data”. If you have one from before named just that, delete it, and use another Identifier for the new one (for instance you could add the digit ‘2’ in behind).
• Add the classes Kindergarten coverage and Sick Leave.
• Add the classes Municipality and Quarter as well, in the same ontology.
• Edit Kindergarten coverage and Sick Leave, and make Municipality and Quarter as their base class! OBS! Do not use the classes from Geography and Time period ontologies!


Step 1.2: Making the properties
• Add a property named Municipality in the class Municipality, with the range set to the Municipality-class in the Geography-ontology!
• Add a property named Quarter in the class named Quarter, with the range set to the Quarter-class in the Geography-ontology!
• Add a property named Kindergarten coverage in the class named Kindergarten coverage, with the range set to double.
• Add three properties named Men sick leave, Women sick leave and Both sick leave, with it’s ranges set to double.
The result should look something like this:


Tutorial 4 bilde 1.jpg

Step 2: Uploading your data!
The steps for uploading data for Municipalities and Quarters are similar to Tutorial 2.
The Kindergarten coverage type and the Sick leave type have now access to year, quartal, municipality and county via the inherent Quartal and Municipality base classes. This is what makes all the differences when filtering!


Step 2.1: Uploading kindergarten coverage
• Go to the correct spreadsheet and select Link the active workbook.
• Choose the correct data-set.
• Choose the correct data-type, Kindergarten coverage below SSB Data.
• For Municipality, double-click Municipality, click Name, and hook on Search on Quarter.
• For year, double click Quarter, double click Year, select Year and hook on Search on Year.
• For the Value, go back and double click Kindergarten coverage.
• Click Upload.


Tutorial 4 bilde 2.jpg

Step 2.2: Uploading Sick leave
• Go to the correct spreadsheet and select Link the active workbook.
• Choose the correct data-set.
• Choose the correct data-type, Sick leave below SSB Data.
• Make sure to search on municipality Identifying number and name and Year and quarter.


Step 3: Setting up a Anzo view
This should be familiar by now.
Set up a view based on Municipalities, where women and men sick leave are in bars, and kindergarten coverage are a line. You can now filter by years and counties without losing data from one of the series!
You can still not filter quarters, since kindergarten coverage does not have any data on quarters.



Some great pictures to end this tutorial. Here we are using filters to show Municipalities within selected counties. We could of course filter years as well, if we had more data of years in the Excel sheets.

Tutorial 4 bilde 3.JPG


Tutorial 4 bilde 4.JPG













What would be very awesome to do next, is getting a time dimension to the graphs! We do not know if this is a possibility in Anzo on the Web ...