SlideShare ist ein Scribd-Unternehmen logo
1 von 24
Publishing Linked Data
  with LODSPeaKr
                   Alvaro Graves
                gravea3@rpi.edu
          Twitter: @alvarograves
          1
What is Linked Data?
 Good Idea: There are lots of information
 available about government, geographical
 organizations, schools, etc. Lets publish
 it!
               State                States
               name

County
 name
                       Counties



           Schools
                           School
 No. of                     name             Countries
students




                                                  2
What is Linked Data?
Even better idea: Lets publish this data in a machine-
readable form and use HTTP URIs (http://...) to
describe things, so others can reuse them to refer to
the same things!
                                         Government Data

                    State                States
                    name

     County
      name
                            Counties



                Schools
                                School
      No. of                     name             Countries
     students




                                                        3
Why Linked Data?
Now, others can refer to the same
entities as me and add more data!
                                     Government Data

                State                States
                name

County
 name
                        Counties



            Schools
                                                                           International Organization Data
                            School                         Measure
 No. of                      name             Countries     value
students                                                                                   Year




                                                              Indicators
                                                 Country                                Categories
                                                  name


                                                                             Category
                                                                              name

                                                     4
Why Linked Data?
“If you want to scale up and, specially, if
you want to link and integrate, then you
should consider Linked Data”
                                    Government Data              José M. Alonso
               State                States
               name

County
 name
                       Counties



           Schools
                                                                          International Organization Data
                           School                         Measure
 No. of                     name             Countries     value
students                                                                                  Year




                                                             Indicators
                                                Country                                Categories
                                                 name


                                                                            Category
                                                                             name

                                                   5
Motivation
• How can organizations publish Linked Data they create?
• How can they build applications based on Linked Data?
• How can they use other people’s Linked Data?


                           6
LODSPeaKr
•   A framework for Linked Data-driven applications

•   Expose data in multiple formats (RDF/XML, Turtle, *)
    automatically

•   Create services, APIs and webapps easily

•   Easy to install in most LAMP systems

•   Only knowledge needed:

    •   SPARQL

    •   HTML

    •   Haanga, a pseudocode-like template language
                              7
Default installation
By default LODSPeaKr
provides:

• Search by label
• Navigation through
entities

•Show all properties of an
entity

• Data in RDFa, RDF/XML
and more
                             8
Application:Global Hunger Index




          http://graves.cl/ghi
                   9
Applications: Mobile webapps




    ESSIP mobile app   WWW2012 mobile app

                       10
Applications: Data Portals




                                        LOGD
 Geoinformation about Farmers Markets
                           11
Applications: Integration with other libraries




                                 D3.js


         Bootstrap
                      12
Building Linked Data apps:
           Use of Components

Two main (among other) components

•   Types

    •   Define how information is displayed for entities of
        the same type (persons, countries)

•   Services

    •   Create services for aggregated information


                            13
Building applications:
                      SPARQL + HTML + Haanga
                main.query
                SELECT DISTINCT ?person ?personName
 SPARQL

                WHERE {
                  ?person a foaf:Person;
                            foaf:name ?personName .
                }
                ORDER BY ?personName

                html.template
                <ul>
HTML + Haanga




                {% for row in models.main %}
                  <li>
                     <a href="{{row.person.value}}">
                      {{row.personName.value}}
                     </a>
                  </li>
                {% endfor %}          14

                </ul>
A Simple JSON API
  Adding a JSON interface is simple as adding a
  new template

json.template
{“people”: [
{% for row in models.main %}
   {
     “uri”: “{{row.person.value}}”,
     “name”: “{{row.personName.value}}”
   }
{% endfor %}
]}


                     15
Filters
  • Filters in Haanga allow you to process data
    before presenting it to the user

     {% for i in models.main %}
          {{i.personName.value|upper}}
     {% endfor %}

           “john smith” => “JOHN SMITH”


  • LODSPeaKr also provides visualizations
    based on filters
{{models.main|GoogleVizColumnChart:”xvar,yvar”}}

                  DATA =>

                        16
Query workflows
LODSPeaKr can query multiple endpoints, using results
     already obtained to specify new queries




                     SPARQL
                     Endpoint




                            LODSPeaKr

                                17
Query workflows
LODSPeaKr can query multiple endpoints, using results
     already obtained to specify new queries


                                       SPARQL
                                       Endpoint




                    SPARQL
                    Endpoint




                           LODSPeaKr

                               18
Query workflows
LODSPeaKr can query multiple endpoints, using results
     already obtained to specify new queries


              SPARQL
              Endpoint                      SPARQL
                                            Endpoint




                         SPARQL
                         Endpoint




                                LODSPeaKr

                                    19
Conclusion
• LODSPeaKr is a powerful tool for building
  webapps based on Linked Data
• It makes it really simple to publish 5-star
  Linked Data
• LODSPeaKr make easier to integrate
  external data and create mashups,
  simplifying the work for developers

                      20
Official URL
       http://lodspeakr.org

              Demo
        http://graves.cl/ghi

      Documentation
http://github.com/alangrafu/lodspeakr/wiki
                   21
Backup


  22
Components
It is possible to define a set of queries and templates for
          each type of things (people, countries)
Bash




                 $ utils/lodspk.sh create type foaf:Person
                 components/
                           |
                           ->types/
File directory




                                   |
                                   ->foaf:Person/
                                                 |
                                                 ->html.template
                                                 |
                                                 ->queries/
                                                           |
                                                           ->main.query
                                                           |
                                                           ->query2.query
                                                           |
                                              23           ->query3.query
Components
It is possible to define a set of queries and templates for
          a service (http://mysite.com/myService)
Bash




                 $ utils/lodspk.sh create service myService
                 components/
                           |
                           ->service/
File directory




                                     |
                                     ->myService/
                                                 |
                                                 ->html.template
                                                 |
                                                 ->queries/
                                                           |
                                                           ->main.query
                                                           |
                                                           ->query2.query
                                                           |
                                              24           ->query3.query

Weitere ähnliche Inhalte

Ähnlich wie Publishing Linked Data with LODSPeaKr

Spivack Blogtalk 2008
Spivack Blogtalk 2008Spivack Blogtalk 2008
Spivack Blogtalk 2008Blogtalk 2008
 
Structured SEO Data Overview and How To
Structured SEO Data Overview and How ToStructured SEO Data Overview and How To
Structured SEO Data Overview and How Tocgmonroe
 
X api chinese cop monthly meeting feb.2016
X api chinese cop monthly meeting   feb.2016X api chinese cop monthly meeting   feb.2016
X api chinese cop monthly meeting feb.2016Jessie Chuang
 
Linked dataresearch
Linked dataresearchLinked dataresearch
Linked dataresearchTope Omitola
 
Search Engines After The Semanatic Web
Search Engines After The Semanatic WebSearch Engines After The Semanatic Web
Search Engines After The Semanatic Websamar_slideshare
 
Achieve Federal Open Data Policy Compliance - Slides
Achieve Federal Open Data Policy Compliance - SlidesAchieve Federal Open Data Policy Compliance - Slides
Achieve Federal Open Data Policy Compliance - SlidesSocrata
 
Information Intermediaries
Information IntermediariesInformation Intermediaries
Information IntermediariesDave Reynolds
 
The Web of data and web data commons
The Web of data and web data commonsThe Web of data and web data commons
The Web of data and web data commonsJesse Wang
 
Linked Open Government Data: What’s Next?
Linked Open Government Data:  What’s Next?Linked Open Government Data:  What’s Next?
Linked Open Government Data: What’s Next?Li Ding
 
The Power of Semantic Technologies to Explore Linked Open Data
The Power of Semantic Technologies to Explore Linked Open DataThe Power of Semantic Technologies to Explore Linked Open Data
The Power of Semantic Technologies to Explore Linked Open DataOntotext
 
Wed roman tut_open_datapub
Wed roman tut_open_datapubWed roman tut_open_datapub
Wed roman tut_open_datapubeswcsummerschool
 
An Ontology for K-12 Education and the NIEM
An Ontology for K-12 Education and the NIEMAn Ontology for K-12 Education and the NIEM
An Ontology for K-12 Education and the NIEMOptum
 
APIs and Linked Data: A match made in Heaven
APIs and Linked Data: A match made in HeavenAPIs and Linked Data: A match made in Heaven
APIs and Linked Data: A match made in HeavenMichael Petychakis
 
Developing Linked Data and Semantic Web-based Applications (Expotec 2015)
Developing Linked Data and Semantic Web-based Applications (Expotec 2015)Developing Linked Data and Semantic Web-based Applications (Expotec 2015)
Developing Linked Data and Semantic Web-based Applications (Expotec 2015)Ig Bittencourt
 
Explaining The Semantic Web
Explaining The Semantic WebExplaining The Semantic Web
Explaining The Semantic WebAditya Tuli
 
Vital AI: Big Data Modeling
Vital AI: Big Data ModelingVital AI: Big Data Modeling
Vital AI: Big Data ModelingVital.AI
 
Delivering a Linked Data warehouse and realising the power of graphs
Delivering a Linked Data warehouse and realising the power of graphsDelivering a Linked Data warehouse and realising the power of graphs
Delivering a Linked Data warehouse and realising the power of graphsBen Gardner
 
Nova Spivack - Semantic Web Talk
Nova Spivack - Semantic Web TalkNova Spivack - Semantic Web Talk
Nova Spivack - Semantic Web Talksyawal
 

Ähnlich wie Publishing Linked Data with LODSPeaKr (20)

Spivack Blogtalk 2008
Spivack Blogtalk 2008Spivack Blogtalk 2008
Spivack Blogtalk 2008
 
Nonprofit social graph
Nonprofit social graphNonprofit social graph
Nonprofit social graph
 
Structured SEO Data Overview and How To
Structured SEO Data Overview and How ToStructured SEO Data Overview and How To
Structured SEO Data Overview and How To
 
X api chinese cop monthly meeting feb.2016
X api chinese cop monthly meeting   feb.2016X api chinese cop monthly meeting   feb.2016
X api chinese cop monthly meeting feb.2016
 
Linked dataresearch
Linked dataresearchLinked dataresearch
Linked dataresearch
 
Search Engines After The Semanatic Web
Search Engines After The Semanatic WebSearch Engines After The Semanatic Web
Search Engines After The Semanatic Web
 
Achieve Federal Open Data Policy Compliance - Slides
Achieve Federal Open Data Policy Compliance - SlidesAchieve Federal Open Data Policy Compliance - Slides
Achieve Federal Open Data Policy Compliance - Slides
 
Information Intermediaries
Information IntermediariesInformation Intermediaries
Information Intermediaries
 
The Web of data and web data commons
The Web of data and web data commonsThe Web of data and web data commons
The Web of data and web data commons
 
Linked Open Government Data: What’s Next?
Linked Open Government Data:  What’s Next?Linked Open Government Data:  What’s Next?
Linked Open Government Data: What’s Next?
 
The Power of Semantic Technologies to Explore Linked Open Data
The Power of Semantic Technologies to Explore Linked Open DataThe Power of Semantic Technologies to Explore Linked Open Data
The Power of Semantic Technologies to Explore Linked Open Data
 
Wed roman tut_open_datapub
Wed roman tut_open_datapubWed roman tut_open_datapub
Wed roman tut_open_datapub
 
An Ontology for K-12 Education and the NIEM
An Ontology for K-12 Education and the NIEMAn Ontology for K-12 Education and the NIEM
An Ontology for K-12 Education and the NIEM
 
APIs and Linked Data: A match made in Heaven
APIs and Linked Data: A match made in HeavenAPIs and Linked Data: A match made in Heaven
APIs and Linked Data: A match made in Heaven
 
Developing Linked Data and Semantic Web-based Applications (Expotec 2015)
Developing Linked Data and Semantic Web-based Applications (Expotec 2015)Developing Linked Data and Semantic Web-based Applications (Expotec 2015)
Developing Linked Data and Semantic Web-based Applications (Expotec 2015)
 
Explaining The Semantic Web
Explaining The Semantic WebExplaining The Semantic Web
Explaining The Semantic Web
 
Open Government Primer
Open Government PrimerOpen Government Primer
Open Government Primer
 
Vital AI: Big Data Modeling
Vital AI: Big Data ModelingVital AI: Big Data Modeling
Vital AI: Big Data Modeling
 
Delivering a Linked Data warehouse and realising the power of graphs
Delivering a Linked Data warehouse and realising the power of graphsDelivering a Linked Data warehouse and realising the power of graphs
Delivering a Linked Data warehouse and realising the power of graphs
 
Nova Spivack - Semantic Web Talk
Nova Spivack - Semantic Web TalkNova Spivack - Semantic Web Talk
Nova Spivack - Semantic Web Talk
 

Mehr von Alvaro Graves

Datos malos, robots tristes
Datos malos, robots tristesDatos malos, robots tristes
Datos malos, robots tristesAlvaro Graves
 
Democratizing Open Data
Democratizing Open DataDemocratizing Open Data
Democratizing Open DataAlvaro Graves
 
Creating visualizations using Linked Data
Creating visualizations using Linked DataCreating visualizations using Linked Data
Creating visualizations using Linked 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
 

Mehr von Alvaro Graves (13)

Datos malos, robots tristes
Datos malos, robots tristesDatos malos, robots tristes
Datos malos, robots tristes
 
Democratizing Open Data
Democratizing Open DataDemocratizing Open Data
Democratizing Open Data
 
Creating visualizations using Linked Data
Creating visualizations using Linked DataCreating visualizations using Linked Data
Creating visualizations using Linked 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
 

Kürzlich hochgeladen

Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 

Kürzlich hochgeladen (20)

Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 

Publishing Linked Data with LODSPeaKr

  • 1. Publishing Linked Data with LODSPeaKr Alvaro Graves gravea3@rpi.edu Twitter: @alvarograves 1
  • 2. What is Linked Data? Good Idea: There are lots of information available about government, geographical organizations, schools, etc. Lets publish it! State States name County name Counties Schools School No. of name Countries students 2
  • 3. What is Linked Data? Even better idea: Lets publish this data in a machine- readable form and use HTTP URIs (http://...) to describe things, so others can reuse them to refer to the same things! Government Data State States name County name Counties Schools School No. of name Countries students 3
  • 4. Why Linked Data? Now, others can refer to the same entities as me and add more data! Government Data State States name County name Counties Schools International Organization Data School Measure No. of name Countries value students Year Indicators Country Categories name Category name 4
  • 5. Why Linked Data? “If you want to scale up and, specially, if you want to link and integrate, then you should consider Linked Data” Government Data José M. Alonso State States name County name Counties Schools International Organization Data School Measure No. of name Countries value students Year Indicators Country Categories name Category name 5
  • 6. Motivation • How can organizations publish Linked Data they create? • How can they build applications based on Linked Data? • How can they use other people’s Linked Data? 6
  • 7. LODSPeaKr • A framework for Linked Data-driven applications • Expose data in multiple formats (RDF/XML, Turtle, *) automatically • Create services, APIs and webapps easily • Easy to install in most LAMP systems • Only knowledge needed: • SPARQL • HTML • Haanga, a pseudocode-like template language 7
  • 8. Default installation By default LODSPeaKr provides: • Search by label • Navigation through entities •Show all properties of an entity • Data in RDFa, RDF/XML and more 8
  • 9. Application:Global Hunger Index http://graves.cl/ghi 9
  • 10. Applications: Mobile webapps ESSIP mobile app WWW2012 mobile app 10
  • 11. Applications: Data Portals LOGD Geoinformation about Farmers Markets 11
  • 12. Applications: Integration with other libraries D3.js Bootstrap 12
  • 13. Building Linked Data apps: Use of Components Two main (among other) components • Types • Define how information is displayed for entities of the same type (persons, countries) • Services • Create services for aggregated information 13
  • 14. Building applications: SPARQL + HTML + Haanga main.query SELECT DISTINCT ?person ?personName SPARQL WHERE { ?person a foaf:Person; foaf:name ?personName . } ORDER BY ?personName html.template <ul> HTML + Haanga {% for row in models.main %} <li> <a href="{{row.person.value}}"> {{row.personName.value}} </a> </li> {% endfor %} 14 </ul>
  • 15. A Simple JSON API Adding a JSON interface is simple as adding a new template json.template {“people”: [ {% for row in models.main %} { “uri”: “{{row.person.value}}”, “name”: “{{row.personName.value}}” } {% endfor %} ]} 15
  • 16. Filters • Filters in Haanga allow you to process data before presenting it to the user {% for i in models.main %} {{i.personName.value|upper}} {% endfor %} “john smith” => “JOHN SMITH” • LODSPeaKr also provides visualizations based on filters {{models.main|GoogleVizColumnChart:”xvar,yvar”}} DATA => 16
  • 17. Query workflows LODSPeaKr can query multiple endpoints, using results already obtained to specify new queries SPARQL Endpoint LODSPeaKr 17
  • 18. Query workflows LODSPeaKr can query multiple endpoints, using results already obtained to specify new queries SPARQL Endpoint SPARQL Endpoint LODSPeaKr 18
  • 19. Query workflows LODSPeaKr can query multiple endpoints, using results already obtained to specify new queries SPARQL Endpoint SPARQL Endpoint SPARQL Endpoint LODSPeaKr 19
  • 20. Conclusion • LODSPeaKr is a powerful tool for building webapps based on Linked Data • It makes it really simple to publish 5-star Linked Data • LODSPeaKr make easier to integrate external data and create mashups, simplifying the work for developers 20
  • 21. Official URL http://lodspeakr.org Demo http://graves.cl/ghi Documentation http://github.com/alangrafu/lodspeakr/wiki 21
  • 23. Components It is possible to define a set of queries and templates for each type of things (people, countries) Bash $ utils/lodspk.sh create type foaf:Person components/ | ->types/ File directory | ->foaf:Person/ | ->html.template | ->queries/ | ->main.query | ->query2.query | 23 ->query3.query
  • 24. Components It is possible to define a set of queries and templates for a service (http://mysite.com/myService) Bash $ utils/lodspk.sh create service myService components/ | ->service/ File directory | ->myService/ | ->html.template | ->queries/ | ->main.query | ->query2.query | 24 ->query3.query

Hinweis der Redaktion

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n