Semantic Web in Depth Schema.org RDFa, JSON-LD, Microdata Professor Steffen Staab 2016, Many slides courtesy by Dr. Nick Gibbins.

Slides:



Advertisements
Similar presentations
A centre of expertise in digital information management Approaches To The Validation Of Dublin Core Metadata Embedded In (X)HTML Documents Background The.
Advertisements

XML: Extensible Markup Language
Steffen Staab 1WeST Web Science & Technologies University of Koblenz ▪ Landau, Germany Structured Data on the Web Introduction to.
The Semantic Web – WEEK 4: RDF
Gleaning Resource Descriptions from Dialects of Languages (GRDDL) W3C Team Submission 16 May 2005 Dominique Hazaël-Massieux, Dan Connolly Summarized by.
RDFa: Embedding RDF Knowledge in HTML Some content from a presentation by Ivan Herman of the W3c, Introduction to RDFa, given at the 2011 Semantic Technologies.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
RDF Tutorial.
Speaker: Raúl García Castro ORCO 2013 Madrid, Spain 8 February 2013 RDFa Raúl García-Castro Ontology Engineering Group Universidad Politécnica.
MICRODATA IN HTML 5.0 Technologies for Web Application Development Martin Nečaský Department of Software Engineering, Faculty of Mathematics and Physics,
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.
Sematic Web Microdata, Microformat and RDF Advanced Web-based Systems | Misbhauddin.
2011 Semantic Technologies Conference 7 th of June, 2011, San Francisco, CA, USA Ivan Herman, W3C.
IS 373—Web Standards Todd Will
1 COS 425: Database and Information Management Systems XML and information exchange.
ReQuest (Validating Semantic Searches) Norman Piedade de Noronha 16 th July, 2004.
Dr. Jim Bowring Computer Science Department College of Charleston CSIS 690 (633) May Evening 2009 Semantic Web Principles and Practice Class 4: 20 May.
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
CSE 428 Semantic Web Topics Introduction Jeff Heflin Lehigh University.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Semantic Web Technologies ufiekg-20-2 | data, schemas & applications | lecture 21 original presentation by: Dr Rob Stephens
1 © Netskills Quality Internet Training, University of Newcastle Metadata Explained © Netskills, Quality Internet Training.
IS432 Semi-Structured Data Lecture 5: XSLT Dr. Gamal Al-Shorbagy.
XP New Perspectives on XML Tutorial 6 1 TUTORIAL 6 XSLT Tutorial – Carey ISBN
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
WORKING WITH XSLT AND XPATH
The Semantic Web and Microformats. The Semantic Web Syntax = how you say something – Letters, words, punctuation Semantics = meaning behind what you say.
Meta Tagging / Metadata Lindsay Berard Assisted by: Li Li.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
CITA 330 Section 6 XSLT. Transforming XML Documents to XHTML Documents XSLT is an XML dialect which is declared under namespace "
CC L A W EB DE D ATOS P RIMAVERA 2015 Lecture 2: RDF Model & Syntax Aidan Hogan
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.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation An Introduction to XML.
© Copyright 2008 STI INNSBRUCK HTML Data Guide W3C Interest Group Note 08 March 2012 OC Working Group –
XHTML By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
1 Metadata –Information about information – Different objects, different forms – e.g. Library catalogue record Property:Value: Author Ian Beardwell Publisher.
Embedding Knowledge in HTML Some content from a presentations by Ivan Herman of the W3c.
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.
 Structured Data An Introduction to Semantic Web “It is very hard for search engines to understand the structure and semantics of data embedded in an.
Doc.: IEEE /0169r0 Submission Joe Kwak (InterDigital) Slide 1 November 2010 Slide 1 Overview of Resource Description Framework (RFD/XML) Date:
RDFa Primer Bridging the Human and Data webs Presented by: Didit ( )
Microdata in HTML 5.0 Web Applications Martin Nečaský Department of Software Engineering, Faculty of Mathematics and Physics, Charles University in Prague,
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
Chapter 04 Semantic Web Application Architecture 23 November 2015 A Team 오혜성, 조형헌, 권윤, 신동준, 이인용.
HTML5 and CSS3 Illustrated Unit C: Getting Started with CSS.
Semantic Web in Depth RDFa, GRDDL and POWDER Dr Nicholas Gibbins
By Ondrej Rafaj Get More Sales in the iPhone App Store by improving your organic results.
Linked Data Publishing on the Semantic Web Dr Nicholas Gibbins
Semantic Web In Depth Resource Description Framework Dr Nicholas Gibbins –
Setting the stage: linked data concepts Moving-Away-From-MARC-a-thon.
Bryan Kelly Future Proof your Website for Organic Search Visibility (using Microformats)
An Introduction to RDFa QingXia Liu Contents What is RDFa? Why RDFa? Versions of RDFa An Example
ISWC 2010, Shanghai, 8 th November, 2010 Ivan Herman ( 郝易文 ), W3C.
What's New in RDF 1.1 Cambridge Semantic Web Gathering 9 April 2013
Web-Technology Lecture 13.
Embedding Knowledge in HTML
Resource Description Framework
XML QUESTIONS AND ANSWERS
Microdata and schema.org
JSON-LD.
Embedding Knowledge in HTML
Microdata and schema.org
Embedding Knowledge in HTML
RDFa: Embedding RDF Knowledge in HTML
JSON for Linked Data: a standard for serializing RDF using JSON
Resource Description Framework (RDF)
HTML5 - 2 Forms, Frames, Graphics.
JSON-LD.
Presentation transcript:

Semantic Web in Depth Schema.org RDFa, JSON-LD, Microdata Professor Steffen Staab 2016, Many slides courtesy by Dr. Nick Gibbins

Embedding Semantic Web Data

Embedded Data Publishing patterns for linked data that we’ve already considered make the assumption that we’re publishing directly in RDF/OWL What if the data already exists in a web resource, in some form?

Embedded Data Republishing the data separately introduces redundancy, and the possibility of inconsistency - embed our SW data in the web resource Existing approaches: –JSON-LD –RDFa –Microdata –Microformats(2) –GRDDL (W3C recommendation 2007) Supported by schema.org

Schema.org

Meta tag already available in early versions of HTML Objective: Indication of relevance Spammed!  Highly unsuccessful SearchMonkey (2008) Metadata to make Yahoo! search results visually more appealing Turned into schema.org (2011) Initiative by Google, Bing, Yahoo, later: Yandex Metadata for Search Engine Optimization

Metadata for Search

What is in schema.org? Creative works: CreativeWork, Book, Movie, MusicRecording, Recipe, TVSeries...CreativeWorkBookMovieMusicRecordingRecipe TVSeries Embedded non-text objects: AudioObject, ImageObject, VideoObjectAudioObjectImageObjectVideoObject Event Organization Person Place, LocalBusiness, Restaurant... PlaceLocalBusinessRestaurant Product, Offer, AggregateOffer ProductOfferAggregateOffer Review, AggregateRating ReviewAggregateRating An open ended list!

Return on Investment BestBuy early adopter -Launched Semantic Product Web, augmented with GoodRelations and RDFa, -30% increase in traffic to their pages. -(not a scientifically precise experiment!) Nick -search results augmented with structured data get 15% higher click-through rate Cf web-marketing.html

Microdata

Microdata (W3C Working Group Note 2013) Core concept: name-value pairs My name is Steffen Staab. His name is Nick.

Types, (Global) Identifiers, Dates <dl itemscope itemtype=" itemid="urn:isbn: "> Title The Reality Dysfunction Author Peter F. Hamilton Publication date 26 January 1996

Nested Itemscopes Web and Internet Science <div itemprop=“member" itemscope itemtype= itemid=„steffenstaab“> Steffen Staab

Schema.org example in microdata

RDFa

Yet another syntax for RDF… –Designed for embedding structured data in web pages –Stored structure in attributes (the ‘a’ in ‘RDFa’)

RDFa Example Jo's Friends and Family Blog I'm holding one last summer Barbecue, on September 16th at 4pm. Jo Smith. Web hacker at Example, Inc. You can contact me via .

Setting namespaces Jo's Friends and Family Blog I'm holding one last summer barbecue, on September 16th at 4pm. Jo Smith. Web hacker at Example, Inc. You can contact me via .

Showing an instance of a class Class membership is indicated using the typeof attribute: I'm holding one last summer barbecue, on September 16th at 4pm.

Showing an instance of a class Class membership is indicated using the typeof attribute: I'm holding one last summer barbecue, on September 16th at 4pm. _:a rdf:type cal:Event.

Using properties: predicates The predicate of a triple is indicated using the property attribute: I'm holding one last summer barbecue, on September 16th at 4pm.

Using properties: predicates The predicate of a triple is indicated using the property attribute: I'm holding one last summer barbecue, on September 16th at 4pm.

Using properties: literal objects The object of a literal-valued triple is given by the content of the element bearing the property attribute I'm holding one last summer barbecue, on September 16th at 4pm. _:a cal:summary “one last summer barbecue”.

Using properties: substitute values The content of an element may be substituted for using the content attribute: I'm holding one last summer barbecue, on September 16th at 4pm. _:a cal:start “ T16:00:00”.

Using properties: datatypes The datatype of a literal-value object is indicated using the datatype attribute: I'm holding one last summer barbecue, on September 16th at 4pm. _:a cal:start “ T16:00:00”^^xsd:dateTime.

Using properties: resource objects The object of a resource-valued triple is given by the content of the resource attribute: Jo Smith. Web hacker at Example, Inc. You can contact me via . _:b foaf:workplaceHomepage.

Identity The subject of a triple is indicated using the about attribute: Jo Smith. Web hacker at Example, Inc. You can contact me via . _:b foaf:workplaceHomepage.

Identity The subject of a triple is indicated using the about attribute: Jo Smith. Web hacker at Example, Inc. You can contact me via . foaf:workplaceHomepage.

Using existing links Existing links may be used to construct triples with resource- valued objects: Jo Smith. Web hacker at Example, Inc. You can contact me via .

Using existing links The rel attribute is used to indicate the predicate: Jo Smith. Web hacker at Example, Inc. You can contact me via .

Using existing links The href attribute is used to indicate the object: Jo Smith. Web hacker at Example, Inc. You can contact me via . foaf:mbox.

Original File Jo's Friends and Family Blog I'm holding one last summer barbecue, on September 16th at 4pm. Jo Smith. Web hacker at Example, Inc. You can contact me via .

Annotated File Jo's Friends and Family Blog I'm holding one last summer barbecue, on September 16th at 4pm. Jo Smith. Web hacker at Example, Inc. You can contact me via .

Contained Triples _:a rdf:type cal:Event ; cal:summary “one last summer barbecue” ; cal:start “ T16:00:00”^^xsd:dateTime. rdf:type foaf:Person ; foaf:name “Jo Smith” ; foaf:workplaceHomepage ; foaf:mbox.

Schema.org example in RDFa

Visible annotated content Less likely to be spam More likely to be up-to-date Officially encouraged by search engines Invisible annotated content Separation of concerns: content vs annotations -Easier to code -Easier to convert from other data sources With support for JSON-LD accepted now Annotating Visible vs Unvisible Content

Download slides for this week from

JSON-LD

Rationale Readable format for data exchange Has overtaken XML in app development Less verbose More readable Easy to parse JSON-LD Build on the success of JSON Basically: JSON-LD = JSON + global identifiers Every JSON-LD document is a valid JSON document JSON

JSON Document { "name": “Steffen Staab", "homepage": “ "image": " }

JSON-LD { " “Steffen Staab", " { „ }, ← The keyword means 'This value is an identifier that is an IRI‘ " { " } }

Context in JSON-LD { { "name": " ← shorthand "image": { " ← shorthand ← IRI }, "homepage": { " ← shorthand ← string value associated with 'homepage' should be interpreted as IRI } }}

Referencing a JSON-LD context { " "name": “Steffen Staab", "homepage": “ "image": " koblenz.de/~staab/images/steffen png" }

Identifying a node { { "name": " }, „ "name": “Steffen Staab",... }

Schema.org example in JSON-LD I would suggest to avoid blank nodes, i.e. nodes without identifiers

Microformats

Predefines syntax Predefines and freezes vocabulary Not officially supported by schema.org, but understood quite a bit by search engines Vocabularies h-adr h-card h-entry h-event h-geo h-item h-product h-recipe h-resume h-review h-review-aggregate Microformats

GRDDL

Given a document in some XML format, how can we extract the relevant portions and make them available to SW agents? GRDDL (Gleaning Resource Descriptions from Dialects of Languages) uses XSLT stylesheets to transform documents XML doc XML doc XSLT style sheet GRDDL Processor RDF/ XML

Further Reading RDFa Core 1.1 W3C Recommendation 22 August RDFa 1.1 Primer (essential reading!) W3C Working Group Note 22 August