Your SlideShare is downloading. ×
0
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Publishing Linked Data with LODSPeaKr
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Publishing Linked Data with LODSPeaKr

893

Published on

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
893
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript

    • 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 nameCounty name Counties Schools School No. of name Countriesstudents 2
    • 3. What is Linked Data?Even better idea: Lets publish this data in a machine-readable form and use HTTP URIs (http://...) todescribe things, so others can reuse them to refer tothe 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 sameentities as me and add more data! Government Data State States nameCounty name Counties Schools International Organization Data School Measure No. of name Countries valuestudents Year Indicators Country Categories name Category name 4
    • 5. Why Linked Data?“If you want to scale up and, specially, ifyou want to link and integrate, then youshould consider Linked Data” Government Data José M. Alonso State States nameCounty name Counties Schools International Organization Data School Measure No. of name Countries valuestudents 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 installationBy default LODSPeaKrprovides:• Search by label• Navigation throughentities•Show all properties of anentity• Data in RDFa, RDF/XMLand 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 ComponentsTwo 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 templatejson.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 workflowsLODSPeaKr can query multiple endpoints, using results already obtained to specify new queries SPARQL Endpoint LODSPeaKr 17
    • 18. Query workflowsLODSPeaKr can query multiple endpoints, using results already obtained to specify new queries SPARQL Endpoint SPARQL Endpoint LODSPeaKr 18
    • 19. Query workflowsLODSPeaKr 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 Documentationhttp://github.com/alangrafu/lodspeakr/wiki 21
    • 22. Backup 22
    • 23. ComponentsIt 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. ComponentsIt 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

    ×