<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by SEMOSS Info on Medium]]></title>
        <description><![CDATA[Stories by SEMOSS Info on Medium]]></description>
        <link>https://medium.com/@semossinfo?source=rss-441f953de91------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NTU8E8bzwpJyTmhB</url>
            <title>Stories by SEMOSS Info on Medium</title>
            <link>https://medium.com/@semossinfo?source=rss-441f953de91------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 18:42:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@semossinfo/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[SEMOSS and R]]></title>
            <link>https://medium.com/@semossinfo/semoss-and-r-86126d09a1c9?source=rss-441f953de91------2</link>
            <guid isPermaLink="false">https://medium.com/p/86126d09a1c9</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[semoss]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[SEMOSS Info]]></dc:creator>
            <pubDate>Tue, 22 Jan 2019 15:12:55 GMT</pubDate>
            <atom:updated>2019-01-22T15:14:44.747Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>R is a very impressive data analytics environment. Pick any algorithm that needs to be implemented to summarize, transform, or analyze the data, and there is probably a package to do it. In fact, there may be more than one package to do it. R is one of the core environments that SEMOSS uses for its own analytic purposes. Clean, Analytics, and other SEMOSS functions are typically a thin wrapper on top of existing R packages that are parameterized through widgets and that runs a R routine. R’s weakness is the ease with which visualizations can be created. A single bar chart or a pie chart is feasible, but custom visualizations and dashboards with SVG/canvas routines are easier done in the comfort of a browser. One of the most commonly used visualization package in R is ggplot2. If you have not yet been amazed by what ggplot2 can do, please see <a href="http://r-statistics.co/Top50-Ggplot2-Visualizations-MasterList-R-Code.html">this link</a>.</p><p>This article talks about how to use SEMOSS to work with R. Together, you can run custom analytics, visualize, and share these visualizations. We will use the same Midwest data for the tutorial found <a href="https://raw.githubusercontent.com/selva86/datasets/master/midwest.csv">here</a>. Our goal here is to show how these visualizations can be created through a simple user interface.</p><p>We will primarily be using the console to show what you can do in R inside of SEMOSS.</p><h3><strong>Conventions for this Articles</strong></h3><p>The following boxes will be used to specify that this needs to be used within the SEMOSS console. The bolded words will denote which Console they should be typed in.</p><p><strong>R Code:</strong></p><pre>Enter this command in the R Console.</pre><p><strong>Python Code:</strong></p><pre>Enter this command in the Python Console.</pre><p><strong>Pixel Code:</strong></p><pre>Enter this command in the Pixel Console.</pre><p><strong>Comment:</strong></p><pre><strong>##</strong> This is a comment to explain what is going on <strong>##</strong></pre><h3>Working with R</h3><p>SEMOSS gives you a full R console experience. This can be accessed by clicking on the console and clicking on R. While it does not have the exact same controls as RStudio, many of the functionalities exist in SEMOSS, including using arrows to go up to the previous command, loading a library, and installing a library (not available on play.semoss.org yet), among other things. However, from within SEMOSS the user cannot launch additional windows to create chart / graph through libraries like ggplot2. The user can type simple R commands like installed.packages() or some mathematical equations to see the results. If the input requires multiple lines, use semicolons to separate the lines. Much like R ggplot language, SEMOSS uses Pixel as its core language. Each section below will show the Pixel equivalent of ggplot.</p><h3>Setup</h3><p>Let us start by loading a CSV file. On a local instance where the file system can be locally referenced, the CSV can be loaded by pointing the R Data Table fread function to the local file.</p><p><strong>R Console:</strong></p><pre>## Load the data from the URL Location ##</pre><pre>d &lt;-read.csv(“https://raw.githubusercontent.com/selva86/datasets/master/midwest.csv”)</pre><pre>## Print the d out to verify the data ##</pre><pre>d</pre><p><strong>Pixel Console:</strong></p><pre>## Load this as a frame for SEMOSS to use ##</pre><pre>GenerateFrameFromRVariable(“d”)</pre><p>You can shift between the consoles. Typing %r takes you to R console %p to python and %s to pixel. SEMOSS also allows you to create other mutations of dataframe on your R console and use it as the foundation frame for SEMOSS. Please see the <a href="https://medium.com/@semossinfo/semoss-creating-insights-choosing-your-data-part-1-f8d8f3c9edf8">article on dataframe</a> for more details. In fact, when you create an insight and specify the R as the data frame, this is precisely the process that happens in the background.</p><h3>Visualizing as ggplot2</h3><p>If you have not already clicked on the link above, <a href="http://r-statistics.co/Complete-Ggplot2-Tutorial-Part1-With-R-Code.html">here</a> is the link to the tutorial. We will start showing the parallels between ggplot2 and SEMOSS.</p><h4>Step 1: Create a simple area scatter plot between area and poptotal.</h4><p>To do this, the tutorial uses ggplot and the command is as follows:</p><pre>ggplot(midwest, aes(x=area, y=poptotal)) + geom_point()</pre><p><strong>Pixel Code:</strong></p><pre>Select ( PID , area , poptotal ) | With ( Panel ( 0 ) ) | Format ( type = [ ‘table’ ] ) | TaskOptions ( { “0” : { “layout” : “Scatter” , “alignment” : { “label” : [ “PID” ] , “x” : [ “area” ] , “y” : [ “poptotal” ] } } } ) | Collect(-1) ;</pre><p>The dataframe is a given in SEMOSS from the setup, it is implicit and it is assumed. Let us break the remaining command into a few pieces:</p><ol><li>Selecting some data from a list of available columns here as ID, area, and poptotal.</li><li>Specifying which Panel to visualize this data into — Panel 0.</li><li>Performing the task of collecting this data — You can specify arbitrary amount of data through Collect(n), where n is the number of items to show or Collect(-1) to show everything. Please be aware that if you have a lot of data, this will not be a optimal output.</li><li>Assigning it to be scatter layout as Label, X, and Y respectively — No surprises here.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oUEWslGTnZ-y30E509Hvyw.png" /><figcaption><strong>Output for step 1 (SEMOSS on the left, ggplot2 on the right).</strong></figcaption></figure><h4>Step 2: Utilizing the scatter plot to draw a best line fit.</h4><p>The tutorial does this by calling the geom_smooth(method=”lm”) as follows:</p><p><strong>R Console:</strong></p><pre>ggplot(midwest, aes(x=area, y=poptotal)) + geom_point() + geom_smooth(method=”lm”)</pre><p>SEMOSS implements the regression line as an ornament, i.e. something that is something front end specific. In this case the regression line is not computed from the backend, but it is done through the frontend. This can be deceptive if you have only loaded subset of the data. We are in the process of implementing both regression lines on the subset as well as the overall dataset.</p><p>To do this on SEMOSS, simply navigate to additional tools, click regression, and select linear to select the linear regression line. Please also note that SEMOSS not just paints the regression line, but also the function that defines these points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nsWES_msNCVxUKxV79xjOQ.png" /><figcaption><strong>Output for step 2 (SEMOSS on the left, ggplot2 on the right).</strong></figcaption></figure><h4>Step 3 — Method 1: Adjusting X and Y limits by filtering.</h4><p>The information that is being shown right now is clumped towards the bottom. The article talks about how this can be made better either by using filters or by zooming in. The ggplot article does by adjusting the axis.</p><p><strong>R Console:</strong></p><pre>## X is adjusted for 0, 0.1 and y for 0, 1M. Note that the x in this case has been mapped to area and y to poptotal ##</pre><pre>g + xlim(c(0, 0.1)) + ylim(c(0, 1000000))</pre><p>In SEMOSS, this can be achieved by filtering your frame.</p><p><strong>Pixel Console:</strong></p><pre>ReplaceFrameFilter(poptotal &lt; 1000000) ;</pre><p>Given that the frame is one connected grid, SEMOSS does allow you to filter based on a different column if you chose to do it. In SEMOSS you could as easily do this through set of mouse clicks on filter.</p><h4>Step 3 — Method 2: Adjusting X and Y limits by using the zoom X-Axis and zoom Y-Axis.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UBw3um8GtQhmUuzD7nQhBQ.png" /><figcaption><strong>Output for step 3 (SEMOSS on the left, ggplot2 on the right).</strong></figcaption></figure><h4>Step 4 — Changing the color of the points based on a different column.</h4><p>Here is the ggplot code for plotting this with color.</p><pre><strong>library</strong>(ggplot2)</pre><pre>gg &lt;- <strong>ggplot</strong>(midwest, <strong>aes</strong>(x=area, y=poptotal)) +</pre><pre><strong>geom_point</strong>(<strong>aes</strong>(col=percollege), size=3) +  <em># Set color to vary based on state categories.</em></pre><pre><strong>geom_smooth</strong>(method=&quot;lm&quot;, col=&quot;firebrick&quot;, size=2) +</pre><pre><strong>coord_cartesian</strong>(xlim=<strong>c</strong>(0, 0.1), ylim=<strong>c</strong>(0, 1000000)) +</pre><pre><strong>labs</strong>(title=&quot;Area Vs Population&quot;, subtitle=&quot;From midwest dataset&quot;, y=&quot;Population&quot;, x=&quot;Area&quot;, caption=&quot;Midwest Demographics&quot;)</pre><pre><strong>plot</strong>(gg)</pre><p>SEMOSS is not stateless and remembers all the previous directives given to the chart such as paint a regression line, filter the y to a given value, etc. It is not needed to fill the same values again. Arguably you could possibly achieve this by using the ggplot variable again. In SEMOSS you only need to specify what to color this by. Color is specified through the series. The Pixel below will look very similar to the Pixel on step 2, the only different is in the selector, i.e. selecting that additional column per college and then using it for color/series.</p><p><strong>Pixel Console:</strong></p><pre>Select ( PID , area , poptotal, state_1 ) | With ( Panel ( 0 ) ) | Format ( type = [ ‘table’ ] ) | TaskOptions ( { “0” : { “layout” : “Scatter” , “alignment” : { “label” : [ “PID” ] , “x” : [ “area” ] , “y” : [ “poptotal” ], “series” : [ “state_1” ] } } } ) | Collect(-1) ;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AvowQokxlbu-aIexAIfaqg.png" /><figcaption><strong>Output for step 4 (SEMOSS on the left, ggplot2 on the right).</strong></figcaption></figure><h4>Step 5: Faceting / Shelfing — Drawing multiple Plots within one figure.</h4><p>One of the things that can be done in ggplot is the ability to Facet. The idea behind faceting is comparing the same graph with a new axis.</p><p><strong>R Console:</strong></p><pre>g &lt;- <strong>ggplot</strong>(mpg, <strong>aes</strong>(x=displ, y=hwy)) +</pre><pre><strong>geom_point</strong>() +</pre><pre><strong>geom_smooth</strong>(method=”lm”, se=FALSE) +</pre><pre><strong>theme_bw</strong>() <em># apply bw theme</em></pre><pre>## Facet wrap with common scales ##</pre><pre>g + <strong>facet_wrap</strong>( ~ class, nrow=3) + <strong>labs</strong>(title=”hwy vs displ”, caption = “Source: mpg”, subtitle=”Ggplot2 — Faceting — Multiple plots in one figure”) <em># Shared scales</em></pre><pre>## Facet wrap with free scales ##</pre><pre>g + <strong>facet_wrap</strong>( ~ class, scales = “free”) + <strong>labs</strong>(title=”hwy vs displ”, caption = “Source: mpg”, subtitle=”Ggplot2 — Faceting — Multiple plots in one figure with free scales”) <em># Scales free</em></pre><p><strong>Pixel Console:</strong></p><pre>Select ( PID , area , poptotal, state_1 ) | With ( Panel ( 0 ) ) | Format ( type = [ ‘table’ ] ) | TaskOptions ( { “0” : { “layout” : “Scatter” , “alignment” : { “label” : [ “PID” ] , “x” : [ “area” ] , “y” : [ “poptotal” ], “facet” : [ “state_1” ] } } } ) | Collect(-1) ;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*168OoEyak4EbsB1OJRDIwA.png" /><figcaption><strong>Output for step 5 (SEMOSS on the left, ggplot2 on the right).</strong></figcaption></figure><h3>Conclusion</h3><p>SEMOSS provides native integration to R. You have the ability to run analytics through R while trying to visualize the results through SEMOSS. This can allow users to run elaborate R (and Python) pipelines as a dynamic page without the need for manual integration.</p><blockquote>Feedback, Comments, Suggestions, Improvements? Please contact us at <a href="http://www.semoss.org/">semoss.org</a>. Try it out at play.semoss.org.</blockquote><blockquote><strong>Why login?</strong></blockquote><blockquote>There are 2 reasons why a login is required:</blockquote><blockquote>1. There are many users using SEMOSS, and we need some way to identify you so that the right databases can be shown. Between the choice of creating a login/password and forcing to remember yet another password, SEMOSS chooses to use a social login. Right now Google and Github are available. Twitter, Facebook, etc. are coming soon.</blockquote><blockquote>2. You are working with YOUR data wherever it is. It could be Google Drive, Dropbox, etc. This is an integrated login to allow you to keep your data safe.</blockquote><blockquote><strong>What will you do with my login?</strong></blockquote><blockquote>We will show you apps and insights that you have created and are author or editor of.</blockquote><blockquote><strong>Can I use SEMOSS without logging in?</strong></blockquote><blockquote>Absolutely. Download at <a href="http://www.semoss.org/download">www.semoss.org/download</a> or docker run -p 80:8080 semoss/docker sh run.sh.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86126d09a1c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SEMOSS — Creating Insights — Part 5 — Working With Events]]></title>
            <link>https://medium.com/@semossinfo/semoss-creating-insights-part-5-working-with-events-2277dd4aea1b?source=rss-441f953de91------2</link>
            <guid isPermaLink="false">https://medium.com/p/2277dd4aea1b</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[semoss]]></category>
            <dc:creator><![CDATA[SEMOSS Info]]></dc:creator>
            <pubDate>Mon, 12 Nov 2018 14:20:38 GMT</pubDate>
            <atom:updated>2019-01-11T18:20:39.272Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>SEMOSS — Creating Insights —Working With Events — Part 5</strong></h3><p>The range of SEMOSS’ abilities does not simply stop after creating visualizations like you saw in Part 4. SEMOSS has the ability to dive deeper into visualizations to create more powerful insights. Part of this power can be found in the creation of events. With just the click or drag of a mouse, SEMOSS can rapidly filter through data showing you the information you want to see.</p><p>Inherently, there are a couple pre-made events for every insight. When you used the brush and un-brush on the charts, you may have asked yourself a couple different questions, including:</p><p>· How does SEMOSS know how to do this?</p><p>· Can I change this default behavior?</p><p>· Can I tag other events to it?</p><p>· Can I make another part of the visualization do something else with it?</p><p>· Can I play a video to the user or can I just load a completely different parameterized page for this user?</p><p>In SEMOSS, the answer to these questions is a resounding <strong>yes</strong>, and the construct to do this is called Events.</p><h3>Events</h3><p>Eventing is the concept of signaling changes to different components of the application so that these components react to it. The signals, while typically user-driven, can also be because of a time-based activity that may occur. SEMOSS gives you a variety of ways for triggering event from the user interface, such as:</p><ol><li>Mouse Action — Click, Double Click, Hover.</li><li>Key Press — Pressing specific keys such as Escape, Pressing K or P.</li><li>Combination of key press and mouse action — Ctrl + Click, Shift + Click, Alt + Click.</li></ol><p>As well as a variety of action from the event, such as:</p><ol><li>Highlighting specific data.</li><li>Filtering the data.</li><li>Opening a URL — As a Window vs. Panel vs. Tab.</li><li>Custom Script — Performing highly specific actions specific to user actions. (As we will soon discuss, a SEMOSS event is simply script that is getting executed that can controlled through this custom script — Pixel).</li></ol><h3>Select Vs. Filter</h3><p>When we first started doing dashboarding using other software we realized that the software typically pre-selects all of the data and uses the events purely as a way to adjust the filtering. This works flawlessly for certain form function that connects the size of memory available to the size of data that can be handled. However, when working with large data-sets with tools such as Impala/Hive/ClickHouse, we want the event to not only filter the data, but also select the data itself from scratch. This is not only true for large data, but also for disconnected disparate data that may be connected very sparsely at fringes (i.e. doing a join on these will result in a Cartesian join with many rows containing null values).</p><p>This is why we designed SEMOSS with the ability to filter pre-selected data, in addition to the ability to select the data based on user events. Custom scripts allows you to perform targeted selection based on events while keeping the memory footprint minimal on the server without sacrificing performance. Custom scripting is the key to this functionality.</p><h3>Dataset</h3><p>To demonstrate the eventing capability within SEMOSS, let us look at a Marvel dataset. The Marvel-Heroes dataset is a simple table containing Marvel universe characters along with the details about them. The majority of these will utilize the filter construct. The dataset can be found here: <a href="https://github.com/SEMOSS/Marvel-Heroes">https://github.com/SEMOSS/Marvel-Heroes</a>. The raw csv is provided as well as the uploaded database with the dashboard.</p><p>Our objective with this data is to construct a dashboard allowing the user to quickly search through Marvel characters and gain insight into a specific character’s social network.</p><h3>Dashboard</h3><p>To start this, let us create a dashboard (Basic Dashboard) that connects the various components. The dashboard contains a column chart showing distribution of living to deceased (Chart: Column, Label: Alive, Value: Count of ID), Pie Chart of sex distribution (Chart: Pie, Label: Sex, Value: Count of ID) and a Line Chart showing distribution of the eye color (Chart: Line, Label: Eye, Value: Count of ID).</p><p>Alternatively, you could click the pre-made visual: Basic Dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cdXxeoNO36afT6xThIuccg.png" /></figure><h3>What goes into an event</h3><p>The event configuration menu can be accessed either by clicking on the “events available” in the panel quick menu or by clicking on the “events” in the additional tools menu. Once there, select “edit an existing event” or click to add an additional event. Every event has the following input fields:</p><p>· <strong>Action Name</strong> — Mandatory field. Unique name for the event. This should be a short form for what the event does. For instance “Filter Eye Color based on Sex” — See Pie — Click to Filter</p><p>· <strong>Trigger</strong> — User Trigger for this event i.e. what does the user do to trigger this event. If the event needs to be a combination of key press and a click, click bind to key to see additional menu.</p><p>· <strong>Apply Trigger To</strong> — Which particular visualization is triggered, through this event. If specific panels is selected, the event will require user to input the panel, but clicking on the panels visible. Taking the mouse on the panel, highlights which panel is being shown.</p><p>· <strong>Action</strong> — Action to take based on the panel specified.</p><p>· <strong>Specify Column</strong>– The column on which to take the action on. If you imagine a row to be a set of connected columns, specifying a column to take action on, basically looks at the trigger column, the value in the trigger column, locates the equivalent value in the action column and then performs the action.</p><p>· <strong>Specify Visualization</strong> — &lt;Need to find what this is&gt;</p><p>· <strong>Show Script</strong> — Shows the script that is being executed. Remember from earlier, all of that UI generates pixel, SEMOSS’s scripting language that is ultimately recorded. Once the user has enough familiarity with pixel, the user interface can be a distraction and the user can directly use pixel in the text box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*on_Pv9QrG3BYhA6XaklIMQ.gif" /></figure><h3>Pie — Click to Filter — Making Line Chart react to the Pie Chart</h3><p>To do this, click on the event menu on the quick menu on pie chart or event menu on the additional tools. Doing this will bring up the eventing menu with various events configured for this panel. The 2 default events on every panel, brush (filters data based on what is in the scope of brush) and click (unfilters the data). The brush menu is not very useful for the pie chart since it requires the user to perform a circular motion to exactly pick the pie slice (while we implemented this as a custom brush UI initially, we gave up since the users found it non-intuitive). Instead, let us do the filtering based on click. To do this, click add events, which will bring the event configuration menu. You can fill the different parameters. Below shows the parameters, their meaning and the value being used.</p><p>Event Name: Filter Eye Color based on Sex</p><p>Trigger: Click</p><p>Specific Panel: Panel 1</p><p>Action: Filter</p><p>Specify Column: Check</p><p>Select Column: EYE</p><p>Once these are checked, inspect the script by clicking the custom script and then click add event. Events are stacked by event type. Your action right below the default action for the click trigger. The default click trigger can be disabled by clicking the disable icon next to edit, however it cannot be removed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3gwWKUdXU-I_PlIlqLnBiw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*UeZSOBEaeLY7OF32D01IJw.png" /></figure><h3>Line Chart — Hover to Highlight Sex</h3><p>Next is an event where we highlight the slices on the pie correlating to a hover on the line chart. To implement this functionality, click on the event menu while line chart is active (the panel is active when there is a thin blue line around it). Click add events with the following parameters.</p><p>Event Name: Highlight Sex based on eye color</p><p>Trigger: Hover</p><p>Specific Panel: Panel 2</p><p>Action: Highlight</p><p>Specify Column: Check</p><p>Select Column: Sex</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YX7XFPB6PrOKa4OsrCQdEw.gif" /></figure><p>Once you do this, click on the Female characters first to filter the eye color, which should reveal an eye color called pink. Hover on pink (hover is triggered by default after three seconds) and you will see there are no gender-fluid sexes with pink colored eyes.</p><h3>Creating a YouTube Search Based on Double Click</h3><p>Sometimes, there may be a need to open a URL as a popup based on an event. For instance, say the task is to take the user to a list of YouTube videos related to a specific character. To do this, a URL needs to be dynamically generated and opened based on a selected value passed to allow search on the character. YouTube search follows the URL pattern, <a href="https://www.youtube.com/results?search_query=Term+to+be+searched">https://www.youtube.com/results?search_query=Term+to+be+searched</a>. The search term needs auto-filled with the pie slice value. SEMOSS uses the mnemonic of &lt;SelectedValues&gt; that gives the value of the click making the search dynamic. Add another event, but now instead of highlight column specify the URL with the selections below</p><p>Event Name: YouTube Search</p><p>Trigger: Doube Click</p><p>Specific Panel: Panel 0</p><p>Action: Open URL</p><p>Open As: Tab</p><p>Enter URL: <a href="https://www.youtube.com/results?search_query=&lt;SelectedValues&gt;">https://www.youtube.com/results?search_query=&lt;SelectedValues&gt;</a></p><p>Note the &lt;SelectedValues&gt; being appended to the YouTube search query. Now when you click on the pie slice the YouTube link is opened as a tab with the search query auto-filled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wyxshXUCydYMADkf2bQrXQ.gif" /></figure><h3>Conclusion</h3><p>Each of the steps performed on the GUI in SEMOSS (whether it be cleaning data, crafting a visual, or making an event) generates a script in Pixel, the primary language to which SEMOSS reacts. Composing Pixel is relatively easy and enables for complex functionalities such as:</p><p>· Opening a completely new panel, querying from a different database and displaying results in this panel — Imagine Master Detail</p><p>· Rerun recipes on another panel based on the selection being made by the user in one panel</p><p>· Style panels based on user inputs</p><p>Check out at the SEMOSS userguide learn more about Pixel. We will also do a deep dive on Pixel in an upcoming article.</p><blockquote>Feedback, Comments, Suggestions, Improvements? Please contact us at <a href="http://www.semoss.org/">semoss.org</a>. Try it out at play.semoss.org.</blockquote><blockquote><strong>Why login?</strong></blockquote><blockquote>There are 2 reasons why a login is required:</blockquote><blockquote>1. There are many users using SEMOSS, and we need some way to identify you so that the right databases can be shown. Between the choice of creating a login/password and forcing to remember yet another password, SEMOSS chooses to use a social login. Right now Google and Github are available. Twitter, Facebook, etc. are coming soon.</blockquote><blockquote>2. You are working with YOUR data wherever it is. It could be Google Drive, Dropbox, etc. This is an integrated login to allow you to keep your data safe.</blockquote><blockquote><strong>What will you do with my login?</strong></blockquote><blockquote>We will show you apps and insights that you have created and are author or editor of.</blockquote><blockquote><strong>Can I use SEMOSS without logging in?</strong></blockquote><blockquote>Absolutely. Download at <a href="http://www.semoss.org/download">www.semoss.org/download</a> or docker run -p 80:8080 semoss/docker sh run.sh</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2277dd4aea1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SEMOSS — Creating Insights — Data Cleanup — Part 3]]></title>
            <link>https://medium.com/@semossinfo/semoss-creating-insights-data-cleanup-part-3-a9250e7af0cd?source=rss-441f953de91------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9250e7af0cd</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[semoss]]></category>
            <dc:creator><![CDATA[SEMOSS Info]]></dc:creator>
            <pubDate>Fri, 26 Oct 2018 19:19:29 GMT</pubDate>
            <atom:updated>2018-10-26T19:19:29.142Z</atom:updated>
            <content:encoded><![CDATA[<h3>SEMOSS — Creating Insights — Data Cleanup — Part 3</h3><p>The last couple of articles focused on the happy case where the data is clean and can be easily visualized. However, sometimes this may not be the case, and the data may need to be prepared before it can analyzed or visualized. Consider the diabetes dataset <a href="https://github.com/SEMOSS/Diabetes">here</a>, <a href="https://github.com/SEMOSS/Diabetes">https://github.com/SEMOSS/Diabetes</a>. Analysis will be done through drag and drop quick insight of the dataset.</p><h3>The Dataset has Many Issues</h3><ol><li>Column names are not normalized (i.e. the columns names are spelled differently, ambiguously, or capitalized differently). Some examples of this are the columns Frame, Gender, and Location.</li><li>Multiple data points in the same column are separated by a custom separator such as , or _. An example is the Abc123 column.</li><li>Column types are not normalized. An example is the id column. It is really a string since the only calculated value needed is a count or unique count, but instead it is imported as a number.</li><li>Derived columns. New columns may be needed that will summarize the information even further such as BMI calculated using Weight and Height.</li><li>Column names are not intuitive and difficult to understand. For example, the Abc123 column.</li></ol><p>The following sections demonstrate how these tasks can be achieved while pointing to other useful routines available within SEMOSS.</p><h3>Understanding Data Boundaries — Data Preparation At Source vs. Data Preparation En Route</h3><p>There are two types of data boundaries the users deal with:</p><p>1. Having ownership of the data and the ability to modify it may be well within the boundaries of what the user can control allowing you to change the source data that is dirty before the visualizations.</p><p>2. Data not in the user’s control (API or data from a different department), but may be needed for analytics.</p><p>The typical use case on #2 is to download the relevant data and turn it into #1 so the cleaning, reshaping, and transforming can be done as if the data is fully owned (may not work for large or fast-changing datasets). SEMOSS allows both use cases seamlessly. Recall from previous articles that everything done inside SEMOSS is recorded as steps (called the recipe) written in SEMOSS’ native language, Pixel, that is played back to rerun the insight / visualization. When working with data, the data-preparation steps can kept separate from the actual insight being created. These steps can then be embedded as part of ETL to pre at source, or applied en route to perform visualizations.</p><h3>Accessing the Clean Menu</h3><p>To access the clean menu, click on the broom looking icon on the panel menu on the right. Typically (depending on the type of analysis), this will move the data currently being worked on into an R data.table to allow various routines to be applied on your data. The speed of this operation will depend on the amount of data being worked. If you are working with large datasets, it would be a good idea to filter your data and use the purge feature to drop the unnecessary data before accessing the clean menu. Purge takes the currently visible data you have and removes all the other extraneous data you have filtered. The clean mode will look like below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vir7UDaQA9O0yTcpkUuumA.png" /></figure><p>To access the histogram (frequency distribution) of the column, just click on the column. This will immediately reveal some of the anomalies visually. For numeric data, SEMOSS automatically buckets it and displays the histogram.</p><h3>Normalizing Column Names — Column Cleaner</h3><p>To understand the distribution of the Location column, click on the Location. The histogram shows majority of the places being called Louisa / Buckingham, but in some of the lower frequencies shows Bjc, etc. To clean this column, utilize the Column Cleaner widget by selecting the location column and clicking execute. The display shows a slider along with corrections predicted on every row with left being the current value and right being the value it will be replaced with. If the selection is not valid, it can either be remove by clicking on the “x” or can be swapped by clicking on the arrow where the replaced value will become current value and vice versa. The column cleaner uses &lt;routine&gt; implemented by &lt;package&gt;. It is a fancy way of measuring string distances. The more dissimilar the strings are, the more the distance. The slider sets the tolerance level of dissimilarity. For example, 100 % means an exact match. As the changes are made, inspect the histogram to see if the columns are normalized.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_CAgfSi_deG5wIpELng-2Q.gif" /></figure><h3>Multiple Data in the Same column — Split Unpivot</h3><p>Inspect the histogram of the column Abc123. There are multiple columns worth of data in this single column. The data is separated by ,_. (Sometimes the number of elements may even be asymmetric — i.e. some columns may have 2 values concatenated, and some have 3). To resolve this, first the data needs to be broken (split) by the delimiter, then turned (folded / unpivoted) from many columns to a single column, and lastly all the remaining columns that were originally present on this multi-column needs to be duplicated for each new row that was created. Note that the number of rows may be arbitrary based on number of concatenated values. Doing this manually can be very error prone. In SEMOSS this operation can be done by using the split unpivot widget, selecting the column (Abc123), and specifying the string separator (,_). Once done, inspect the data to see if there are other concatenations. If so, repeat the process.</p><p><em>Note: If you still see issues on the histogram with respect to normalizing, you can either use the column cleaner, or, if the column values are not case sensitive, uppercase / lowercase the column by using the respective widgets.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mP879nbVPHbMoaBsnqKkDQ.gif" /></figure><h3>Column Type is not Normalized — Change Column Type</h3><p>When the database was created, the id column was designated as an integer. This manifests itself in sub-optimal ways. For instance, when grouping the location for Ids, SEMOSS will default to average (default grouping for numerical values). This can be avoided by changing the column type to String. To do this, active the change column type widget, specify the column and the type, and execute.</p><blockquote><em>Note: If the columns have string and numerical values, and the numerical value needs to be dropped, it is better to use the extract alphabet widget. Using the change column type will keep the numerical values intact. Along the same lines, use the extract number widget to do the opposite.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9w_-nJKW2HyFEOMEPq7zgA.gif" /></figure><h3>Adding Derived Columns</h3><p>Adding new columns can be done on the visualization mode through grid visualization. To perform this operation, click the visualization menu to get to the visualization mode and switch to grid visualization. To add a custom column, double click on the last empty column. This brings up an empty text box as menu where you can type along with other available formulas. Specify a column name, and enter the formula. You can either type the column name or click on the column at the appropriate place in the formula to fill the column name. Hit execute and you will have the new derived column.</p><blockquote><em>Note: You can implement custom formulas as a map reactor. You can read about this in the pixel section of the user guide.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fDtdU78joKS_Ei8QXAaGuA.gif" /></figure><h3>Understanding the Meaning of the Columns</h3><p>Column names may not always describe the contents of the column. SEMOSS provides routines that help determine meaning of the column when the contents are not as evident to the user. To do this, click on the rename the column widget, check the box that says “derive semantic name from data”, and execute. This should give you a list of options from Wikidata based on the contents of the column. Once you are satisfied with a particular value, click the checkbox and hit run to rename the column.</p><h3>Conclusion</h3><p>Now that all the transformations have been applied, you can save this as an insight. Every time this insight is opened, these actions will apply to give you a clean starting point.</p><blockquote>Feedback, Comments, Suggestions, Improvements? Please contact us at <a href="http://www.semoss.org/">semoss.org</a>. Try it out at play.semoss.org.</blockquote><blockquote><strong>Why login?</strong></blockquote><blockquote>There are 2 reasons why a login is required:</blockquote><blockquote>1. There are many users using SEMOSS, and we need some way to identify you so that the right databases can be shown. Between the choice of creating a login/password and forcing to remember yet another password, SEMOSS chooses to use a social login. Right now Google and Github are available. Twitter, Facebook, etc. are coming soon.</blockquote><blockquote>2. You are working with YOUR data wherever it is. It could be Google Drive, Dropbox, etc. This is an integrated login to allow you to keep your data safe.</blockquote><blockquote><strong>What will you do with my login?</strong></blockquote><blockquote>We will show you apps and insights that you have created and are author or editor of.</blockquote><blockquote><strong>Can I use SEMOSS without logging in?</strong></blockquote><blockquote>Absolutely. Download at <a href="http://www.semoss.org/download">www.semoss.org/download</a> or docker run -p 80:8080 semoss/docker sh run.sh.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9250e7af0cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SEMOSS — Creating Insights — Blending Across Data-Sources — Part 2]]></title>
            <link>https://medium.com/@semossinfo/semoss-creating-insights-blending-across-data-sources-part-2-33026fcb73b0?source=rss-441f953de91------2</link>
            <guid isPermaLink="false">https://medium.com/p/33026fcb73b0</guid>
            <category><![CDATA[semoss]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[SEMOSS Info]]></dc:creator>
            <pubDate>Fri, 26 Oct 2018 19:16:00 GMT</pubDate>
            <atom:updated>2018-10-26T19:16:00.850Z</atom:updated>
            <content:encoded><![CDATA[<h3>SEMOSS — Creating Insights — Blending Across Data-Sources — Part 2</h3><p>Data is anywhere and everywhere. This is true for personal data (Excel vs. DropBox vs. Google Drive vs. One Drive) and even more so for enterprise data. Analysis in the enterprise today constantly relies on more than one source of data. Some of the data-sources may be within the boundaries of analysis (super user permissions on the data-source), but many are not within the boundaries (data owned by different division / region / sector, external data from APIs, websites which publish information periodically). To perform this analysis, there are 2 options:</p><ol><li>Blending Enroute — The analyst pulls the data from various places through Excel / csv. Uses their favorite (analytics) tool to blend this data (i.e. to clean, transform, refine / enrich and shape the data). Uses this blended entry as the data-source.</li><li>Blending at Source — (While this usually follows from A) The analyst / data engineer creates a bespoke datamart by writing “business rules” that will clean, transform, refine / enrich and shape the data to use as the data-source.</li></ol><p>While these are shown as two options, typically if the enterprise finds enough value in A, it leads to B. Complexity of this migration depends on how long it took to go from A to B and documentation debt. Even when there is a B existing, a new data-source comes along and the options show up again.</p><p>Federation in SEMOSS primarily address A, making it easier to perform manual blending. This is an important distinction to understand because if there is a need to perform a Cartesian join between multiple databases with many million records, this process can be slow, error-prone and may fail. Federation requires data-frames which were detailed in the previous article. However, once the “recipe” has been perfected, SEMOSS will supplement B, by the way of exposing this recipe at the data-source level. This article will show how federation works within SEMOSS and the tools available to do so.</p><p>Assume that the questions it is being asked are: Is there an (upward) trend in movie budgets which are nominated for best actor by the actor and genre? What does the internet think of these actors today?</p><p>The data required for this analysis comes from the data data-sources — i.e. Movies (Title, Movie Budget), Actor (Actor Name, Title, Year, Best Actor). Remember from prior article, SEMOSS supports 2 different types of data-sources (ds), ds for quick insights and ds for connected insights. Recall from earlier, ds for the connected insights are SEMOSS wide connector that are available to users (with appropriate permission). The default installation of SEMOSS comes with 2 connected data-sources, Movies and Actor and the metamodel as shown below. Alternatively, you can download the movies db <a href="https://github.com/SEMOSS/demo_movie">here</a> (https://github.com/SEMOSS/demo_movie) and the actor db <a href="https://github.com/SEMOSS/demo_actor">here</a>,</p><p>(https://github.com/SEMOSS/demo_actor).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*owpnBIVsbTTWcEqgi2jpLg.png" /><figcaption>Actor DB Metamodel</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*FfmQSqDeBZ7cLCjFi21PRQ.png" /><figcaption>Movie DB Metamodel</figcaption></figure><h3>Blending Data</h3><ol><li>Start with new insight, select Actor App followed by “Add all” on the Title</li><li>This should add Title to the selected column with Title and Role on the available</li><li>Select the role to add it</li><li>Select role to get to the actor, now click actor</li><li>Selected column now has the Actor Name, Title, Year, Best Actor. Last column needed is MovieBudget that is associated with the Title</li><li>With title selected, select the data-source dropdown to Movies, this should show all the data in Movies app associated with Title, Select MovieBudget from this. The selection is complete.</li></ol><p>The data can either be imported here or refined to reduce the size of the import.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O1LzP17lnxYYSFp7Trhizg.gif" /></figure><h3>Refining Data — Filtering before fetching, creating a subset of selected data</h3><p>Until the import is selected, the data is still in preview mode — i.e. it has not been loaded into a data-frame. If the data to be loaded is large, the transfer and processing may take a long(er) time based on the frame. To avoid this, the data can be filtered only to what is needed. In this case, the data is small and it doesn’t matter, but given the analysis focuses on best actor, it can be filtered to reflect just that. To do this, click the filter option that displays on best actor. This will show 2 options (Y and N). Select Y to filter and “add” to confirm selection. At this point the data only has records where the best actor is “Y”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H20_zQ2wutvXcV8bbrr7Ew.gif" /></figure><h3>Refining Data — Filtering after fetching (and purging)</h3><p>Sometimes, the data needs to be seen before the filtering can begin. Once the import is executed, the data is now in the data-frame. Even though the data may have loaded it can be filtered by clicking additional tools / quick menu and selecting the filter. Filter option works by selecting the particular column to filter and selecting the filter criteria. The filter is temporary and can be removed at any time to get back to the full frame. However, if there is a need to reduce the size of data, the user can exercise the purge option located in the additional tools.</p><p>If the filter is selected on best actor, and filtered to exclude N (Best Actor == Y or Best Actor != N), it will remove rows from the view that have Best Actor as “Y”. Now if the purge is selected, SEMOSS will drop the records with Best Actor “N” leaving the number of records the same as pre-fetch filter (assuming no interim additions).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TVB1B_8S5qB5SP4fgBakQA.gif" /></figure><h3>Enriching Data</h3><p>This consists of deriving additional data based on existing data. Enrichment in SEMOSS is done through map-lambdas. Map-lambdas can transform a row at a time, adding additional columns or modifying existing ones. The idea behind lambdas are further elaborated in the pixel article and the user guide.</p><p>Applying Formulas — Suppose for instance that there is a need to understand how recent a title is. This can be done by taking the production year and negating it from current year (2018). To do this, on the grid visualization, double click the last column, this will bring up a formula box. Here enter the formula — 2018 — Year. The column name can also be filled by clicking the column at the appropriate point in the formula — i.e. by typing 2018 — and then clicking the column to fill year.</p><p>Applying APIs — Many of web based information is available through SaaS APIs like Twitter, Google, Amazon, among other things. Assume there needs to be an analysis of what is the latest news about these actors. This can be done easily by using the actor column as the input and asking twitter for latest / popular news about this actor. To do this in SEMOSS, utilize the data menu and instead of looking at the left, look at the enrichment APIs and select Twitter. This now requires input column (the column based on which to search twitter), number of results to get, type of post, and optionally news near a geo location. Upon clicking execute, SEMOSS will pull the result from Twitter, and do a Cartesian join to the existing frame, exposing the additional data. This can also be utilized for sentiment analysis exposed as an API by Google, Aylien, etc.</p><p>Note: The APIs require you to have the client secret and key to be configured. Please see the SEMOSS user guide in terms of configuring the social data connectors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*joe9aHptsbaXT0takLE2oQ.gif" /></figure><h3>Shaping and Cleaning the Data</h3><p>Shaping involves pivoting, transposing, unpivoting specific columns or the data. As the shaping happens, the data may have normalization issues. For example, the data may have “New York” spelled many different ways such as “NewYork”, “NEWYORK”, “NY”, “n.Y” and it needs to be normalized to get accurate summarization /grouping and even for connecting to other databases to enable probabilistic match — i.e. you don’t want to change every record so the columns exactly match the target database for join. This will be elaborate in the Cleaning Insights article that will address the process to clean data using SEMOSS along with the ability to shape data.</p><h3>Conclusion</h3><p>In the last article we saw how to create a quick insight, and in this, how to create insights by blending across databases. Try some of these with your own datasets (Excel, csv, etc.). Tell us what you think.</p><blockquote>Feedback, Comments, Suggestions, Improvements? Please contact us at <a href="http://www.semoss.org/">semoss.org</a>. Try it out at play.semoss.org.</blockquote><blockquote><strong>Why login?</strong></blockquote><blockquote>There are 2 reasons why a login is required:</blockquote><blockquote>1. There are many users using SEMOSS, and we need some way to identify you so that the right databases can be shown. Between the choice of creating a login/password and forcing to remember yet another password, SEMOSS chooses to use a social login. Right now Google and Github are available. Twitter, Facebook, etc. are coming soon.</blockquote><blockquote>2. You are working with YOUR data wherever it is. It could be Google Drive, Dropbox, etc. This is an integrated login to allow you to keep your data safe.</blockquote><blockquote><strong>What will you do with my login?</strong></blockquote><blockquote>We will show you apps and insights that you have created and are author or editor of.</blockquote><blockquote><strong>Can I use SEMOSS without logging in?</strong></blockquote><blockquote>Absolutely. Download at <a href="http://www.semoss.org/download">www.semoss.org/download</a> or docker run -p 80:8080 semoss/docker sh run.sh.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33026fcb73b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SEMOSS — Creating Insights — Creating Visualizations — Part 4]]></title>
            <link>https://medium.com/@semossinfo/semoss-creating-insights-creating-visualizations-part-4-48cbb3026df1?source=rss-441f953de91------2</link>
            <guid isPermaLink="false">https://medium.com/p/48cbb3026df1</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[semoss]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[SEMOSS Info]]></dc:creator>
            <pubDate>Fri, 26 Oct 2018 19:13:16 GMT</pubDate>
            <atom:updated>2018-10-26T19:21:31.552Z</atom:updated>
            <content:encoded><![CDATA[<h3>SEMOSS — Creating Insights — Creating Visualizations — Part 4</h3><p>Once the data source has been created and appropriate data blending has been done, the next step is to create the visualization. The objective of this article is to show what is in a visualization, different ways to customize a visualization, and how to save it as an insight.</p><p>This article will continue on the diabetes dataset from <a href="https://github.com/SEMOSS/Diabetes">here</a>, (<a href="https://github.com/SEMOSS/Diabetes">https://github.com/SEMOSS/Diabetes</a>).</p><p>When an insight is created, the columns become available as dimensions that can be utilized to create visualizations. While for a grid these are columns, for a graph these could be nodes. The act of creating visualization involves specifying a template (i.e. the type of visualization) and specifying dimensions in the specific value holders (i.e. the chart options). Some of these chart options are mandatory (i.e. the essential data required before the chart can be displayed). Depending on the type of the chart, some of these chart options are multi-valued (i.e. can accommodate more than one dimension).</p><p>To fill the specific chart, drag the dimension to the specific chart option. The dimension can also be double-clicked to automatically fill into the next available option. When the current option is multi-valued, the dimensions will stack into this option.</p><p>To remove the dimension from an option, click the “x” on the dimension available in that option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VCjRKNc5cW12lP0bKLqucA.gif" /></figure><h3>Category 1: 1-Dimensional Charts</h3><p>The following options are available for most single dimensional charts: Pie, Column / Bar Chart, Radial, Polar Bar Chart, Line Chart, Area Chart, Box and Whiskers, Single-axis Cluster, Radar Chart, Funnel Chart, Bubble Chart, Gauge, and Word Cloud.</p><h4>Label</h4><p>Placeholder for the dimension that is being analyzed. Label is the primary axis of interrogation. For instance, in the Pie Chart this will become the labels for the slices and in a bar chart this will become the bar labels. For example: if the distribution of the “location” column is being evaluated as slices of pie, the location will be the label.</p><p>This value is usually categorical and single-valued.</p><h4>Value</h4><p>The value being measured for the given label. This is the secondary axis of interrogation. For example: If number of people (id column) belonging to each location is being analyzed, then “count of id” becomes the value being analyzed. Dragging id to value chart option enables this. When the Label to Value relationship is one to many (for example, one location has many ids), SEMOSS will automatically “group” the value based on the label specified above. The default grouping formula depends on the type of value. For numeric values, the default is average; and for categorical value. the default is count. The grouping on the option can be changed by clicking on the drop down available on the dimension inside the chart option. The numeric grouping includes “average”, “median”, “sum”, “min”, “max”, “standard deviation”, categorical “count”, and “unique count”. Unique count de-duplicates the dimension while grouping it.</p><p>This value is usually numeric and multi-valued but for pie charts.</p><h4>Tooltip</h4><p>Salience to display, in addition to the label and value specified above, when hovering over the label-value combination. The Tooltips are also grouped by the label with all the same options available for grouping across numeric and categorical data. Additionally, the tooltip contains a concatenated value and unique concatenated value for categorical data. For example, if the analysis involves understanding gender bias of the data based on drug, the drug can be used as label, count of id as value, and unique concat gender as tooltip. The tooltip is shown when hovering over the label-value.</p><p>This value is usually multi-valued.</p><h4>Facet</h4><p>Also called shelf / page, facet is a higher level grouping of the entire chart based on a dimension. For example: if the analysis involved age groups by id across genders, it will require age as label, count of id as the value, with gender on the facet. This will bring a navigation icon that can be used to cycle through the different options on the facet (in this case male and female — displayed above on the chart). Clicking show all instances will show the comparison side by side.</p><p>This value is always single-valued. Usually the facet value involves 6–10 unique values across the dataset. If there are 100s of values in the facets, SEMOSS will take a long time to paint the visualization as it calculates for each combination.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YMGeBksz5mh9ScOhFpBOJg.png" /></figure><h3>Category 2: 2-Dimensional Charts</h3><p>Following options are available for two-dimensional charts — Scatterplot, and Single Axis Cluster.</p><h4>X-Axis, Y-Axis</h4><p>Same concept as value, but imagined as 2 values (1 value along X-Axis and 1 value along Y-Axis). For example, for an analysis involves understand the age groups and their median height and weights, this will involve the scatter plot chart, with median height as X-Axis and median weight as Y-axis.</p><p>Both X and Y axis are always single valued.</p><h4>Color</h4><p>Dimension to use for coloring the label-value displays. For example: if gender bias needs to be analyzed on the chart above, the gender can be used to color the scatter. Taller people tend to be males.</p><p>Color is always single valued.</p><h4><strong>Size</strong></h4><p>Used to size the label-value display based on a given dimension. For example: if the analysis further wants to understand correlation between height, weight, gender, and cholesterol. Cholesterol value can be used to size the plot dimension. There is no correlation between weight and cholesterol. (You could validate this by running analytic routines.)</p><p>Size is always single valued.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iURnW7v_HfbSLZIoQVIgWg.gif" /></figure><h3>Category 3: Hierarchical Charts</h3><p>Hierarchical charts are multi-level explicit grouping visualizations where some value is not just grouped (like above), but then is also sized based on the group and displayed accordingly. Following are the options available for hierarchical charts: Treemap, Cluster, Sunburst, Circle Pack, and Heatmap.</p><h4>Series</h4><p>The top level grouping dimension that is being used as hierarchy for the visualizations. For example: if the insight is to find the distribution of cholesterol according to the frame size, and further grouped by gender, it can be done by selecting the Treemap, selecting gender for series, frame for label and cholesterol for size. The hierarchy can be further expanded through the facets. For example: if the hierarchy needs to be seen for location, the location can be used as facets.</p><p>Series is always single valued and typically categorical.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kcK3JAoevjVCmNoIa4h61w.png" /></figure><h3>Category 4: Geo-visualizations</h3><p>SEMOSS comes equipped with two types of Geo visualizations. Choropleth and Regular map. While the choropleth defaults to state, it can be changed through additional tools from states to zipcode to counties or even countries.</p><h4>Label / State / County / Country</h4><p>Self explanatory.</p><h4>Value</h4><p>The value to plot the heat based on.</p><h4>Latitude, Longitude</h4><p>Self explanatory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SVJH5u6fxEukvsGuphM76A.png" /></figure><h3>Category 5: Exploratory Charts</h3><p>Exploratory charts allow expanding charts to many dimensions along any axis of interrogation. Given the nature of these visualizations, there are very few, if any, options common across them.</p><h4>Network Visualization</h4><p>Used to plot the topology or the shape of the data, these visualizations plot the connection between the data. Depending on the type of the frame, the network visualization options will change. For a grid visualization, it shows Start and End options that are always used in unison. For example: if the relation between drugs and gender needs to be shown, it can be achieved by Drugs in the start option and Gender in the end option. If this needs to be expanded to frame (i.e. drugs — gender — frame), it can be achieved by Drugs in Start, Gender in End followed by Gender again in Start and Frame in the end option. The charts can be continuously expanded along any direction.</p><h4>Parallel Coordinates</h4><p>This visualization is one of the most fault-tolerant visualization. It is a multi-dimensional chart where you can drop many dimensions on the label chart option. Each dimension that are dragged is shown as a vertical line with the values as ticks on this vertical line. Every line that connect these vertical lines is the visual representation of one row.</p><h4>Dendrogram</h4><p>Very similar to parallel coordinates, dendrogram can be used to show hierarchy.</p><h4>Sankey</h4><p>This visualization is similar to network where the salience can be specified through another dimension. Sankey can be used to understand how significant are the relationship between the columns. Label is multi-valued and can take multiple columns and the value being the thickness on the links between the dimensions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*UCvmtf3evi_bz5_XIqENOQ.png" /></figure><h3>Look and Feel</h3><p>Once the visualizations have been created, a variety of additional tools can be utilized to control the look and feel of the visualization like changing the color, adding axis controls, etc. This can be utilized by clicking on the additional tools and customizing the visualizations. Each type of visualization has its own set of Additional Tools. These are further elaborated in the user guide: <a href="http://semoss.org/userguide/#/">http://semoss.org/userguide/#/</a>.</p><blockquote>Feedback, Comments, Suggestions, Improvements? Please contact us at <a href="http://www.semoss.org/">semoss.org</a>. Try it out at play.semoss.org.</blockquote><blockquote><strong>Why login?</strong></blockquote><blockquote>There are 2 reasons why a login is required:</blockquote><blockquote>1. There are many users using SEMOSS, and we need some way to identify you so that the right databases can be shown. Between the choice of creating a login/password and forcing to remember yet another password, SEMOSS chooses to use a social login. Right now Google and Github are available. Twitter, Facebook, etc. are coming soon.</blockquote><blockquote>2. You are working with YOUR data wherever it is. It could be Google Drive, Dropbox, etc. This is an integrated login to allow you to keep your data safe.</blockquote><blockquote><strong>What will you do with my login?</strong></blockquote><blockquote>We will show you apps and insights that you have created and are author or editor of.</blockquote><blockquote><strong>Can I use SEMOSS without logging in?</strong></blockquote><blockquote>Absolutely. Download at <a href="http://www.semoss.org/download">www.semoss.org/download</a> or docker run -p 80:8080 semoss/docker sh run.sh.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48cbb3026df1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SEMOSS — Creating Insights — Choosing Your Data— Part 1]]></title>
            <link>https://medium.com/@semossinfo/semoss-creating-insights-choosing-your-data-part-1-f8d8f3c9edf8?source=rss-441f953de91------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8d8f3c9edf8</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[semoss]]></category>
            <category><![CDATA[data-analytics]]></category>
            <dc:creator><![CDATA[SEMOSS Info]]></dc:creator>
            <pubDate>Fri, 26 Oct 2018 18:55:11 GMT</pubDate>
            <atom:updated>2018-10-26T19:14:41.073Z</atom:updated>
            <content:encoded><![CDATA[<h3>SEMOSS — Creating Insights — Choosing Your Data— Part 1</h3><p>SEMOSS utilizes the concept of insights wrapping data with analytics and visualization. The <a href="https://medium.com/@semossinfo/introducing-semoss-4f7a64f2bd2">previous article</a> — <a href="https://medium.com/@semossinfo/introducing-semoss-4f7a64f2bd2">https://medium.com/@semossinfo/introducing-semoss-4f7a64f2bd2</a> — introduced insight and the types. This article dives one level deeper and describes how an insight gets this data for visualization and analytics.</p><h3>Where does an insight get the data from?</h3><p>SEMOSS can either connect to existing data sources or create new data-sources from adhoc datasets available through Excel / CSV / Other formats. There may be up to 2 layers to the data when working with SEMOSS, and depending on the type of database and functionality needed, you will utilize them in tandem.</p><h4>Layer 1 — Where is your data? — Data-Source</h4><p>In SEMOSS, the data-sources are where you pull the data from to create the visualization. While there are many types of data-sources, we categorize them into the following categories:</p><ul><li>Databases — Enterprise databases such as Oracle, SQL Server, MySQL, MariaDB, Postgresql, Datastax, Neo4J, etc.</li><li>Datalakes — Hadoop Datalakes with Impala, Hive</li><li>APIs — Datasources exposed through APIs. Google Sheets, DropBox, REST Endpoints that provide JSON</li><li>Webpages — Webpages with data-tables. Wikipedia pages with filmography and other details</li><li>Adhoc Datasources — Excel or CSV.</li></ul><p>Clicking on the new insight, exposes the wizard through which to query data for visualization. Go ahead and try (play.semoss.org) some of the data sources, and see the various options that appear. Click on upload new data, follow the wizards to start making new visualizations. Alternately, try the API, Webscraper, use a Wikipedia page with filmography (I used Denzel Washington’s Wikipedia page as <a href="https://en.wikipedia.org/wiki/Denzel_Washington_on_screen_and_stage">link, </a>— <a href="https://en.wikipedia.org/wiki/Denzel_Washington_on_screen_and_stage),">https://en.wikipedia.org/wiki/Denzel_Washington_on_screen_and_stage</a> — select the first table and import.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iexZTpc6B8xSwZ4CMVKRUA.gif" /><figcaption>Web-scraping to create insight</figcaption></figure><h4>Layer 2 — What will you use this data for? — Data-Frame</h4><p>Depending on what the data is going to be used for, the data will be created and placed into an interim transient structure known as a data-frame. There are many rationales for the data-frame. Some of them are listed below</p><ul><li>Availability and Performance — When you scrape the data from the web and start doing visualizations, you might not want to pull the data everytime</li><li>Transformations — Your source data might not be clean and you may not have any control over it for cleaning at source, so you may need a secondary datasource, i.e. the data-frame</li><li>Analytic complexity — Your data might be in a RDBMS, but your analysis may require it to be a graph database to apply graph algorithms and routines</li><li>Blending — You may need to combine multiple data-sets in a adhoc manner per user and creating these blends at any particular source data may be an overkill</li><li>Third-party Visualization Engine — You might want to pull and combine data, but utilize a different visualization engine like Tableau to connect to this data for visualization. This is ideal, where you can clean, transform and summarize your data and expose it to the third-party tool for consumption. In the case of tableau, it is exposed as through web-data-connector.</li></ul><p>Once the data has been pulled into the frame, all the transformations and analytics modify the data-frame and not the data-source. To support different types of analyses, SEMOSS enables various types of data-frames.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dji57UGk68JZ2o7LMyDiQA.png" /><figcaption>Selecting your data frame — Advanced Options</figcaption></figure><h4>Types of Data-Frames</h4><ul><li><strong>Grid (Default)</strong> — Implemented as an embedded H2 database, it is useful for row-based data. Typical excel, csv, rdbms type datasources.</li><li><strong>Graph</strong> — Implemented as an embedded Tinker. Used when the data is relationship heavy. Genomics is a good example for graph.</li><li><strong>R Data </strong>— Implemented as R Data Table. Useful when running R based analytics on data. If you are primarily going to take the data and manipulate it in R environment.</li><li><strong>Pandas </strong>— Planned in the future, serves similar purpose as R, but for Python.</li><li><strong>Spark </strong>— Planned in the future, for blending big datasets</li></ul><blockquote><strong>Native Frame — Frame that holds the structure of your query and not the data. Use this for Big-Data where extracts are not needed and to harness the distributed data capability by querying directly (including custom UDFs).</strong></blockquote><blockquote>Data-frames are great for solving the issues highlighted, above, but <strong>what about big-data like using Impala / Clickhouse / Hive where the data is pre-blended, cleaned and highly available</strong>, do we pull all the data into data-frame and lose the distributed processing power through map-reduce query implementations? To address this, SEMOSS introduces a special type of frame,<strong>“Native Frame”, where the frame sits natively on the data-source</strong>. The native frame merely keeps the structure of what is being queried, without keeping the actual data. When the user performs various operations, the structure is modified, the query generated and the visualization is painted. This removes the need for extracts enabling seamless, real-time access to data.</blockquote><p>You can switch between frames and SEMOSS will do this automatically while preserving your metadata, but this decision needs to be prudent. For instance, if you are working with SEMOSS connected to Impala Cluster processing a billion records with 2000 columns each on a native frame, switching to R to perform analytics may be suboptimal given the bandwidth required to transfer this data and then to create this on your working machine, which might not have enough disk space leave or processing power. If you do need to work with some of your data, see how you can narrow the data through filters, and utilize the “purge” widget located in additional tools, to purge extraneous data, before moving it to a non-native frame.</p><p>You can access the data-frame by selecting the gear icon right to the left of import (shown above). Clicking exposes a dropdown allowing you to select between the different frames.</p><h3>How to use the data — Creating an insight</h3><p>In SEMOSS data can be exposed across the platform as a connector that anyone (with appropriate permission) can use, or restricted to be used only by the given insight. When you and your team will create multiple insights (potentially) on non-static data, you might benefit from exposing your dataset / data-source as a connector into SEMOSS. However, if your insight use is limited (will only be used 2–5 times) with data that is fairly static, creating a connector may not be valuable. The insights you created above using APIs and web scrapers fall into this category. While the terminology is not accurate, in SEMOSS these are called “Drag and Drop” insights, and it will become clear in the next section as to why.</p><h4>Drag And Drop Insights (DnD) a.k.a. Quick Insight</h4><p>Popularized by the modern self-service business intelligence software is the ability to create visualizations from xSV data (Excel, CSV, TSV, etc.). DnD insights do precisely that. Create a new insight by clicking on the new insight button and selecting the first option Excel / CSV / TSV. You can either navigate to your file or just drag and drop your xSV into the dotted area being highlighted. Your file is copied to the server from which SEMOSS will create visualizations. Confirm the data types for your data, import the data, and start creating visualizations with your data. Once you feel comfortable with a visualization you have created, you can save it and expose it as an insight. When the insight is executed, SEMOSS will reload this file from server (typically as a flat database) and rerun the recipe to create the insight.</p><p>As always, you can inspect the recipe by clicking on the console.</p><h4>Connected Insights</h4><p>These are recipes that utilize SEMOSS wide connectors to create insights. Creating connected insights may be slightly more involved than the DnD insights in that there are more choices for selecting the data.</p><p>To create this, “Select data from existing apps” and select the specific app you want to pull the data from. If this is a fresh installation, Movies and Actors are the two databases that will be visible. The steps below use the “Movies” database.</p><ol><li>This will show all the columns organized by their tables below. You can either select a particular column or the table to select all the columns in the table. In the screenshot, the studio is selected.</li><li>Upon selection it is listed in the selected columns, while displaying the other “related” databases, tables and columns on the available, defaulted to the current app’s database on the top drop-down. SEMOSS identifies relationships through the metamodel expressed through OWL. We will explain this in a later section. Essentially, the metamodel is part of a larger universal model (of all the databases) which is a graph. SEMOSS looks at related concepts as anything the current selected node is connected to in this universal model. This is just a graph traversal in SEMOSS.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mIQA_tXMMDc4N1DnduzQZQ.png" /><figcaption>The apps are the physical schema connected through a common ontology</figcaption></figure><blockquote>Many relations between the physical schema and logical schema (master ontology) are not being shown for the purposes of brevity. Please also note, the Wikipedia is shown as a sample and is not a connected database. This means you can hyperlink from wiki to other databases, but not vice versa. This is because when wiki is started, it is a (transient) database allowing hyperlinks.</blockquote><p>For Studio it shows the available columns as Title in the Movies database. If you would like to understand the entire model, click on the show metamodel on the top corner of the screen to learn the overall metamodel of the database.</p><h4>Joining across tables</h4><ol><li>The metamodel shows the selections you currently have made and also indicates the relationship studio has with other tables. In this case only title. Go ahead and “add” the studio on the metamodel by clicking on the green “+” sign. Note that you can also select individual properties if you choose, but before doing that you will need to select the table. You can select the title now and/or the properties from the metamodel or from the list. This will add title to the selected columns.</li><li>Selected list now shows studio and title on the selected list, with a venn diagram (2 circles) between them. The venn diagram indicates the type of join to perform. Click on it to change it.</li><li>This exhausts all the option in the database to link to from studio. To start navigating from Title, now select title. There are many more options that will show up. Such as the properties as well as the nodes. Select arbitrary set of nodes</li><li>The preview (table below) shows the columns selected as well some sample values.</li><li>Selections so far are from the same database as studio, i.e. Movies. To see what else is available, click the database drop-down on top of available and select the actor database. This is the hyperlinking of databases in action, based on a common node called “Title” that exists both in the movies database as well as the actors database.</li><li><strong>Federation Preview: </strong>Node selections on the actor node can be made much in the same fashion as it was made on the Movies database. SEMOSS will internally work out the join and create the appropriate grid.</li><li>Once sufficient selections have been made, inspect the preview pane to confirm and click import to start creating visualizations.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1T4CuawFvd4qMIwiALTm_g.gif" /></figure><h4>Detour 1 — Deleting a wrongly added column</h4><p>Given the nature of navigation, the deletion is performed in the reverse order of how it was added. For instance if you added Genre in error followed by Actor, actor will need to be removed followed by Genre. This is because of the join, i.e. the join between Title and genre may have resulted in a subset due to lack of genre for every title, but may not be valid for actor.</p><h4>Detour 2 — Adding a column with a different name</h4><p>What if there are 2 databases with same column, but called different names? This is where the custom traversal is useful. The traversal first requires user to input the target database to link to, and the equivalent target column to the selected source column. Once done, it allows joining other target columns to the source column seamlessly.</p><h4>Detour 3 — Non-deterministic matching, a.k.a Fuzzy Matching</h4><p>What is the source columns and target columns are not exact matches due to unclean data and naming conventions. Fuzzy matching can be useful to accomplish this. Part 2 of this article will address this feature.</p><h3>Conclusion</h3><p>An insight can get data either through ad hoc data-sources or through connected data. Immaterial of the scheme, the recipe is the one that is saved and managed by SEMOSS. The second part of the article will explain more in terms of the ontology and semantic web and address how non-deterministic blending works.</p><blockquote>Feedback, Comments, Suggestions, Improvements? Please contact us at <a href="http://www.semoss.org/">semoss.org</a>. Try it out at play.semoss.org.</blockquote><blockquote><strong>Why login?</strong></blockquote><blockquote>There are 2 reasons why a login is required:</blockquote><blockquote>1. There are many users using SEMOSS, and we need some way to identify you so that the right databases can be shown. Between the choice of creating a login/password and forcing to remember yet another password, SEMOSS chooses to use a social login. Right now Google and Github are available. Twitter, Facebook, etc. are coming soon.</blockquote><blockquote>2. You are working with YOUR data wherever it is. It could be Google Drive, Dropbox, etc. This is an integrated login to allow you to keep your data safe.</blockquote><blockquote><strong>What will you do with my login?</strong></blockquote><blockquote>We will show you apps and insights that you have created and are author or editor of.</blockquote><blockquote><strong>Can I use SEMOSS without logging in?</strong></blockquote><blockquote>Absolutely. Download at <a href="http://www.semoss.org/download">www.semoss.org/download</a> or docker run -p 80:8080 semoss/docker sh run.sh.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8d8f3c9edf8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing SEMOSS]]></title>
            <link>https://medium.com/@semossinfo/introducing-semoss-4f7a64f2bd2?source=rss-441f953de91------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f7a64f2bd2</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[semoss]]></category>
            <category><![CDATA[data-analytics]]></category>
            <dc:creator><![CDATA[SEMOSS Info]]></dc:creator>
            <pubDate>Fri, 26 Oct 2018 17:59:18 GMT</pubDate>
            <atom:updated>2018-10-26T19:14:03.350Z</atom:updated>
            <content:encoded><![CDATA[<p>SEMOSS stands for <strong>Sem</strong>antic <strong>O</strong>pen <strong>S</strong>ource <strong>S</strong>oftware. SEMOSS has enabled clients to perform every step of the data analytics life cycle within the same tool: Intake, Integration, Federation, Cleaning, Algorithms, and Visualizations. This eliminates the need for multiple systems and allows the organization to gain the holistic picture it needs to make data-driven decisions and accomplish their mission.</p><p>SEMOSS started as a visualization and analytics tool for RDF data (semantic web) and has evolved over the last couple of years into a general purpose data analytic platform and app engine. You can download the tool at <a href="http://www.semoss.org/download">www.semoss.org/download</a> or just run docker with docker run -p 80:8080 semoss/docker or simply go to play.semoss.org, login with any of your credentials, and start experimenting with it. Some of the key features of SEMOSS are:</p><ul><li>Bespoke database generation for xSV (CSV, TSV, Excel)</li><li>Connectors to RDBMS, Graph, R Datatable and RDF databases</li><li>Connectors to NoSQL databases with any declarative query language</li><li>Connectors to API with full support for OAuth2 — Google Drive, Google Sheets, Dropbox, Twitter, Google APIs</li><li>Blending across databases / hyperlinking data. Connect to multiple databases at the same time</li><li>Data preparation and analytics module integrated with visualization</li><li>Data and analytics versioning through Git (Integrated with GitHub)</li><li>A complete scriptable metalanguage to accommodate going across environments like R, Java, Python while translating it to appropriate query language on the fly like SQL vs. SPARQL vs. Gremlin vs. R Datatable vs. iGraph vs. Cypher</li><li>Cloud Ready for horizontal scalability</li><li>Create user input forms for data entry</li></ul><blockquote>Why is the download so big / docker image so big? We are combining multiple packages inside SEMOSS to make the install comprehensive. Like Java, Tomcat, R with various packages, database connectors for different databases among other things. Please bear with us as we optimize this. If you have ideas and suggestions, please contact us.</blockquote><p>While we will dive into each of these areas in the coming days, our intention with this article is to orient you with our lexicon that we use when working with SEMOSS.</p><p>Once you have started SEMOSS in any of the ways described, you can use any modern browser (chrome, firefox, edge) and point it to host:port. For the native platform install, the default host is 5355. For docker it is the port you specify. This presents you with the homepage along with the navigation bar on the left hand side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*znoSA4uVHnBKsHVnegx8Ow.png" /><figcaption>Homepage with 2 preloaded apps on SEMOSS</figcaption></figure><h3>App Homepage</h3><p>The homepage consists of folders called “<em>apps</em>”. <em>App is a construct for organizing your data or analytics for a purpose.</em> SEMOSS comes with one default app “Movies”. You can click into an app to access other details within the app. You can also customize the look and feel of the app including the icon that represents the app. Go ahead and click into the app. The next page you are seeing is the “app homepage”.</p><blockquote>Depending on your setup, the login page may appear. Default is without the login page. See Security section on userguide for more details</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ji-IUdFF9a41cdL7kGnN0Q.gif" /></figure><h4>Insights Tab</h4><p>The default view on the app home page is the insights tab. All of the small icons you are seeing on this page, are the <em>“insights”. (Typically) Insight is a visualization of your data along with the transformations you applied to the data as a series of steps and the order.</em> There are 3 flavors of insights in SEMOSS:</p><ul><li>Single Insight</li><li>Multi Insight — Dashboards, Mashups, Reports</li><li>User Input Insight — Web Form that allows the user to update or create new data (more on this later)</li></ul><p>When you click an insight, it replays the step you took to create this insight while using the current data. If you are working with a fast changing database, and you want to see updates every time you load an insight without the need to create custom extracts, this is useful.</p><h4>Data Tab</h4><p>The Data tab shows the structure of the data. You could think of it as the entity relationship diagram, however this is the logical data model (a.k.a. the metamodel and not the physical). SEMOSS utilizes semantic web at its core. This means that every type of database is exposed to SEMOSS through ontology (one or more). The ontology is expressed as an OWL file. You can click on various entities shown here to understand a sampling of how the data looks. Go ahead click on some of these nodes and see what values exist.</p><h4>Collaboration Tab</h4><p>This is used to version and share your database with others. You will need to sign into GitHub to perform this sharing through GitHub. Once you sign in, you can push your entire database into a new repository as well as synchronize your data.</p><h4>Scheduler Tab</h4><p>Often times it may be required for users to get a report every morning or every night or some pre-fixed time. The scheduler can be used to create these jobs that will run at the designated time to create these reports and mail them / post them in specific content management systems for consumption.</p><h4>Settings Tab</h4><p>Used to manage this app, the settings can be used for deleting / generating new images for any insight. On the bottom you can also see options to delete the app. Deleting the app will completely remove the app along with the data and all other insights.</p><h3>Working with an insight</h3><p>Go ahead and click on the insights which says <em>“Total Revenue split by Genre”</em>and looks like a pie chart. This will launch a <em>new “sheet”</em> and load the insight as a <em>“panel”</em>. <em>Panel is a floatable component which loads the visualization and sheet is a way to organize the panels. Sheet is just a multi-insight.</em> Depending on how your insight is composed, there can be one or more panels on the sheet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eaNnpGhyIZteTb2ePj-qfQ.gif" /><figcaption>Opening Pie-Chart from App Home Page</figcaption></figure><p>While the visualization is loaded as a pie chart <em>“widget”. Widgets are fully wrapped functionality or routine exposed within SEMOSS that gets executed when clicked</em>.</p><p>You can modify this visualization into something different by using the plethora of visualizations existing in SEMOSS. To do this, click on the menu on the right hand side (defaulted to panel tab). This will pop open a visualization palette with pie chart selected (your current visualization). Right below the types of visualizations, you see the dimensions available and selected for the specified visualization. (When your dimension to measure is one to many — i.e. many movies for a given genre and therefore many movie budgets for a given genre — SEMOSS will attempt to group / auto-summarize (default: average) the data based on the dimension. You can change the summarization type by clicking on the measure dropdown — <em>see an example of this in the create your insight section.</em>) To modify, simply click a different visualization and select alternate dimensions by dragging and dropping the dimension in the specified box. Change it to bar chart. When you do, it automatically assumes the same dimensions from pie chart which you can change. Go ahead try a few more charts. If you like a particular one, go ahead and save this panel by clicking the save icon and giving it a different name which saves <em>“panel recipe”. Recipe is the list of steps you took to create this visualization</em>. Yes, you can view it by clicking the console. The recipe includes not just the action you took, but also other actions that were taken to create this visualization in the first place i.e the visualization you clicked to start the process. You can access your saved insight either by using the search (on top bar) or by clicking the app homepage and clicking the insight you just created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4yEC1h9P-1rKhwhtLHIdIw.png" /><figcaption>Parts of an insight</figcaption></figure><p>You can also add ornaments like to your visualization, by clicking on the additional tools. The additional tools changes based on the type of chart selected. For instance if you are in a pie chart, you could change the color scheme, rose type pie chart, adjust number of things to show, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I2LTgxRKwkNDLi77P0uaNQ.gif" /><figcaption>Applying Ornaments to Pie Charts</figcaption></figure><p>For a list of visualizations and the additional tools click <a href="http://semoss.org/userguide/#/PanelMenu/VisualizationTypes">here</a> — semoss.org/userguide/#/PanelMenu/VisualizationTypes.</p><p>You are not limited to one panel, you can have many. To add more panels, you can either create a new insight (add new insight) or just clone this insight (clone). Just as the name says cloning creates 2 insights connected to the same data and therefore connected visualizations. For instance, filtering on one visualization will affect what is shown on the other. To clone the panel, click on the sitting next to the maximize and remove icon on the top bar of the panel. This creates 2 identical bar chart. To filter on one, simply brush into the chart by clicking anywhere in the chart area and dragging. This will (potentially) highlight a few of the bars, release to indicate these are the bars you are selecting. Both visualizations will update to this selection. To unfilter, simply click in an open chart area or brush into whitespace and you are back to where you were. Modify one of these visualizations to a pie chart, by clicking the pie chart from the visualization menu. Do the same brush action and see what happens. This is one way to create dashboards. Try to clone again and change the visualization to a grid. See the effect of brush, you can now see a master detail screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zRvLwFGNKojhFhGQz7sVHQ.png" /></figure><p>Try the additional tools on the bar chart. You can see ornaments for trend-line, max-min, average, X-axis filter, and Y-axis filter.</p><h3>Working with Sheet</h3><p>Switching the menu from panel to the sheet tab allows controls for the panel organization on this sheet. You can organize the sheets in 2 ways, by either clicking the number of panels you want in the lower half or by clicking a ready-made template available. The only difference is the first one gives you equally sized panels and the template gives you (we think) aesthetically better organization. Clicking on the same template again will cycle the panels in different positions. If you like a particular template, go ahead and save this sheet. Unlike the panel, when you save the sheet, you are saving the organization of these panels in this specific format to be launched again. Note that as part of the sheet save, we also save the panels in their current state. If you did not save your panels, then the sheet will save along with the panels, this is useful so you don’t need to save the panels separately.</p><h3>Creating a new insight</h3><p>In working with the insight, the data was already pre-selected, and you were transforming the data to create new visualizations. Creating a new insight is then just allowing you to select data you want to work with and then creating visualizations from it. You can locate the new insight on the of the app home page towards the right. The output gives you options for selecting specific data. We will describe this more in our next article. For a simple app with a flat structure, the new insight will select all of your data and land you into the visualization palette with grid visualization selected — i.e. the same place where it landed when you clicked on a visualization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tuhftcy_5NAZZAoJxJcd0Q.gif" /><figcaption>Creating a new insight from the Movie Database</figcaption></figure><h3>Working with *your* data</h3><p>To do this, click on the new insight on navigation. You will immediately notice a different UI. When you are in an app, the data you select is from that specific app so SEMOSS pre-selects your choices for you. Here, you can choose where to pull your data from. You could drag and drop a CSV / excel, specify how you would like SEMOSS to interpret your columns, and land in the visualization panel. You could also connect to an existing database from the list and use SQL to select what you want to visualize.</p><p>When you drag and drop the insight, SEMOSS requests confirmation on the type of columns, before importing and making it fully available for visual exploration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-C6lKYbFrxDtlpp_wXF09g.gif" /><figcaption>Creating an insight by dragging and dropping a CSV file</figcaption></figure><h3>Conclusion</h3><p>While we spoke about the visualization menu extensively, we did not talk about the analytics or the clean menu so far. If you are curious to find out what they are, please go ahead and try the clean menu and the analytics to see the various widgets and routines available. For clean and analytics, SEMOSS depends on a variety of external packages like R.</p><blockquote>Feedback, Comments, Suggestions, Improvements? Please contact us at <a href="http://www.semoss.org/">s</a>emoss.org. Try it out at play.semoss.org.</blockquote><blockquote><strong>Why login?</strong></blockquote><blockquote>There are 2 reasons why a login is required:</blockquote><blockquote>1. There are many users using SEMOSS, and we need some way to identify you so that the right databases can be shown. Between the choice of creating a login/password and forcing to remember yet another password, SEMOSS chooses to use a social login. Right now Google and Github are available. Twitter, Facebook, etc. are coming soon.</blockquote><blockquote>2. You are working with YOUR data wherever it is. It could be Google Drive, Dropbox, etc. This is an integrated login to allow you to keep your data safe.</blockquote><blockquote><strong>What will you do with my login?</strong></blockquote><blockquote>We will show you apps and insights that you have created and are author or editor of.</blockquote><blockquote><strong>Can I use SEMOSS without logging in?</strong></blockquote><blockquote>Absolutely. Download at <a href="http://www.semoss.org/download">www.semoss.org/download</a> or docker run -p 80:8080 semoss/docker sh run.sh.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f7a64f2bd2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Business Intelligence to Analytics]]></title>
            <link>https://medium.com/@semossinfo/from-business-intelligence-to-analytics-79527f8d2c2c?source=rss-441f953de91------2</link>
            <guid isPermaLink="false">https://medium.com/p/79527f8d2c2c</guid>
            <category><![CDATA[semoss]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[SEMOSS Info]]></dc:creator>
            <pubDate>Fri, 26 Oct 2018 16:25:21 GMT</pubDate>
            <atom:updated>2018-10-26T16:25:21.020Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*Gcbhwrs3_3PXM4SSX0QUlA.png" /></figure><p>Business Intelligence (BI) today is not just about the business anymore; it is about individual intelligence that can help us make day-to-day decisions. The shift started with the concept of self-service analytics as it was introduced in 2010. Notice the distinct change in vocabulary where we <strong>stopped using “intelligence” (to understand) and started using “analytics” (to unloosen)</strong>. Where once it was about data-warehouses, data-marts, and reports, it is now quickly catalyzing into faster information aggregation and optimal knowledge required to amplify intelligence. Where once roles like business intelligence professionals were around formatting and generating reports using a single BI tool, it is now evolving into data scientists who use polyglot technologies. Lastly, where once the lexicon included words like report generation, canned reports, and ad hoc reports, it is now morphing into exploratory data analysis and machine learning.</p><p>The intention here is to purely examine some of the key drivers for this change as we are evolving into Web X.0. Throughout, we will share how required features to support this change are advancing as highlighted in italics.</p><h3><strong>Presentation Layer: The Hyper Text <em>(or is it really?)</em></strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*uTN1X7oSCIdl1sv84jqa0w.png" /></figure><p>The concept of a web page started as simple static content that could be hyperlinked with another web page (duh!). It uses Hypertext Markup Language (HTML), and with the introduction of JavaScript came the dynamic hypertext (if you haven’t already, check out <a href="https://www.youtube.com/watch?v=eyuvlr9OPfI">this fascinating talk by Steve Jobs</a> — <a href="https://www.youtube.com/watch?v=eyuvlr9OPfI">https://www.youtube.com/watch?v=eyuvlr9OPfI</a> — about the need to expand the capability of the browser). Then came the server side dynamic hypertext, and just like that the whole concept of application servers and e-commerce was born. Next, we figured out DOM (and virtual DOM). Then we realized that we could pass just the data and let the browser make the HTML (XHR). So now the dynamic pages are (yep, you guessed it) just JSON. Obviously the story doesn’t stop here but proceeds into GraphQL and Falcor, and then it makes a turn into JavaScript back on server (node).</p><blockquote><strong>Bottom line: The view layer is now really a data layer. We might as well start calling it hyper-data instead of hyper-text (metaphorically), because that is what it is.</strong></blockquote><blockquote>Feature 1 (Server): A server that can provide JSON through some kind of (loosely speaking) REST API so as to construct the UI on the fly.</blockquote><blockquote>Feature 2 (Client): Bootstrap style components with data binding that can be used to construct custom user interfaces with any custom branding.</blockquote><blockquote>Feature 3 (Client): Ability to embed visualizations into other mediums such as blogs, websites, and CMS.</blockquote><h3><strong>Middleware: The Business Logic <em>(or is it really analytics?)</em> — Optional for Business Intelligence, Mandatory for Data Science</strong></h3><p>This started when cgi-bin executing jobs moved on to full application servers. From vertical we went into horizontal scaling with distributed compute (CORBA, DCOM, IIOP, RMI, RMI-IIOP — yeah, remember that?) and then into ESB and SOA (yup, I had to say it). This is just a glorious way to say we first modularized the logic, then we modularized the modularized logic to run across machines, and then we modularized the modularized logic running across machines even further with micro-services. For those who remember, EJB Home and Remote Beans were very popular. Every application had to think and consider, <em>“Do they want a symmetric cluster or an asymmetric cluster?”</em> Then some apps realized, <em>“Maybe all of this is not needed.” </em>All they needed was a simple server which would do the CRUD operation with minimal to no business logic.<em> </em>The transactional processing wave slowly shifted into analytics and the distributed compute slowly shifted into distributed data (Big Data), changing everything from where we bring the data to the query (Map Reduce) to where we bring the query to the data (RDBMS). <a href="https://www.youtube.com/watch?v=KRcecxdGxvQ">Here is Michael Stonebraker’s amazing talk on Big Data.</a></p><p>As more and more need for analytics has emerged, tools such as R, Python, and Julia have become the analytic environments of choice. There is, however, a gap between data management (querying data) vs. data science. Currently, the browser goes out the (main) window and with multiple applications open, you follow the flow outlined below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*6uviSHYRLLIxq1O6UuSR_w.png" /></figure><p>Clearly, this is an incredibly tedious process. It is a highly error prone, opaque (no recorded lineage), non-scalable, non-reusable, and non-repeatable process. <a href="https://medium.com/airbnb-engineering/scaling-knowledge-at-airbnb-875d73eff091">Here is a great article on scaling knowledge written by the guys from AirBnB.</a> Let me describe this a little more in features.</p><blockquote>Feature 1: Environment should be accessible through a unified interface for accessing the different analytic environments. <em>I don’t expect everyone to download and install all of the tools used by data scientists.</em></blockquote><blockquote>Feature 2: Ability to save and pull scripts, whether it be yours or a team member’s, through an asset library. <em>No, not copy-paste software as a service. I want to reuse.</em></blockquote><blockquote>Feature 3: Ability to record actions that can be replayed to produce the result, allowing for transparency, lineage, and provenance of data, rather than an opaque snapshot picture. <em>I don’t want disconnected subsets.</em></blockquote><blockquote>Feature 4: Clean analytics DevOps where scientists could model the actual result and decisions quickly.</blockquote><h3><strong>Data: Databases (maybe data source?)</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*DiW-O36BH31pD4XXa6pTdw.png" /></figure><p>There are two trends to point out here.</p><p><strong>1. Any Data:</strong> Historically the transactional data has always been summarized into data-warehouses and data-marts that are then utilized by the BI Engine for analysis. The process involved ETL, setting up what slice needs to be analyzed, and moving those specific slices into the data-mart for analyses. With the need for speed, the industry tried to go closer and closer to transactional data. Initially it was CSV and Excel pulls from the summarized data, then pulls from the summarized data and raw data, then pulls from the raw data or a copy of it (data-lake), and finally we got to the point where we said, “Oh, we could grab the data on its way to the database” through streaming (KSQL). Along with answering each of these questions, we just moved from ANSI-SQL for database management to a metaphorical SQL with custom functions (UDFs) to many more querying languages such as SPARQL (RDF), Gremlin (Graph Databases Roughly), and Cypher. Just as hyper-text has become hyper-data, API has also become a data-source that adds another layer of complexity to this landscape. No longer can just one language suffice and, while there are engines that translate SQL to other languages, there is a fundamental difference in how the query is done. In addition, using SQL would mean sacrificing significant speed in lieu of using the underlying API (for example, SQL on data.table on R).</p><blockquote>Feature 1: Support not just SQL but also almost any other query language. <em>Please note that this is not just querying, but also representing the data for processing. For instance, you could do SPARQL select as an equivalent of SQL but not SPARQL construct which fetches a full graph with loops and named relationships.</em></blockquote><blockquote>Feature 2: API hooks to treat APIs as data sources.</blockquote><p><strong>2. Linking Data:</strong> If pulling data is one portion of the equation, finding where to pull this data from is the second. Earlier generation databases had interesting names for columns, relationships, and tables (i.e. missing vowels, FRST_NM ?, _pk, _fk). The data dictionary helped explain what the fields were (when they existed, were maintained, and were synchronized with updates to the database). As the types of database rapidly proliferated, the data-dictionaries became far and few and with it was born the external cataloging systems (WhereHows, Atlas) that would help keep track of what these fields (metadata, not master data) meant. As we figured out (specified, not imputed) what these fields meant, we started another effort to de-duplicate the data for the purposes of analysis (master data management). This essentially left data scientists with three (or four) systems to work with (i.e. the physical data model, the catalog that links the logical and conceptual to the physical model, the analytic environment where the blending happens, and optionally the visualization system).</p><blockquote>Feature 3: Integrated cataloging with the ability to automatically find interesting data based on the data you are currently looking at.</blockquote><blockquote>Feature 4: Automated querying of the physical database and blending based on logical model selection.</blockquote><blockquote>Feature 5: Ability to blend your personal ad hoc data with the enterprise data without creating a disconnected subset of the enterprise data.</blockquote><h3><strong>Collaboration</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*AZbzvp6zJvKVg5y8WZYrLg.png" /></figure><p>A huge missing aspect of business intelligence and data science in general is the need for collaboration. We don’t mean a collaborative suite with all the bells and whistles, but rather the simple ability to comment on an output. One of the primary reasons why we go to websites like Hacker News and Medium is to get fantastic opinions from a highly diverse audience. This makes sure that your output is not just limited to interpretation by you or the requestor, but that it can also benefit from other experts in your network (compliant with security). This aspect is seriously missing in the platforms today. It is almost like we need a deeper social media for the knowledge economy. We are not just talking about passive engagement in terms of only adding comments, but active engagement in terms of pointing to other data and other outputs that you can learn from.</p><blockquote>Feature 1: Ability to chat, modify, and comment on a work product</blockquote><blockquote>Feature 2: Make your app or project portable so that it can be shared, reproduced, and built upon through a team</blockquote><h3><strong>Data-Apps</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*Ch-v0djkj2HnRShdbVnc_A.png" /></figure><p>We started the conversation with Business Intelligence and wrote about how the advancement in various technologies are evolving from Business Intelligence to personal intelligence and ad hoc analysis. It almost feels like Business Intelligence won’t just be a server side centralized deployment but it will also become an office automation tool like Microsoft Word or Excel. Instead of editing office documents, we will be editing and sharing analytic documents. As we transcend the HTML into a HDML (Hyper Data Markup Language), these platforms will become the de facto for browsing data. Once we were creating web-apps, and now we will be creating data-apps.</p><blockquote><strong>The question is: “Do we have an equivalent of web-server/app-server by the way of a data-server?”</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79527f8d2c2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>