JSON-LD. JSON as an XML Alternative JSON is a light-weight alternative to XML for data- interchange JSON = JavaScript Object Notation – It’s really language.

Slides:



Advertisements
Similar presentations
Copyright © Steven W. Johnson
Advertisements

What are Web Services? How to use them?
Introduction to HTML & CSS
SE 480: Client Side Scripting Languages Week 10: Ajax Data Sources Copyright © Steven W. Johnson October 1, 2014.
Steffen Staab 1WeST Web Science & Technologies University of Koblenz ▪ Landau, Germany Structured Data on the Web Introduction to.
XML: text format Dr Andy Evans. Text-based data formats As data space has become cheaper, people have moved away from binary data formats. Text easier.
Hyper Text Markup Language.  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is not a programming language,
RDF formats for Linked Data by Mabi Harandi. RDF is not a format, it is a model for data So: It will provide supports for different formats like :  Turtle.
Embedding Knowledge in HTML Some content from a presentations by Ivan Herman of the W3c.
RDFa Lite. RDFa 1.1 Lite is a subset of RDFa 1.1 Five simple attributes: vocab, typeof, property, resource, and prefix Completely upwards compatible RDFa.
Sematic Web Microdata, Microformat and RDF Advanced Web-based Systems | Misbhauddin.
JSON Valery Ivanov.
With jQuery and AJAX Doncho Minkov Telerik Corporation Technical Trainer.
The Web of data with meaning... By Michael Griffiths.
JSON IDU0075 Sissejuhatus veebiteenustesse.  JSON stands for JavaScript Object Notation  JSON is lightweight text-data interchange format  JSON is.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
Semantic Web Presented by: Edward Cheng Wayne Choi Tony Deng Peter Kuc-Pittet Anita Yong.
More APIs: Web Services CMPT 281. Announcements Project milestone Lab: – Web services examples.
Semantic Web Andrejs Lesovskis. Publishing on the Web Making information available without knowing the eventual use; reuse, collaboration; reproduction.
Microdata and schema.org. Basics Microdata is a simple semantic markup scheme that’s an alternative to RDFa Microdata Developed by WHATWG and supported.
Chris Pinski.  History  What is Ajax  Who uses Ajax  Underlying Technologies  SE Aspect  Common Problems  Conclusion.
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
Semantic Web outlook and trends May The Past 24 Odd Years 1984 Lenat’s Cyc vision 1989 TBL’s Web vision 1991 DARPA Knowledge Sharing Effort 1996.
NetTech Solutions Working with Web Elements Lesson 6.
Entity Recognition via Querying DBpedia ElShaimaa Ali.
The New Zealand Institute for Plant & Food Research Limited Matthew Laurenson Web Services: Introduction & Design Considerations.
Lecture 13 – XML and JSON SFDV3011 – Advanced Web Development Reference: 1.
HTML5. HTML5’s overall theme The browser as a rich application platform rich, cross-device user interfaces offline operation capability hardware access.
ICOM 4035 – Data Structures Lecture 11 – Map ADT Manuel Rodriguez Martinez Electrical and Computer Engineering University of Puerto Rico, Mayagüez ©Manuel.
1 Metadata –Information about information – Different objects, different forms – e.g. Library catalogue record Property:Value: Author Ian Beardwell Publisher.
JSON Java Script Object Notation Copyright © 2013 Curt Hill.
CWM Closed World Machine. CWM Overview CWM is a popular Semantic Web program that can do the following tasks – Parse and pretty-print several RDF formats:
Google Data Protocol Guy Mark Lifshitz. Motivation Google’s Mission: – Organize the world’s information – Make information universally accessible – Provide.
Introduction to the Semantic Web and Linked Data Module 1 - Unit 2 The Semantic Web and Linked Data Concepts 1-1 Library of Congress BIBFRAME Pilot Training.
Web Application with AJAX CS 526 advanced interned and Web system Presenters Faris Kateb Mohammed AbdulAziz Omar Alzahrani.
Introduction to Web Services
RDFa Lite. RDFa 1.1 Lite is a subset of RDFa 1.1 Five simple attributes: vocab, typeof, property, resource, and prefix Completely upwards compatible RDFa.
Representing data with XML SE-2030 Dr. Mark L. Hornick 1.
AJAX. Ajax  $.get  $.post  $.getJSON  $.ajax  json and xml  Looping over data results, success and error callbacks.
From XML to DAML – giving meaning to the World Wide Web Katia Sycara The Robotics Institute
The Semantic Web. What is the Semantic Web? The Semantic Web is an extension of the current Web in which information is given well-defined meaning, enabling.
Semantic Web 06 T 0006 YOSHIYUKI Osawa. Problem of current web  limits of search engines Most web pages are only groups of character strings. Most web.
JSON. JSON as an XML Alternative JSON is a light-weight alternative to XML for data- interchange JSON = JavaScript Object Notation It’s really language.
HTML5 and CSS3 Illustrated Unit C: Getting Started with CSS.
JSON (Copied from and from Prof Da Silva) Week 12 Web site:
JQuery, JSON, AJAX. AJAX: Async JavaScript & XML In traditional Web coding, to get information from a database or a file on the server –make an HTML form.
Semantic Web in Depth Schema.org RDFa, JSON-LD, Microdata Professor Steffen Staab 2016, Many slides courtesy by Dr. Nick Gibbins.
Facilitating Semantic Web Search with Embedded Grammar Tags (EGTs) Gautham K.Dorai Yaser Yacoob Department of Computer Science University of Maryland –
What's New in RDF 1.1 Cambridge Semantic Web Gathering 9 April 2013
The Fat-Free Alternative to XML
JSON and JSON-Schema for XML Developers
Stanford University, Stanford, CA, USA
The Fat-Free Alternative to XML
JSON.
A Lightweight Structured Data Implementation Using JSON-LD and Schema
JSON-LD.
Embedding Knowledge in HTML
Zachary Cleaver Semantic Web.
XML.
InfoTrac/PowerSearch Interface Enhancements
JSON-LD 1.0 Yanan Zhang.
Strings and Serialization
Microdata and schema.org
Embedding Knowledge in HTML
JSON for Linked Data: a standard for serializing RDF using JSON
CSE591: Data Mining by H. Liu
The Fat-Free Alternative to XML
Gregg Kellogg – Spec Ops
JSON: JavaScript Object Notation
JSON-LD.
Presentation transcript:

JSON-LD

JSON as an XML Alternative JSON is a light-weight alternative to XML for data- interchange JSON = JavaScript Object Notation – It’s really language independent – most programming languages can easily read it and instantiate objects or some other data structure Defined in RFC 4627RFC 4627 Started gaining traction ~2006 and now widely used more information

Example {"firstName": "John", "lastName" : "Smith", "age" : 25, "address" : {"streetAdr” : "21 2nd Street", "city" : "New York", "state" : "NY", ”zip" : "10021"}, "phoneNumber": [{"type" : "home", "number": " "}, {"type" : "fax", "number” : " "}] } This is a JSON object with five key-value pairs Objects are wrapped by curly braces There are no object IDs Keys are strings Values are numbers, strings, objects or arrays Arrays are wrapped by square brackets

The BNF is simple

Evaluation JSON is simpler than XML and more compact – No closing tags, but if you compress XML and JSON the difference is not so great – XML parsing is hard because of its complexity JSON has a better fit for OO systems than XML, but not as extensible Preferred for simple data exchange by many MongoDB is a very popular open-source ‘NoSQL’ database for JSON objects MongoDB

JSON-LD JSON-LD is a W3C recommendation for representing RDF data as JSON objects { "name": " "homepage": { " }, "Person": " }, " "Person", "name": "Markus Lanthaler", "homepage": " }

In the beginning { "name": "Manu Sporny", "homepage": " "image": " }

A bit better { " "Manu Sporny", " { " } " { " } } The keyword means 'This value is an identifier that is an IRI'

Define a context { { "name": " % [1] "image": { " % [2] % [3] }, "homepage": { " % [4] % [5] } } } [1] This means that 'name' is shorthand for ' [2] This means that 'image' is shorthand for ' [3] This means that a string value associated with 'image' should be interpreted as an identifier that is an IRI [4] This means that 'homepage' is shorthand for ' [5] This means that a string value associated with 'homepage' should be interpreted as an identifier that is an IRI

Reference an external context { " ld.org/contexts/person.jsonld", "name": "Manu Sporny", "homepage": " "image": " }

Add context inline { "name": " "image": { " }, "homepage": { " } }, "name": "Manu Sporny", "homepage": " "image": " }

Making assertions about things { {... "Restaurant": " "Brewery": " } " [ "Restaurant", "Brewery" ],... }

Adding a default vocabulary { { " } " "Restaurant", "name": "Brew Eats"... }

Mixing vocabularies { { "xsd": " "foaf": " "foaf:homepage": { }, "picture": { "foaf:depiction", } }, " "foaf:Person", "foaf:name": "Markus Lanthaler", "foaf:homepage": " "picture": " }

Embedding other objects {... "name": "Manu Sporny", "foaf:knows": { "Person", "name": "Gregg Kellogg", }... }

Google looks for JSON-LD Google looks for and uses some JSON-LD markup (e.g., for organizations) Put a JSON-LD object in the head of a web page wrapped with script tags: {...}

Conclusion JSON-LD is a good solution to putting blocks of semantic data on web pages It’s aimed at publish linked data, not ontologies, i.e.. ABOX not TBOX Tools are available for extracting their content as RDF triples Search companies are beginning to look for and JSON- LD in web pages that uses vocabularies they understand (i.e., schema.org) Look for more of this in the future