SlideShare a Scribd company logo
1 of 29
Download to read offline
VISUALIZATIONS WITH
    SPARQL AND
     VISUALBOX
      Alvaro Graves
      @alvarograves
      gravea@rpi.edu
MOTIVATION
Linked Data brings tons of multidimensional data that
is easy(*) to query
However, having to make use of all that data we still
need to being able to process it (as humans)
One good way to make sense of this data is by using
visualizations


                                       (*) Once you learn SPARQL
EXAMPLE

                                                                               versus




Images: Few, Stephen (2010): Data Visualization for Human Perception. In: Soegaard, Mads and Dam, Rikke Friis (eds.). "Encyclopedia of Human-Computer Interaction". Aarhus, Denmark:
                The Interaction Design Foundation. Available online at http://www.interaction-design.org/encyclopedia/data_visualization_for_human_perception.html
VISUALBOX
Based on LODSPeaKr
Make use of new and already existing visualization
filters
Creating of visualization via new GUI
Principle: Good data representation leads to good/easy
data manipulation
  Corolary: Effort should be focused on obtaining the
  right data
VISUALBOX
MODELS (SPARQL QUERY)
 Using the SELECT query form will return a table, similar
                       to SQL.
main.query


        PREFIX foaf: <http://xmlns.com/foaf/0.1/>

        SELECT ?person1 ?person2 WHERE{
          ?person1 foaf:knows ?person2 .
        }




    person1                                         person2
    http://example.org/john                         http://example.org/paul
    http://example.org/john                         http://example.org/ringo
    http://example.org/george                       http://example.org/paul
VIEWS (TEMPLATES)
                We can decide how to operate with the data.
html.template

<ul>
{{for row in models.main}}
 <li>{{row.person1.value}} knows {{row.person2.value}}</li>
{{endfor}}
</ul>

output



  http://example.org/john knows http://example.org/paul




  http://example.org/john knows http://example.org/ringo




  http://example.org/george knows http://example.org/paul
FILTERS
                   It is possible to apply filters to the data.
Template


{{for row in models.main}}
  {{row.person1.value|upper}}
{{endfor}}


Output

HTTP://EXAMPLE.ORG/JOHN
HTTP://EXAMPLE.ORG/JOHN
HTTP://EXAMPLE.ORG/GEORGE
VISUALIZATION FILTERS
   It is possible to apply visualization filters directly to all
    the results. These filters will generate the necessary
                 code to create a visualization
Model (main.query)

PREFIX cat: <http://dbpedia.org/resource/Category:>

SELECT ?countryLabel (COUNT(?nobel) as ?total) WHERE {
 ?nobel dcterms:subject cat:Nobel_laureates_in_Physics;
        a foaf:Person;
        dbp:placeOfBirth ?country .

 ?country a schema:Country ;
          rdfs:label ?countryLabel
          FILTER(LANG(?countryLabel) = "en")
}GROUP BY ?country ?countryLabel
ORDER BY DESC(?total)
LIMIT 100
countryLabel      total
United States     23
Germany           14
England           9
Japan             6
Austria-Hungary   5
France            5
Netherlands       4
German Empire     3
Soviet Union      3
United Kingdom    3
Italy             3
View (html.template)

<body>
   <h2>Total of Nobel laureates in Physics by country</h2>
   {{models.main|GoogleVizPieChart:"countryLabel,total"}}
</body>
TABULAR DATA
         Easiest case: consider table-based visualizations.
View (html.template)

{{models.main|GoogleVizColumnChart:"countryLabel,total"}}
View (html.template)

{{models.main|GoogleVizBarChart:"countryLabel,total"}}
View (html.template)

{{models.main|GoogleVizLineChart:"countryLabel,total"}}
MAPS
 Represent data as latitude, longitude and label


SELECT DISTINCT ?city SAMPLE(?lat) AS ?latitude SAMPLE(?long) AS ?longitude ?area WHERE{
 ?city a sch:City ;
       <http://dbpedia.org/ontology/country> <http://dbpedia.org/resource/United_States> ;
       geo:lat ?lat ;
       geo:long ?long;
       dbp:areaTotalKm ?area .

}GROUP BY ?city ?area
ORDER BY DESC(?area)
LIMIT 10
latitude longitude area
45.4983 -91.7389 25.0
30.3167 -81.6667 2292
45.9989 -112.53 1868
View (html.template)

{{models.main|GoogleMaps:"latitude,longitude,area,width=800"}}
PARALLEL COORDINATES
Query

SELECT ?carLabel ?wheelbase ?carWidth ?carLength ?transmission WHERE {
 ?car dcterms:subject <http://dbpedia.org/resource/Category:Lamborghini_vehicles>;
      <http://dbpedia.org/ontology/Automobile/wheelbase> ?wheelbase;
      <http://dbpedia.org/ontology/MeanOfTransportation/height> ?carWidth;
      <http://dbpedia.org/ontology/MeanOfTransportation/length> ?carLength;
      <http://dbpedia.org/property/transmission> ?transmission;
      rdfs:label ?carLabel.
  FILTER(LANG(?carLabel) = "en")
}
PARALLEL COORDINATES
           carLabel                           wheelbase carWidth carLength transmission
           Lamborghini Aventador 2700.0                        1136.0          4780.0        7
           Lamborghini Reventón 2665.0                         1135.0          4700.0        6
           Lamborghini 400GT                  2550.0           1257.0          4470.0        5
Template


{{models.main|D3ParallelCoordinates:"carLabel,wheelbase,carWidth,carLength,transmission"}}
PARALLEL COORDINATES
GRAPHS
              Question: How to express a graph in a table?
                  Answer: Table child → parent
Model (main.query)

SELECT ?person1 ?person2 WHERE{
  ?person1 foaf:knows ?person2 .
}



                                   person1           person2
                                   Elizabeth Engstrom Ray Bradbury
                                   Neil Gaiman       Robert A. Heinlein
                                   Neil Gaiman       Ray Bradbury
View (html.template)

  {{models.main|D3ForceGraph:"person1,person2"}}
TREE STRUCTURES
Problem: How do we retrieve a tree as a table?
Solution (so far): Table child,parent with one row with no
parent (root)
         child                          parent                      area

         Averill Park, New York         Rensselaer County, New York 8.02896e+06

         Sand Lake, New York            Rensselaer County, New York 9.36e+07

         Schaghticoke (town), New York Rensselaer County, New York 1.3442e+08

         Poestenkill (town), New York   Rensselaer County, New York 8.44336e+07

         Schaghticoke (village), New York Rensselaer County, New York 2.33099e+06

         Rensselaer County, New York
TREE STRUCTURES
Query

PREFIX d: <http://dbpedia.org/ontology/>
SELECT max(?regionLabel) as ?child max(?superregionLabel) as ?parent (max(?totalArea) as ?area) WHERE{
  {
  ?region d:isPartOf <http://dbpedia.org/resource/Rensselaer_County,_New_York>;
     d:areaTotal ?totalArea ;
     rdfs:label ?regionLabel;
     d:isPartOf ?superregion .
    ?superregion rdfs:label ?superregionLabel.
    FILTER(?superregion = <http://dbpedia.org/resource/Rensselaer_County,_New_York>)
    FILTER(lang(?superregionLabel) = "en")
  }UNION{
    ?region rdfs:label ?regionLabel .
    FILTER(?region = <http://dbpedia.org/resource/Rensselaer_County,_New_York>)
  }
FILTER(lang(?regionLabel) = "en")
}GROUP BY ?regionLabel ?superregionLabel


Template

{{models.main|D3CirclePacking:"child,parent,area"}}
TREE STRUCTURES (2)
Query (neruda.query)

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dbp:       <http://dbpedia.org/ontology/>
PREFIX d: <http://dbpedia.org/resource/>
SELECT DISTINCT ?child ?parent WHERE{
    {
        ?childNode dbp:influencedBy ?mid ;
                    rdfs:label ?child .
        ?mid dbp:influencedBy ?parentNode;
              rdfs:label ?parent .
        FILTER(LANG(?parent) = "en" && ?parentNode = d:Pablo_Neruda)
    }UNION{
        ?childNode dbp:influencedBy d:Pablo_Neruda;
                    dbp:influencedBy ?parentNode;
                    rdfs:label ?child .
        ?parentNode rdfs:label ?parent .
        FILTER(LANG(?parent) = "en" && ?parentNode = d:Pablo_Neruda)
    }UNION{
        d:Pablo_Neruda rdfs:label ?child
    }
    FILTER(LANG(?child) = "en")
}
child              parent

                                        Pablo Neruda

                                        Dane Zajc          Pablo Neruda

                                        Gary Soto          Pablo Neruda

                                        James Tate (writer) Pablo Neruda

                                        Richard Aitson     Pablo Neruda

                                        Erin Siegal        Pablo Neruda

                                        Jože Snoj          Dane Zajc

                                        Rudi Šeligo        Dane Zajc

                                        Veno Taufer        Dane Zajc

                                        Rigoberto González Gary Soto

                                        Thomas Lux         James Tate (writer)

html.template

{{models.main|D3Dendrogram:"child,parent"}}
TREE STRUCTURES (2)
NOW YOU CREATE YOUR OWN
            VISUALIZATION
Use data that is of interest for you
Describe to tell a story or support a statement
Give me feedback on how does visualbox works for
you

More Related Content

Viewers also liked

Datos malos, robots tristes
Datos malos, robots tristesDatos malos, robots tristes
Datos malos, robots tristesAlvaro Graves
 
Towards a better understanding of Social Machines
Towards a better understanding of Social MachinesTowards a better understanding of Social Machines
Towards a better understanding of Social MachinesAlvaro Graves
 
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKrPublishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKrAlvaro Graves
 
Integrating and publishing public safety data using semantic technologies
Integrating and publishing public safety data using semantic technologiesIntegrating and publishing public safety data using semantic technologies
Integrating and publishing public safety data using semantic technologiesAlvaro Graves
 
Como crear aplicaciones basadas en linked data usando lods pea kr
Como crear aplicaciones basadas en linked data usando lods pea krComo crear aplicaciones basadas en linked data usando lods pea kr
Como crear aplicaciones basadas en linked data usando lods pea krAlvaro Graves
 
Creating visualizations using Linked Data
Creating visualizations using Linked DataCreating visualizations using Linked Data
Creating visualizations using Linked DataAlvaro Graves
 
Querying Linked Data on Android
Querying Linked Data on AndroidQuerying Linked Data on Android
Querying Linked Data on AndroidEUCLID project
 

Viewers also liked (8)

Datos malos, robots tristes
Datos malos, robots tristesDatos malos, robots tristes
Datos malos, robots tristes
 
Data Tuesday
Data TuesdayData Tuesday
Data Tuesday
 
Towards a better understanding of Social Machines
Towards a better understanding of Social MachinesTowards a better understanding of Social Machines
Towards a better understanding of Social Machines
 
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKrPublishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
 
Integrating and publishing public safety data using semantic technologies
Integrating and publishing public safety data using semantic technologiesIntegrating and publishing public safety data using semantic technologies
Integrating and publishing public safety data using semantic technologies
 
Como crear aplicaciones basadas en linked data usando lods pea kr
Como crear aplicaciones basadas en linked data usando lods pea krComo crear aplicaciones basadas en linked data usando lods pea kr
Como crear aplicaciones basadas en linked data usando lods pea kr
 
Creating visualizations using Linked Data
Creating visualizations using Linked DataCreating visualizations using Linked Data
Creating visualizations using Linked Data
 
Querying Linked Data on Android
Querying Linked Data on AndroidQuerying Linked Data on Android
Querying Linked Data on Android
 

Similar to Visualizations using Visualbox

Dachis group pigout_101
Dachis group pigout_101Dachis group pigout_101
Dachis group pigout_101ktsafford
 
Visualize open data with Plone - eea.daviz PLOG 2013
Visualize open data with Plone - eea.daviz PLOG 2013Visualize open data with Plone - eea.daviz PLOG 2013
Visualize open data with Plone - eea.daviz PLOG 2013Antonio De Marinis
 
3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB
3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB
3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DBAthens Big Data
 
A Little SPARQL in your Analytics
A Little SPARQL in your AnalyticsA Little SPARQL in your Analytics
A Little SPARQL in your AnalyticsDr. Neil Brittliff
 
Planning with Polyalgebra: Bringing Together Relational, Complex and Machine ...
Planning with Polyalgebra: Bringing Together Relational, Complex and Machine ...Planning with Polyalgebra: Bringing Together Relational, Complex and Machine ...
Planning with Polyalgebra: Bringing Together Relational, Complex and Machine ...Julian Hyde
 
Linked Data in Learning Analytics Tools
Linked Data in Learning Analytics ToolsLinked Data in Learning Analytics Tools
Linked Data in Learning Analytics ToolsMathieu d'Aquin
 
Tips And Tricks For Bioinformatics Software Engineering
Tips And Tricks For Bioinformatics Software EngineeringTips And Tricks For Bioinformatics Software Engineering
Tips And Tricks For Bioinformatics Software Engineeringjtdudley
 
OMG! My metadata is as fresh as the Backstreet Boys: How Google Refine can up...
OMG! My metadata is as fresh as the Backstreet Boys: How Google Refine can up...OMG! My metadata is as fresh as the Backstreet Boys: How Google Refine can up...
OMG! My metadata is as fresh as the Backstreet Boys: How Google Refine can up...Sarah Weeks
 
Transformations and actions a visual guide training
Transformations and actions a visual guide trainingTransformations and actions a visual guide training
Transformations and actions a visual guide trainingSpark Summit
 
Querying your database in natural language by Daniel Moisset PyData SV 2014
Querying your database in natural language by Daniel Moisset PyData SV 2014Querying your database in natural language by Daniel Moisset PyData SV 2014
Querying your database in natural language by Daniel Moisset PyData SV 2014PyData
 
ACADILD:: HADOOP LESSON
ACADILD:: HADOOP LESSON ACADILD:: HADOOP LESSON
ACADILD:: HADOOP LESSON Padma shree. T
 
Session 1.5 supporting virtual integration of linked data with just-in-time...
Session 1.5   supporting virtual integration of linked data with just-in-time...Session 1.5   supporting virtual integration of linked data with just-in-time...
Session 1.5 supporting virtual integration of linked data with just-in-time...semanticsconference
 
Hadoop Summit EU 2014
Hadoop Summit EU   2014Hadoop Summit EU   2014
Hadoop Summit EU 2014cwensel
 
Pig - Analyzing data sets
Pig - Analyzing data setsPig - Analyzing data sets
Pig - Analyzing data setsCreditas
 
Scala Meetup Hamburg - Spark
Scala Meetup Hamburg - SparkScala Meetup Hamburg - Spark
Scala Meetup Hamburg - SparkIvan Morozov
 
Intro to Spark and Spark SQL
Intro to Spark and Spark SQLIntro to Spark and Spark SQL
Intro to Spark and Spark SQLjeykottalam
 
Beyond shuffling - Strata London 2016
Beyond shuffling - Strata London 2016Beyond shuffling - Strata London 2016
Beyond shuffling - Strata London 2016Holden Karau
 

Similar to Visualizations using Visualbox (20)

AnzoGraph DB - SPARQL 101
AnzoGraph DB - SPARQL 101AnzoGraph DB - SPARQL 101
AnzoGraph DB - SPARQL 101
 
Dachis group pigout_101
Dachis group pigout_101Dachis group pigout_101
Dachis group pigout_101
 
Visualize open data with Plone - eea.daviz PLOG 2013
Visualize open data with Plone - eea.daviz PLOG 2013Visualize open data with Plone - eea.daviz PLOG 2013
Visualize open data with Plone - eea.daviz PLOG 2013
 
3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB
3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB
3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB
 
A Little SPARQL in your Analytics
A Little SPARQL in your AnalyticsA Little SPARQL in your Analytics
A Little SPARQL in your Analytics
 
Planning with Polyalgebra: Bringing Together Relational, Complex and Machine ...
Planning with Polyalgebra: Bringing Together Relational, Complex and Machine ...Planning with Polyalgebra: Bringing Together Relational, Complex and Machine ...
Planning with Polyalgebra: Bringing Together Relational, Complex and Machine ...
 
Polyalgebra
PolyalgebraPolyalgebra
Polyalgebra
 
Linked Data in Learning Analytics Tools
Linked Data in Learning Analytics ToolsLinked Data in Learning Analytics Tools
Linked Data in Learning Analytics Tools
 
Tips And Tricks For Bioinformatics Software Engineering
Tips And Tricks For Bioinformatics Software EngineeringTips And Tricks For Bioinformatics Software Engineering
Tips And Tricks For Bioinformatics Software Engineering
 
OMG! My metadata is as fresh as the Backstreet Boys: How Google Refine can up...
OMG! My metadata is as fresh as the Backstreet Boys: How Google Refine can up...OMG! My metadata is as fresh as the Backstreet Boys: How Google Refine can up...
OMG! My metadata is as fresh as the Backstreet Boys: How Google Refine can up...
 
Transformations and actions a visual guide training
Transformations and actions a visual guide trainingTransformations and actions a visual guide training
Transformations and actions a visual guide training
 
Querying your database in natural language by Daniel Moisset PyData SV 2014
Querying your database in natural language by Daniel Moisset PyData SV 2014Querying your database in natural language by Daniel Moisset PyData SV 2014
Querying your database in natural language by Daniel Moisset PyData SV 2014
 
Quepy
QuepyQuepy
Quepy
 
ACADILD:: HADOOP LESSON
ACADILD:: HADOOP LESSON ACADILD:: HADOOP LESSON
ACADILD:: HADOOP LESSON
 
Session 1.5 supporting virtual integration of linked data with just-in-time...
Session 1.5   supporting virtual integration of linked data with just-in-time...Session 1.5   supporting virtual integration of linked data with just-in-time...
Session 1.5 supporting virtual integration of linked data with just-in-time...
 
Hadoop Summit EU 2014
Hadoop Summit EU   2014Hadoop Summit EU   2014
Hadoop Summit EU 2014
 
Pig - Analyzing data sets
Pig - Analyzing data setsPig - Analyzing data sets
Pig - Analyzing data sets
 
Scala Meetup Hamburg - Spark
Scala Meetup Hamburg - SparkScala Meetup Hamburg - Spark
Scala Meetup Hamburg - Spark
 
Intro to Spark and Spark SQL
Intro to Spark and Spark SQLIntro to Spark and Spark SQL
Intro to Spark and Spark SQL
 
Beyond shuffling - Strata London 2016
Beyond shuffling - Strata London 2016Beyond shuffling - Strata London 2016
Beyond shuffling - Strata London 2016
 

More from Alvaro Graves

Democratizing Open Data
Democratizing Open DataDemocratizing Open Data
Democratizing Open DataAlvaro Graves
 
Explotando la Web de Datos: Como crear aplicaciones usando Linked Open Data
Explotando la Web de Datos: Como crear aplicaciones usando Linked Open DataExplotando la Web de Datos: Como crear aplicaciones usando Linked Open Data
Explotando la Web de Datos: Como crear aplicaciones usando Linked Open DataAlvaro Graves
 
Improving decision-making based on government data and visualizations
Improving decision-making based on government data and visualizationsImproving decision-making based on government data and visualizations
Improving decision-making based on government data and visualizationsAlvaro Graves
 
Creating web applications with LODSPeaKr
Creating web applications with LODSPeaKrCreating web applications with LODSPeaKr
Creating web applications with LODSPeaKrAlvaro Graves
 
Publicando RDF y Linked Data con LODSPeaKr
Publicando RDF  y Linked Data con LODSPeaKrPublicando RDF  y Linked Data con LODSPeaKr
Publicando RDF y Linked Data con LODSPeaKrAlvaro Graves
 
Open Data y participación ciudadana
Open Data y participación ciudadanaOpen Data y participación ciudadana
Open Data y participación ciudadanaAlvaro Graves
 
Web semántica y linked data la web como bd
Web semántica y linked data  la web como bdWeb semántica y linked data  la web como bd
Web semántica y linked data la web como bdAlvaro Graves
 
LODSPeaKr - Use cases Lighting Talk
LODSPeaKr - Use cases Lighting TalkLODSPeaKr - Use cases Lighting Talk
LODSPeaKr - Use cases Lighting TalkAlvaro Graves
 
Publishing Linked Open Data in 15 minutes
Publishing Linked Open Data in 15 minutesPublishing Linked Open Data in 15 minutes
Publishing Linked Open Data in 15 minutesAlvaro Graves
 
TWC LOGD: A Portal for Linking Government Data
TWC LOGD: A Portal for Linking Government DataTWC LOGD: A Portal for Linking Government Data
TWC LOGD: A Portal for Linking Government DataAlvaro Graves
 
POMELo: A PML Online Editor
POMELo: A PML Online EditorPOMELo: A PML Online Editor
POMELo: A PML Online EditorAlvaro Graves
 

More from Alvaro Graves (11)

Democratizing Open Data
Democratizing Open DataDemocratizing Open Data
Democratizing Open Data
 
Explotando la Web de Datos: Como crear aplicaciones usando Linked Open Data
Explotando la Web de Datos: Como crear aplicaciones usando Linked Open DataExplotando la Web de Datos: Como crear aplicaciones usando Linked Open Data
Explotando la Web de Datos: Como crear aplicaciones usando Linked Open Data
 
Improving decision-making based on government data and visualizations
Improving decision-making based on government data and visualizationsImproving decision-making based on government data and visualizations
Improving decision-making based on government data and visualizations
 
Creating web applications with LODSPeaKr
Creating web applications with LODSPeaKrCreating web applications with LODSPeaKr
Creating web applications with LODSPeaKr
 
Publicando RDF y Linked Data con LODSPeaKr
Publicando RDF  y Linked Data con LODSPeaKrPublicando RDF  y Linked Data con LODSPeaKr
Publicando RDF y Linked Data con LODSPeaKr
 
Open Data y participación ciudadana
Open Data y participación ciudadanaOpen Data y participación ciudadana
Open Data y participación ciudadana
 
Web semántica y linked data la web como bd
Web semántica y linked data  la web como bdWeb semántica y linked data  la web como bd
Web semántica y linked data la web como bd
 
LODSPeaKr - Use cases Lighting Talk
LODSPeaKr - Use cases Lighting TalkLODSPeaKr - Use cases Lighting Talk
LODSPeaKr - Use cases Lighting Talk
 
Publishing Linked Open Data in 15 minutes
Publishing Linked Open Data in 15 minutesPublishing Linked Open Data in 15 minutes
Publishing Linked Open Data in 15 minutes
 
TWC LOGD: A Portal for Linking Government Data
TWC LOGD: A Portal for Linking Government DataTWC LOGD: A Portal for Linking Government Data
TWC LOGD: A Portal for Linking Government Data
 
POMELo: A PML Online Editor
POMELo: A PML Online EditorPOMELo: A PML Online Editor
POMELo: A PML Online Editor
 

Recently uploaded

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 

Recently uploaded (20)

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 

Visualizations using Visualbox

  • 1. VISUALIZATIONS WITH SPARQL AND VISUALBOX Alvaro Graves @alvarograves gravea@rpi.edu
  • 2. MOTIVATION Linked Data brings tons of multidimensional data that is easy(*) to query However, having to make use of all that data we still need to being able to process it (as humans) One good way to make sense of this data is by using visualizations (*) Once you learn SPARQL
  • 3. EXAMPLE versus Images: Few, Stephen (2010): Data Visualization for Human Perception. In: Soegaard, Mads and Dam, Rikke Friis (eds.). "Encyclopedia of Human-Computer Interaction". Aarhus, Denmark: The Interaction Design Foundation. Available online at http://www.interaction-design.org/encyclopedia/data_visualization_for_human_perception.html
  • 4. VISUALBOX Based on LODSPeaKr Make use of new and already existing visualization filters Creating of visualization via new GUI Principle: Good data representation leads to good/easy data manipulation Corolary: Effort should be focused on obtaining the right data
  • 6. MODELS (SPARQL QUERY) Using the SELECT query form will return a table, similar to SQL. main.query PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?person1 ?person2 WHERE{ ?person1 foaf:knows ?person2 . } person1 person2 http://example.org/john http://example.org/paul http://example.org/john http://example.org/ringo http://example.org/george http://example.org/paul
  • 7. VIEWS (TEMPLATES) We can decide how to operate with the data. html.template <ul> {{for row in models.main}} <li>{{row.person1.value}} knows {{row.person2.value}}</li> {{endfor}} </ul> output http://example.org/john knows http://example.org/paul http://example.org/john knows http://example.org/ringo http://example.org/george knows http://example.org/paul
  • 8. FILTERS It is possible to apply filters to the data. Template {{for row in models.main}} {{row.person1.value|upper}} {{endfor}} Output HTTP://EXAMPLE.ORG/JOHN HTTP://EXAMPLE.ORG/JOHN HTTP://EXAMPLE.ORG/GEORGE
  • 9. VISUALIZATION FILTERS It is possible to apply visualization filters directly to all the results. These filters will generate the necessary code to create a visualization Model (main.query) PREFIX cat: <http://dbpedia.org/resource/Category:> SELECT ?countryLabel (COUNT(?nobel) as ?total) WHERE { ?nobel dcterms:subject cat:Nobel_laureates_in_Physics; a foaf:Person; dbp:placeOfBirth ?country . ?country a schema:Country ; rdfs:label ?countryLabel FILTER(LANG(?countryLabel) = "en") }GROUP BY ?country ?countryLabel ORDER BY DESC(?total) LIMIT 100
  • 10. countryLabel total United States 23 Germany 14 England 9 Japan 6 Austria-Hungary 5 France 5 Netherlands 4 German Empire 3 Soviet Union 3 United Kingdom 3 Italy 3
  • 11. View (html.template) <body> <h2>Total of Nobel laureates in Physics by country</h2> {{models.main|GoogleVizPieChart:"countryLabel,total"}} </body>
  • 12. TABULAR DATA Easiest case: consider table-based visualizations. View (html.template) {{models.main|GoogleVizColumnChart:"countryLabel,total"}}
  • 15. MAPS Represent data as latitude, longitude and label SELECT DISTINCT ?city SAMPLE(?lat) AS ?latitude SAMPLE(?long) AS ?longitude ?area WHERE{ ?city a sch:City ; <http://dbpedia.org/ontology/country> <http://dbpedia.org/resource/United_States> ; geo:lat ?lat ; geo:long ?long; dbp:areaTotalKm ?area . }GROUP BY ?city ?area ORDER BY DESC(?area) LIMIT 10
  • 16. latitude longitude area 45.4983 -91.7389 25.0 30.3167 -81.6667 2292 45.9989 -112.53 1868
  • 18. PARALLEL COORDINATES Query SELECT ?carLabel ?wheelbase ?carWidth ?carLength ?transmission WHERE { ?car dcterms:subject <http://dbpedia.org/resource/Category:Lamborghini_vehicles>; <http://dbpedia.org/ontology/Automobile/wheelbase> ?wheelbase; <http://dbpedia.org/ontology/MeanOfTransportation/height> ?carWidth; <http://dbpedia.org/ontology/MeanOfTransportation/length> ?carLength; <http://dbpedia.org/property/transmission> ?transmission; rdfs:label ?carLabel. FILTER(LANG(?carLabel) = "en") }
  • 19. PARALLEL COORDINATES carLabel wheelbase carWidth carLength transmission Lamborghini Aventador 2700.0 1136.0 4780.0 7 Lamborghini Reventón 2665.0 1135.0 4700.0 6 Lamborghini 400GT 2550.0 1257.0 4470.0 5 Template {{models.main|D3ParallelCoordinates:"carLabel,wheelbase,carWidth,carLength,transmission"}}
  • 21. GRAPHS Question: How to express a graph in a table? Answer: Table child → parent Model (main.query) SELECT ?person1 ?person2 WHERE{ ?person1 foaf:knows ?person2 . } person1 person2 Elizabeth Engstrom Ray Bradbury Neil Gaiman Robert A. Heinlein Neil Gaiman Ray Bradbury
  • 22. View (html.template) {{models.main|D3ForceGraph:"person1,person2"}}
  • 23. TREE STRUCTURES Problem: How do we retrieve a tree as a table? Solution (so far): Table child,parent with one row with no parent (root) child parent area Averill Park, New York Rensselaer County, New York 8.02896e+06 Sand Lake, New York Rensselaer County, New York 9.36e+07 Schaghticoke (town), New York Rensselaer County, New York 1.3442e+08 Poestenkill (town), New York Rensselaer County, New York 8.44336e+07 Schaghticoke (village), New York Rensselaer County, New York 2.33099e+06 Rensselaer County, New York
  • 24. TREE STRUCTURES Query PREFIX d: <http://dbpedia.org/ontology/> SELECT max(?regionLabel) as ?child max(?superregionLabel) as ?parent (max(?totalArea) as ?area) WHERE{ { ?region d:isPartOf <http://dbpedia.org/resource/Rensselaer_County,_New_York>; d:areaTotal ?totalArea ; rdfs:label ?regionLabel; d:isPartOf ?superregion . ?superregion rdfs:label ?superregionLabel. FILTER(?superregion = <http://dbpedia.org/resource/Rensselaer_County,_New_York>) FILTER(lang(?superregionLabel) = "en") }UNION{ ?region rdfs:label ?regionLabel . FILTER(?region = <http://dbpedia.org/resource/Rensselaer_County,_New_York>) } FILTER(lang(?regionLabel) = "en") }GROUP BY ?regionLabel ?superregionLabel Template {{models.main|D3CirclePacking:"child,parent,area"}}
  • 25.
  • 26. TREE STRUCTURES (2) Query (neruda.query) PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dbp: <http://dbpedia.org/ontology/> PREFIX d: <http://dbpedia.org/resource/> SELECT DISTINCT ?child ?parent WHERE{ { ?childNode dbp:influencedBy ?mid ; rdfs:label ?child . ?mid dbp:influencedBy ?parentNode; rdfs:label ?parent . FILTER(LANG(?parent) = "en" && ?parentNode = d:Pablo_Neruda) }UNION{ ?childNode dbp:influencedBy d:Pablo_Neruda; dbp:influencedBy ?parentNode; rdfs:label ?child . ?parentNode rdfs:label ?parent . FILTER(LANG(?parent) = "en" && ?parentNode = d:Pablo_Neruda) }UNION{ d:Pablo_Neruda rdfs:label ?child } FILTER(LANG(?child) = "en") }
  • 27. child parent Pablo Neruda Dane Zajc Pablo Neruda Gary Soto Pablo Neruda James Tate (writer) Pablo Neruda Richard Aitson Pablo Neruda Erin Siegal Pablo Neruda Jože Snoj Dane Zajc Rudi Šeligo Dane Zajc Veno Taufer Dane Zajc Rigoberto González Gary Soto Thomas Lux James Tate (writer) html.template {{models.main|D3Dendrogram:"child,parent"}}
  • 29. NOW YOU CREATE YOUR OWN VISUALIZATION Use data that is of interest for you Describe to tell a story or support a statement Give me feedback on how does visualbox works for you