SlideShare a Scribd company logo
1 of 55
Social Graphs and
Semantic Analytics
Colin Bell <colin.bell@uwaterloo.ca>
Director, Enterprise Architecture
Information Systems and Technology (IST)
University of Waterloo
Prepared guest lecture for Class 11 of W16 cs330.
Foundations
Infrastructure
Business Use
Managerial
and Social
Issues
Building
Foundations so far…
• Business Intelligence (BI)
• Data Warehousing
• Big Data
• Social IT
• I will lay base for next generation BI and the technology
being used at the bleeding edge to make sense of big data.
• “Business Intelligence 2.0”
• Graph databases
• Semantic-aware analytics
Outline: Class 11 – Guest Lecture
“Social Graphs and Semantic Analytics”
• Foundations
• Graph (mathematics)
• Semantics (linguistics)
• Infrastructure
• Web 2.0
• Web 3.0
• Business Uses
• Social Graph
• Financial Risk
• Meta-Analysis
• Managerial and Social
Issues
• Profiling
• Information Leakage
• False Positives
• Building
• Where would you start?
Tim Berners-Lee: Director W3C
``To a computer, the Web is a flat, boring world, devoid of
meaning. This is a pity, as in fact documents on the Web
describe real objects and imaginary concepts, and give
particular relationships between them. For example, a
document might describe a person. The title document to a
house describes a house and also the ownership relation with
a person. Adding semantics to the Web involves two things:
allowing documents which have information in machine-
readable forms, and allowing links to be created with
relationship values. Only when we have this extra level of
semantics will we be able to use computer power to help us
exploit the information to a greater extent than our own
reading.’’ - Tim Berners-Lee "W3 future directions" keynote,
1st World Wide Web Conference Geneva, May 1994
I express my network in a FOAF file, and that is a start of the
revolution. - TimBL 2007, Giant Global Graph (foaf)
From http://xmlns.com/foaf/spec/
Foundations: Graph
• Definition:
• Set V of vertices.
• Set E of unordered
(edge) and ordered (arc)
pairs of vertices.
• Denoted as G(V,E).
• Types:
• Undirected Graph (Gu)
• Directed Graph (Gd)
• Mixed Graph (Gx)
• Multigraph (Gm)
http://bit.ly/1Ue3JbyGraph. Encyclopedia of Mathematics. URL:
http://www.encyclopediaofmath.org/index.php?title=Graph&oldid=37438
Foundations: Semantics
• Definition: Semantics
• The branch of linguistics and logic concerned with meaning.
There are a number of branches and sub branches of
semantics, including:
• formal semantics, which studies the logical aspects of meaning,
such as sense, reference, implication, and logical form,
• lexical semantics, which studies word meanings and word
relations, and;
• conceptual semantics, which studies the cognitive structure of
meaning.
• We are interested in Computational Semantics, the
study of how to automate the process of constructing
and reasoning with meaning representations [source:
https://en.wikipedia.org/wiki/Computational_semantics]
http://bit.ly/1pYQ8bgSemantics. Oxford Dictionary Online. URL:
http://www.oxforddictionaries.com/us/definition/american_english/semantics
Foundations: Semantic Models
• We can combine the concepts of graphs and
semantics to build what are called semantic
models.
• Example:
a.k.a. Semantic Networks
NOTE
Infrastructure
This is a whirlwind tour of technologies. This is to give you a
frame of reference not an exhaustive understanding. Some of
this may be review, some of it may be new.
If you miss the details, do not fret.
Infrastructure: Web 2.0- Social
• A number of concepts and technologies make up
what we think of as Web 2.0. We’ll look at a few:
• HTTP: Hypertext Transfer Protocol
• URLs: Uniform Resource Locators
• A specific type of Uniform Resource Identifier (URI)
• HTML: Hypertext Markup Language
• With JavaScript and Cascading Style Sheets (CSS)
• XML: Extensible Markup Language
• Web Services:
• SOAP: Simple Object Access Protocol
• RESTful JSON: Representational State Transfer JavaScript
Object Notation
Web 2.0: HTTP
• Hypertext Transfer Protocol (HTTP)
• Provides a simple dialect (verbs + structure) to ask for,
give, and receive hypertext/hypermedia-based
information.
• Usually transferred using Transmission Control Protocol
(TCP) over Internet Protocol (IP) switched networks.
• Allows creation of a graph containing ‘hypertext’
vertices (nodes) linked across ‘hyperlink’ arcs.
• The basis of the World Wide Web we know today.
Web 2.0: HTTP See:
https://tools.ietf.org/pdf/rfc7231.pdf
Web 2.0: HTTP See:
https://tools.ietf.org/pdf/rfc7231.pdf
Web 2.0: URLs / URIs
• A Uniform Resource Locator (URL) is a specific class
of Uniform Resource Identifier (URIs)
• See: https://www.ietf.org/rfc/rfc3986.txt
• The standardized structure of a string to allow
items to be uniquely identified (URI). Sometimes
items are best identified by its location (URL).
• Pattern:
foo://example.com:8042/over/there?name=ferret#nose
_/ ______________/_________/ _________/ __/
| | | | |
scheme authority path query fragment
Example from IETF RFC3986
Web 2.0: HTML w/ (JS + CSS)
• Hypertext Markup Language (HTML)
• See: https://www.w3.org/TR/html5/
• Most modern websites include JavaScript (JS) to
allow for ‘dynamic’ interactions.
• See: http://www.ecma-international.org/ecma-262/5.1/
• Data (HTML) and dynamic logic (JavaScript) is
separated from visual presentation using Cascading
Style Sheets (CSS).
• See: https://www.w3.org/TR/CSS/
Web 2.0: Example HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script type="text/javascript"src="script.js”>
</script>
<link rel="stylesheet”
type="text/css”
href="style.css">
</link>
</head>
<body>
<h1>Example HTML</h1>
<button onclick="sayHello('world')">
Click Me
</button>
</body>
</html>
http://ist.uwaterloo.ca/~cpbell/1161.cs330/SOURCES/HTML-example/
Web 2.0: Example JavaScript
function sayMessage(parameter) {
window.alert(parameter)
}
http://ist.uwaterloo.ca/~cpbell/1161.cs330/SOURCES/HTML-example/
Web 2.0: Example CSS
button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
body { background-color: lightgreen; }
h1 { color: darkgreen;
margin-left: 20px;
}
http://ist.uwaterloo.ca/~cpbell/1161.cs330/SOURCES/HTML-example/
Web 2.0: HTML Example
With CSS + JavaScript Without CSS + JavaScript
http://ist.uwaterloo.ca/~cpbell/1161.cs330/SOURCES/HTML-example/
Web 2.0: XML
• Extensible Markup Language (XML)
• See: https://www.w3.org/TR/xml/
• Provides a way to structure (aka ‘markup’) arbitrary text
content with tags so a computers and humans can read
it.
• Ostensibly the parent of HTML.
• Expands on an older format called the Standard
Generalized Markup Language (SGML).
• Example uses:
• Microsoft Office Files (docx, xlsx, pptx)
• Really Simple Syndication (RSS) feeds
• https://en.wikipedia.org/wiki/List_of_XML_markup_languages
Web 2.0: XML Example
Public Domain from:
https://en.wikipedia.org/wiki/File:RecipeBook_XML_Example.png
Web 2.0: Web Services
• Today you learned about a number of ‘Social IT’
innovations– the innovations that moved the WWW
from its Web 1.0 early past to its Web 2.0 social
present.
• One of the key elements of the Web 2.0- Social Web
revolution was the ability to access data from different
services (Wikis, Blogs, Microblogs, etc.)
• Application Programming Interfaces (APIs) were key to
this. When APIs work over HTTP, they are called ‘Web
Services.’
• “A Web Service is a software system designed to support
interoperable machine-to-machine interaction over a
network.” source: https://www.w3.org/TR/2004/NOTE-ws-gloss-20040211/#webservice
Web 2.0: SOAP
• Simple Object Access Protocol (SOAP)
• See: https://www.w3.org/TR/soap12/
• ``A SOAP message is an ordinary XML document
containing the following elements:
• An Envelope element that identifies the XML document
as a SOAP message
• A Header element that contains header information
• A Body element that contains call and response
information
• A Fault element containing errors and status
information’’
From http://www.w3schools.com/xml/xml_soap.asp
Web 2.0: SOAP Example
POST /InStock HTTP/1.1
Host: www.example.org
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 299
SOAPAction: http://www.w3.org/2003/05/soap-envelope
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-
envelope">
<soap:Header> </soap:Header>
<soap:Body>
<m:GetStockPrice xmlns:m="http://www.example.org/stock/Surya">
<m:StockName>IBM</m:StockName>
</m:GetStockPrice>
</soap:Body>
</soap:Envelope>
From https://en.wikipedia.org/wiki/SOAP under CC-Attribution-SA
Web 2.0: RESTful JSON
• Representational State Transfer (REST)
• See Fielding, Roy Thomas. Architectural Styles and the
Design of Network-based Software Architectures.
Doctoral dissertation, University of California, Irvine,
2000. @ http://bit.ly/1eTY8AI
• Architecture that uses HTTP and URIs/URLs to convey
information constrained in specific ways.
• JavaScript Object Notation (JSON)
• JSON: http://www.json.org/
• A lightweight data-interchange format built on a (1)
collection of name/value pairs and (2) an ordered list of
values.
Web 2.0: RESTful JSON Example
GET /InStockJSON/stock/Surya/StockName/IBM HTTP/1.1
Host: www.example.org
HTTP/1.1 200 OK
{
[ stock_name: “IBM”,
stock_value: {
price: “145.47”,
currency:”USD”
}
]
}
Web 2.0: WWW
• What is the World Wide
Web (WWW):
• A huge directed graph of
connected text and
multimedia (nodes aka.
vertices) across links (arcs).
• The links are not very
informative.
• Knowing that one node
links to another does not
provide useful ‘rich’
context.
• Connections do not have
meaning outside of ‘link’. See more large network datasets at:
https://snap.stanford.edu/data/#web
By The Opte Project - Originally from the English
Wikipedia; description page is/was here., CC BY 2.5,
https://commons.wikimedia.org/w/index.php?curid
=1538544
Motivation: Web 3.0
• Simple links do not say much.
• Human inference can (sort of) fill in the blanks.
• We want computers to do the hard work.
• A human can look at 4 articles / social media profiles.
• A human cannot look at billions of articles / social media profiles.
Motivation: Web 3.0
Can we combine these two graphs into something a computer can
understand and use to infer meaning / relationships?
Semantic Model Hypermedia Graph
Motivation: Web 3.0
Infrastructure: Web 3.0- Semantic
• To help deal with this lack of meaning from links, the
World Wide Web Consortium (W3C) has been working
to develop a suite technologies to encode semantics.
• They are referred to as Web 3.0- “The Semantic Web.”
• These technologies are built on the W3C’s previous
standards– the Web 1.0 and Web 2.0 standards.
• They are:
• RDF: Resource Description Framework
• SPARQL: RDF Query Language
• OWL: Web Ontology Language
Web 3.0: RDF
• Resource Description Framework (RDF)
• See: https://www.w3.org/standards/techs/rdf
• RDF is a family of specifications that simplify building
graphs made of triples (Subject, Predicate, Object).
• It allows large Graph Databases to be built storing more
than simple links. They store meaning and interrelations
(semantics) in a way that computers can process them.
From:
https://www.w3.org/TR/2014/REC-rdf11-concepts-20140225
Web 3.0: RDF Example
From https://en.wikipedia.org/wiki/RDF_Schema
Web 3.0: SPARQL
• RDF Query Language (SPARQL)
• See: https://www.w3.org/TR/rdf-sparql-query/
• SPARQL queries usually contain a set of triple patterns
called a basic graph pattern. They are like RDF (subject,
predicate, object) where each parameter can be a
variable.
• Example: https://en.wikipedia.org/wiki/RDF_Schema
Web 3.0: OWL
• Web Ontology Language (OWL)
• See: https://www.w3.org/standards/techs/owl
• An ontology is ‘a set of concepts and categories in a
subject area or domain that shows their properties and
the relations between them.’ [source:
http://www.oxforddictionaries.com/definition/english/ontology]
Semantic Analytics
Business Uses
This Semantic Web stuff looks really complicated, why should
I care?
You can’t look at a billion sites, but your computers can.
Uses: Social Graph
• Extend the challenges of the the relatively flat
World Wide Web to Social IT.
• What is the nature of your relationship with that
person?
• What does your ‘Like’ or ’Retweet’ or ‘Repost’ mean?
• Do you agree?
• Do you disagree and want to share that disagreement with
others?
• What are you interested in?
• With flat ‘links’ and ’likes’, valuable information is
lost.
Uses: Social Graph
• Enter the Ontologies / RDF specs for different views
of the Social Graph.
• FOAF – Friend of a Friend: http://xmlns.com/foaf/spec/
• W3C’s early specification for describing relationships between
people
Uses: Social Graph
• SIOC -- Semantically-Interlinked Online Communities:
https://www.w3.org/Submission/sioc-spec/
• Developed by Science Foundation Ireland.
Uses: Social Graph
• The Open Graph Protocol: http://ogp.me/
• Developed by Facebook with developer simplicity in
mind.
• Implemented in RDFa allowing semantic context to be
added quickly and easily to any web page.
Uses: Social Graph
• FOAF, SIOC, and Open Graph all strive to add more
context to the links in the graph. The challenge
with standards is there are many options.
Citation: http://semantic-web-
journal.org/sites/default/files/swj303_0.pdf
Uses: Social Graph
• Erétéo, Guillaume, et al. "Semantic social network
analysis." arXiv preprint arXiv:0904.3701 (2009).
Uses: Financial Risk
• EDM Council (http://edmcouncil.org)
• Produce the ‘Financial Industry Business Ontology
(FIBO)’
• Focus on understanding different organizations credit
positions. Became very active after the 2008 financial
crisis.
• When it was not easy to unwind positions and
understand what was exposed, the financial institutions
realized they needed something better.
• Now building towards reporting to each other and
regulators through and against the FIBO.
See Semantic Repository @
http://edmcouncil.org/semanticsrepository/index.html
Uses: Financial Risk
See Semantic Repository @
http://edmcouncil.org/semanticsrepository/index.html
Uses: Meta-Analysis
• OpenText Election Tracker 16
• Constrained Vocabulary and Ontology defined as
Semantic Models.
• Natural Language Processing (NLP) scans news articles
and does analysis to build a representation of what the
candidates are saying / having said about them.
• See:
• http://www.electiontracker.us/
Uses: Meta-Analysis
• Drug Discovery / Pathway Exploration
• Wild, D.J., Ding, Y., Sheth, A.P., Harland, L., Gifford, E.M.,
Lajiness, M.S. Systems Chemical Biology and the
Semantic Web: what they mean for the future of drug
discovery research, Drug Discovery Today, 2012, 17, 469-
474.
http://chem2bio2rdf.org
Uses: Meta-Analysis
• Drug Discovery from Wild, D.J., et al.
Semantic Analytics
Issues
What are the managerial and social issues presented by
Semantic Analytics?
Issues: Profiling
• Facebook’s ad platform now guesses at your race
based on your behavior
• The company profiles users so it can sell against your
"ethnic affinity."
• Source: http://arstechnica.com/information-
technology/2016/03/facebooks-ad-platform-now-
guesses-at-your-race-based-on-your-behavior/
• ”ethnic affinity” is a relationship (predicate) that
could be queried from a Social Graph using
something like SPARQL.
Issues: Information Leakage
• As an example: Palantir -
https://www.palantir.com/
• Palantir has a platform for matching and building
semantic relationships between large volumes of
information from a large numbers of sources.
• As more technology providers offer Semantic Web
enabled platforms, more of your information will be
able to be correlated without your knowledge.
• If you are attempting to be anonymous but disclose
enough semantic relationships about yourself, you could
be re-identified.
See: https://www.palantir.com/2009/11/palantir-like-an-operating-system-for-data-analysis/
Issues: False Positives
• Capturing complete ontologies is nearly impossible.
Trade-offs usually required.
• “Better is the enemy of good enough.”
• What does ‘Like’ mean to Facebook?
• If you ‘Like’ a story, are you liking the piece or the
subject?
• Constant improvements required to keep from having
False Positive ‘Likes.’
• Facebook making changes:
• http://www.bloomberg.com/features/2016-facebook-
reactions-chris-cox/
Semantic Analytics
Building
Where would you start?
Where to start?
• Read W3C Specifications.
• Watch Tim Berners-Lee TED Talk:
• https://www.ted.com/talks/tim_berners_lee_on_the_n
ext_web?language=en
• Cambridge Semantics (company) offers some good
materials to get started:
• http://www.cambridgesemantics.com/semantic-
university/about-semantic-university
Questions?
Social Graphs and
Semantic Analytics
Colin Bell <colin.bell@uwaterloo.ca>
Director, Enterprise Architecture
Information Systems and Technology (IST)
University of Waterloo
Prepared guest lecture for Class 11 of W16 cs330.
Thank you!

More Related Content

What's hot

The Hidden Web, XML and the Semantic Web: A Scientific Data Management Perspe...
The Hidden Web, XML and the Semantic Web: A Scientific Data Management Perspe...The Hidden Web, XML and the Semantic Web: A Scientific Data Management Perspe...
The Hidden Web, XML and the Semantic Web: A Scientific Data Management Perspe...Dr. Aparna Varde
 
Linked Open Data in Romania
Linked Open Data in RomaniaLinked Open Data in Romania
Linked Open Data in RomaniaVlad Posea
 
ACOMP_2014_submission_70
ACOMP_2014_submission_70ACOMP_2014_submission_70
ACOMP_2014_submission_70David Nguyen
 
THGenius, rdf and open linked data for thesaurus management
THGenius, rdf and open linked data for thesaurus managementTHGenius, rdf and open linked data for thesaurus management
THGenius, rdf and open linked data for thesaurus management@CULT Srl
 
Lecture: Ontologies and the Semantic Web
Lecture: Ontologies and the Semantic WebLecture: Ontologies and the Semantic Web
Lecture: Ontologies and the Semantic WebMarina Santini
 
Website designing company in faridabad
Website designing company in faridabadWebsite designing company in faridabad
Website designing company in faridabadCss Founder
 
Internet and Web Technology (CLASS-5) [HTML DOM]
Internet and Web Technology (CLASS-5) [HTML DOM] Internet and Web Technology (CLASS-5) [HTML DOM]
Internet and Web Technology (CLASS-5) [HTML DOM] Ayes Chinmay
 
Internet and Web Technology (CLASS-4) [CSS & JS]
Internet and Web Technology (CLASS-4) [CSS & JS] Internet and Web Technology (CLASS-4) [CSS & JS]
Internet and Web Technology (CLASS-4) [CSS & JS] Ayes Chinmay
 
Quick Linked Data Introduction
Quick Linked Data IntroductionQuick Linked Data Introduction
Quick Linked Data IntroductionMichael Hausenblas
 
From the Semantic Web to the Web of Data: ten years of linking up
From the Semantic Web to the Web of Data: ten years of linking upFrom the Semantic Web to the Web of Data: ten years of linking up
From the Semantic Web to the Web of Data: ten years of linking upDavide Palmisano
 
RDFa Introductory Course Session 2/4 How RDFa
RDFa Introductory Course Session 2/4 How RDFaRDFa Introductory Course Session 2/4 How RDFa
RDFa Introductory Course Session 2/4 How RDFaPlatypus
 
The Semantic Web
The Semantic WebThe Semantic Web
The Semantic Webostephens
 
Scraping data from the web and documents
Scraping data from the web and documentsScraping data from the web and documents
Scraping data from the web and documentsTommy Tavenner
 
JSON-LD update DC 2017
JSON-LD update DC 2017JSON-LD update DC 2017
JSON-LD update DC 2017Gregg Kellogg
 
Internet and Web Technology (CLASS-7) [XML and AJAX] | NIC/NIELIT Web Technology
Internet and Web Technology (CLASS-7) [XML and AJAX] | NIC/NIELIT Web TechnologyInternet and Web Technology (CLASS-7) [XML and AJAX] | NIC/NIELIT Web Technology
Internet and Web Technology (CLASS-7) [XML and AJAX] | NIC/NIELIT Web TechnologyAyes Chinmay
 

What's hot (20)

The Hidden Web, XML and the Semantic Web: A Scientific Data Management Perspe...
The Hidden Web, XML and the Semantic Web: A Scientific Data Management Perspe...The Hidden Web, XML and the Semantic Web: A Scientific Data Management Perspe...
The Hidden Web, XML and the Semantic Web: A Scientific Data Management Perspe...
 
Linked Open Data in Romania
Linked Open Data in RomaniaLinked Open Data in Romania
Linked Open Data in Romania
 
Baker and Dekkers, "Dublin Core: The Road from Metadata Formats to Linked Data"
Baker and Dekkers, "Dublin Core: The Road from Metadata Formats to Linked Data"Baker and Dekkers, "Dublin Core: The Road from Metadata Formats to Linked Data"
Baker and Dekkers, "Dublin Core: The Road from Metadata Formats to Linked Data"
 
ACOMP_2014_submission_70
ACOMP_2014_submission_70ACOMP_2014_submission_70
ACOMP_2014_submission_70
 
THGenius, rdf and open linked data for thesaurus management
THGenius, rdf and open linked data for thesaurus managementTHGenius, rdf and open linked data for thesaurus management
THGenius, rdf and open linked data for thesaurus management
 
Lecture: Ontologies and the Semantic Web
Lecture: Ontologies and the Semantic WebLecture: Ontologies and the Semantic Web
Lecture: Ontologies and the Semantic Web
 
Website designing company in faridabad
Website designing company in faridabadWebsite designing company in faridabad
Website designing company in faridabad
 
Linked Data Tutorial
Linked Data TutorialLinked Data Tutorial
Linked Data Tutorial
 
Internet and Web Technology (CLASS-5) [HTML DOM]
Internet and Web Technology (CLASS-5) [HTML DOM] Internet and Web Technology (CLASS-5) [HTML DOM]
Internet and Web Technology (CLASS-5) [HTML DOM]
 
Internet and Web Technology (CLASS-4) [CSS & JS]
Internet and Web Technology (CLASS-4) [CSS & JS] Internet and Web Technology (CLASS-4) [CSS & JS]
Internet and Web Technology (CLASS-4) [CSS & JS]
 
Quick Linked Data Introduction
Quick Linked Data IntroductionQuick Linked Data Introduction
Quick Linked Data Introduction
 
From the Semantic Web to the Web of Data: ten years of linking up
From the Semantic Web to the Web of Data: ten years of linking upFrom the Semantic Web to the Web of Data: ten years of linking up
From the Semantic Web to the Web of Data: ten years of linking up
 
RDFa Introductory Course Session 2/4 How RDFa
RDFa Introductory Course Session 2/4 How RDFaRDFa Introductory Course Session 2/4 How RDFa
RDFa Introductory Course Session 2/4 How RDFa
 
The Semantic Web
The Semantic WebThe Semantic Web
The Semantic Web
 
Scraping data from the web and documents
Scraping data from the web and documentsScraping data from the web and documents
Scraping data from the web and documents
 
Linked (Open) Data
Linked (Open) DataLinked (Open) Data
Linked (Open) Data
 
JSON-LD update DC 2017
JSON-LD update DC 2017JSON-LD update DC 2017
JSON-LD update DC 2017
 
JSON-LD Update
JSON-LD UpdateJSON-LD Update
JSON-LD Update
 
Internet and Web Technology (CLASS-7) [XML and AJAX] | NIC/NIELIT Web Technology
Internet and Web Technology (CLASS-7) [XML and AJAX] | NIC/NIELIT Web TechnologyInternet and Web Technology (CLASS-7) [XML and AJAX] | NIC/NIELIT Web Technology
Internet and Web Technology (CLASS-7) [XML and AJAX] | NIC/NIELIT Web Technology
 
Semantic web
Semantic webSemantic web
Semantic web
 

Viewers also liked

cs241-f06-final-overview
cs241-f06-final-overviewcs241-f06-final-overview
cs241-f06-final-overviewColin Bell
 
WatITis2013: Why API? (cpbell)
WatITis2013: Why API? (cpbell)WatITis2013: Why API? (cpbell)
WatITis2013: Why API? (cpbell)Colin Bell
 
Do More with Less: Semantic Technologies
Do More with Less: Semantic TechnologiesDo More with Less: Semantic Technologies
Do More with Less: Semantic TechnologiesColin Bell
 
FINAL-PDAG-May2016--IST-EA-Update
FINAL-PDAG-May2016--IST-EA-UpdateFINAL-PDAG-May2016--IST-EA-Update
FINAL-PDAG-May2016--IST-EA-UpdateColin Bell
 
ITANA 2016: API Architecture and Implementation
ITANA 2016: API Architecture and ImplementationITANA 2016: API Architecture and Implementation
ITANA 2016: API Architecture and ImplementationColin Bell
 
WatITis2012: The Service Oriented Enterprise (SOE) [cpbell]
WatITis2012: The Service Oriented Enterprise (SOE) [cpbell]WatITis2012: The Service Oriented Enterprise (SOE) [cpbell]
WatITis2012: The Service Oriented Enterprise (SOE) [cpbell]Colin Bell
 
Progress IST-EA: Role, Responsibilities, and Activities
Progress IST-EA: Role, Responsibilities, and ActivitiesProgress IST-EA: Role, Responsibilities, and Activities
Progress IST-EA: Role, Responsibilities, and ActivitiesColin Bell
 
OUCC2015 Service Oriented Enterprise (SOE)
OUCC2015 Service Oriented Enterprise (SOE)OUCC2015 Service Oriented Enterprise (SOE)
OUCC2015 Service Oriented Enterprise (SOE)Colin Bell
 

Viewers also liked (8)

cs241-f06-final-overview
cs241-f06-final-overviewcs241-f06-final-overview
cs241-f06-final-overview
 
WatITis2013: Why API? (cpbell)
WatITis2013: Why API? (cpbell)WatITis2013: Why API? (cpbell)
WatITis2013: Why API? (cpbell)
 
Do More with Less: Semantic Technologies
Do More with Less: Semantic TechnologiesDo More with Less: Semantic Technologies
Do More with Less: Semantic Technologies
 
FINAL-PDAG-May2016--IST-EA-Update
FINAL-PDAG-May2016--IST-EA-UpdateFINAL-PDAG-May2016--IST-EA-Update
FINAL-PDAG-May2016--IST-EA-Update
 
ITANA 2016: API Architecture and Implementation
ITANA 2016: API Architecture and ImplementationITANA 2016: API Architecture and Implementation
ITANA 2016: API Architecture and Implementation
 
WatITis2012: The Service Oriented Enterprise (SOE) [cpbell]
WatITis2012: The Service Oriented Enterprise (SOE) [cpbell]WatITis2012: The Service Oriented Enterprise (SOE) [cpbell]
WatITis2012: The Service Oriented Enterprise (SOE) [cpbell]
 
Progress IST-EA: Role, Responsibilities, and Activities
Progress IST-EA: Role, Responsibilities, and ActivitiesProgress IST-EA: Role, Responsibilities, and Activities
Progress IST-EA: Role, Responsibilities, and Activities
 
OUCC2015 Service Oriented Enterprise (SOE)
OUCC2015 Service Oriented Enterprise (SOE)OUCC2015 Service Oriented Enterprise (SOE)
OUCC2015 Service Oriented Enterprise (SOE)
 

Similar to Social Graphs and Semantic Analytics

Rails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSRails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSTimo Herttua
 
Towards Interoperability between W3C Web of Things and NGSI-LD
Towards Interoperability between W3C Web of Things and NGSI-LDTowards Interoperability between W3C Web of Things and NGSI-LD
Towards Interoperability between W3C Web of Things and NGSI-LDJosé Manuel Cantera Fonseca
 
Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1Paxcel Technologies
 
Introduction web tech
Introduction web techIntroduction web tech
Introduction web techLiaquat Rahoo
 
Semantic Web 2.0: Creating Social Semantic Information Spaces
Semantic Web 2.0: Creating Social Semantic Information SpacesSemantic Web 2.0: Creating Social Semantic Information Spaces
Semantic Web 2.0: Creating Social Semantic Information SpacesJohn Breslin
 
FIWARE Global Summit - The Way Towards Interoperability between Web Of Things...
FIWARE Global Summit - The Way Towards Interoperability between Web Of Things...FIWARE Global Summit - The Way Towards Interoperability between Web Of Things...
FIWARE Global Summit - The Way Towards Interoperability between Web Of Things...FIWARE
 
The Factors For The Website
The Factors For The WebsiteThe Factors For The Website
The Factors For The WebsiteJulie May
 
Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1BeeNear
 
Introduction to Web Standards
Introduction to Web StandardsIntroduction to Web Standards
Introduction to Web StandardsJussi Pohjolainen
 
Open for Business - Open Archives, OpenURL, RSS and the Dublin Core
Open for Business - Open Archives, OpenURL, RSS and the Dublin CoreOpen for Business - Open Archives, OpenURL, RSS and the Dublin Core
Open for Business - Open Archives, OpenURL, RSS and the Dublin CoreAndy Powell
 
Evolutionary & Swarm Computing for the Semantic Web
Evolutionary & Swarm Computing for the Semantic WebEvolutionary & Swarm Computing for the Semantic Web
Evolutionary & Swarm Computing for the Semantic WebAnkit Solanki
 
Bt0078 website design
Bt0078 website design Bt0078 website design
Bt0078 website design Techglyphs
 
02 From HTML tags to XHTML
02 From HTML tags to XHTML02 From HTML tags to XHTML
02 From HTML tags to XHTMLRich Dron
 
Moving from Web 1.0 to Web 2.0
Moving from Web 1.0 to Web 2.0Moving from Web 1.0 to Web 2.0
Moving from Web 1.0 to Web 2.0Estelle Weyl
 

Similar to Social Graphs and Semantic Analytics (20)

Rails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSRails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSS
 
Iwt module 1
Iwt  module 1Iwt  module 1
Iwt module 1
 
html5 project.pptx
html5 project.pptxhtml5 project.pptx
html5 project.pptx
 
Towards Interoperability between W3C Web of Things and NGSI-LD
Towards Interoperability between W3C Web of Things and NGSI-LDTowards Interoperability between W3C Web of Things and NGSI-LD
Towards Interoperability between W3C Web of Things and NGSI-LD
 
Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1
 
Introduction web tech
Introduction web techIntroduction web tech
Introduction web tech
 
Web Programming introduction
Web Programming introductionWeb Programming introduction
Web Programming introduction
 
Semantic Web 2.0: Creating Social Semantic Information Spaces
Semantic Web 2.0: Creating Social Semantic Information SpacesSemantic Web 2.0: Creating Social Semantic Information Spaces
Semantic Web 2.0: Creating Social Semantic Information Spaces
 
FIWARE Global Summit - The Way Towards Interoperability between Web Of Things...
FIWARE Global Summit - The Way Towards Interoperability between Web Of Things...FIWARE Global Summit - The Way Towards Interoperability between Web Of Things...
FIWARE Global Summit - The Way Towards Interoperability between Web Of Things...
 
The Factors For The Website
The Factors For The WebsiteThe Factors For The Website
The Factors For The Website
 
Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1Fii Practic Frontend BeeNear - laborator 1
Fii Practic Frontend BeeNear - laborator 1
 
Introduction to Web Standards
Introduction to Web StandardsIntroduction to Web Standards
Introduction to Web Standards
 
2007 03 12 Swecr 2
2007 03 12 Swecr 22007 03 12 Swecr 2
2007 03 12 Swecr 2
 
Open for Business - Open Archives, OpenURL, RSS and the Dublin Core
Open for Business - Open Archives, OpenURL, RSS and the Dublin CoreOpen for Business - Open Archives, OpenURL, RSS and the Dublin Core
Open for Business - Open Archives, OpenURL, RSS and the Dublin Core
 
Evolutionary & Swarm Computing for the Semantic Web
Evolutionary & Swarm Computing for the Semantic WebEvolutionary & Swarm Computing for the Semantic Web
Evolutionary & Swarm Computing for the Semantic Web
 
Web Services
Web ServicesWeb Services
Web Services
 
Bt0078 website design
Bt0078 website design Bt0078 website design
Bt0078 website design
 
02 From HTML tags to XHTML
02 From HTML tags to XHTML02 From HTML tags to XHTML
02 From HTML tags to XHTML
 
Moving from Web 1.0 to Web 2.0
Moving from Web 1.0 to Web 2.0Moving from Web 1.0 to Web 2.0
Moving from Web 1.0 to Web 2.0
 
Html
HtmlHtml
Html
 

Recently uploaded

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 

Recently uploaded (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

Social Graphs and Semantic Analytics

  • 1. Social Graphs and Semantic Analytics Colin Bell <colin.bell@uwaterloo.ca> Director, Enterprise Architecture Information Systems and Technology (IST) University of Waterloo Prepared guest lecture for Class 11 of W16 cs330.
  • 3. Foundations so far… • Business Intelligence (BI) • Data Warehousing • Big Data • Social IT • I will lay base for next generation BI and the technology being used at the bleeding edge to make sense of big data. • “Business Intelligence 2.0” • Graph databases • Semantic-aware analytics
  • 4. Outline: Class 11 – Guest Lecture “Social Graphs and Semantic Analytics” • Foundations • Graph (mathematics) • Semantics (linguistics) • Infrastructure • Web 2.0 • Web 3.0 • Business Uses • Social Graph • Financial Risk • Meta-Analysis • Managerial and Social Issues • Profiling • Information Leakage • False Positives • Building • Where would you start?
  • 5. Tim Berners-Lee: Director W3C ``To a computer, the Web is a flat, boring world, devoid of meaning. This is a pity, as in fact documents on the Web describe real objects and imaginary concepts, and give particular relationships between them. For example, a document might describe a person. The title document to a house describes a house and also the ownership relation with a person. Adding semantics to the Web involves two things: allowing documents which have information in machine- readable forms, and allowing links to be created with relationship values. Only when we have this extra level of semantics will we be able to use computer power to help us exploit the information to a greater extent than our own reading.’’ - Tim Berners-Lee "W3 future directions" keynote, 1st World Wide Web Conference Geneva, May 1994 I express my network in a FOAF file, and that is a start of the revolution. - TimBL 2007, Giant Global Graph (foaf) From http://xmlns.com/foaf/spec/
  • 6. Foundations: Graph • Definition: • Set V of vertices. • Set E of unordered (edge) and ordered (arc) pairs of vertices. • Denoted as G(V,E). • Types: • Undirected Graph (Gu) • Directed Graph (Gd) • Mixed Graph (Gx) • Multigraph (Gm) http://bit.ly/1Ue3JbyGraph. Encyclopedia of Mathematics. URL: http://www.encyclopediaofmath.org/index.php?title=Graph&oldid=37438
  • 7. Foundations: Semantics • Definition: Semantics • The branch of linguistics and logic concerned with meaning. There are a number of branches and sub branches of semantics, including: • formal semantics, which studies the logical aspects of meaning, such as sense, reference, implication, and logical form, • lexical semantics, which studies word meanings and word relations, and; • conceptual semantics, which studies the cognitive structure of meaning. • We are interested in Computational Semantics, the study of how to automate the process of constructing and reasoning with meaning representations [source: https://en.wikipedia.org/wiki/Computational_semantics] http://bit.ly/1pYQ8bgSemantics. Oxford Dictionary Online. URL: http://www.oxforddictionaries.com/us/definition/american_english/semantics
  • 8. Foundations: Semantic Models • We can combine the concepts of graphs and semantics to build what are called semantic models. • Example: a.k.a. Semantic Networks
  • 9. NOTE Infrastructure This is a whirlwind tour of technologies. This is to give you a frame of reference not an exhaustive understanding. Some of this may be review, some of it may be new. If you miss the details, do not fret.
  • 10. Infrastructure: Web 2.0- Social • A number of concepts and technologies make up what we think of as Web 2.0. We’ll look at a few: • HTTP: Hypertext Transfer Protocol • URLs: Uniform Resource Locators • A specific type of Uniform Resource Identifier (URI) • HTML: Hypertext Markup Language • With JavaScript and Cascading Style Sheets (CSS) • XML: Extensible Markup Language • Web Services: • SOAP: Simple Object Access Protocol • RESTful JSON: Representational State Transfer JavaScript Object Notation
  • 11. Web 2.0: HTTP • Hypertext Transfer Protocol (HTTP) • Provides a simple dialect (verbs + structure) to ask for, give, and receive hypertext/hypermedia-based information. • Usually transferred using Transmission Control Protocol (TCP) over Internet Protocol (IP) switched networks. • Allows creation of a graph containing ‘hypertext’ vertices (nodes) linked across ‘hyperlink’ arcs. • The basis of the World Wide Web we know today.
  • 12. Web 2.0: HTTP See: https://tools.ietf.org/pdf/rfc7231.pdf
  • 13. Web 2.0: HTTP See: https://tools.ietf.org/pdf/rfc7231.pdf
  • 14. Web 2.0: URLs / URIs • A Uniform Resource Locator (URL) is a specific class of Uniform Resource Identifier (URIs) • See: https://www.ietf.org/rfc/rfc3986.txt • The standardized structure of a string to allow items to be uniquely identified (URI). Sometimes items are best identified by its location (URL). • Pattern: foo://example.com:8042/over/there?name=ferret#nose _/ ______________/_________/ _________/ __/ | | | | | scheme authority path query fragment Example from IETF RFC3986
  • 15. Web 2.0: HTML w/ (JS + CSS) • Hypertext Markup Language (HTML) • See: https://www.w3.org/TR/html5/ • Most modern websites include JavaScript (JS) to allow for ‘dynamic’ interactions. • See: http://www.ecma-international.org/ecma-262/5.1/ • Data (HTML) and dynamic logic (JavaScript) is separated from visual presentation using Cascading Style Sheets (CSS). • See: https://www.w3.org/TR/CSS/
  • 16. Web 2.0: Example HTML <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <script type="text/javascript"src="script.js”> </script> <link rel="stylesheet” type="text/css” href="style.css"> </link> </head> <body> <h1>Example HTML</h1> <button onclick="sayHello('world')"> Click Me </button> </body> </html> http://ist.uwaterloo.ca/~cpbell/1161.cs330/SOURCES/HTML-example/
  • 17. Web 2.0: Example JavaScript function sayMessage(parameter) { window.alert(parameter) } http://ist.uwaterloo.ca/~cpbell/1161.cs330/SOURCES/HTML-example/
  • 18. Web 2.0: Example CSS button { background-color: #4CAF50; /* Green */ border: none; color: white; padding: 15px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; } body { background-color: lightgreen; } h1 { color: darkgreen; margin-left: 20px; } http://ist.uwaterloo.ca/~cpbell/1161.cs330/SOURCES/HTML-example/
  • 19. Web 2.0: HTML Example With CSS + JavaScript Without CSS + JavaScript http://ist.uwaterloo.ca/~cpbell/1161.cs330/SOURCES/HTML-example/
  • 20. Web 2.0: XML • Extensible Markup Language (XML) • See: https://www.w3.org/TR/xml/ • Provides a way to structure (aka ‘markup’) arbitrary text content with tags so a computers and humans can read it. • Ostensibly the parent of HTML. • Expands on an older format called the Standard Generalized Markup Language (SGML). • Example uses: • Microsoft Office Files (docx, xlsx, pptx) • Really Simple Syndication (RSS) feeds • https://en.wikipedia.org/wiki/List_of_XML_markup_languages
  • 21. Web 2.0: XML Example Public Domain from: https://en.wikipedia.org/wiki/File:RecipeBook_XML_Example.png
  • 22. Web 2.0: Web Services • Today you learned about a number of ‘Social IT’ innovations– the innovations that moved the WWW from its Web 1.0 early past to its Web 2.0 social present. • One of the key elements of the Web 2.0- Social Web revolution was the ability to access data from different services (Wikis, Blogs, Microblogs, etc.) • Application Programming Interfaces (APIs) were key to this. When APIs work over HTTP, they are called ‘Web Services.’ • “A Web Service is a software system designed to support interoperable machine-to-machine interaction over a network.” source: https://www.w3.org/TR/2004/NOTE-ws-gloss-20040211/#webservice
  • 23. Web 2.0: SOAP • Simple Object Access Protocol (SOAP) • See: https://www.w3.org/TR/soap12/ • ``A SOAP message is an ordinary XML document containing the following elements: • An Envelope element that identifies the XML document as a SOAP message • A Header element that contains header information • A Body element that contains call and response information • A Fault element containing errors and status information’’ From http://www.w3schools.com/xml/xml_soap.asp
  • 24. Web 2.0: SOAP Example POST /InStock HTTP/1.1 Host: www.example.org Content-Type: application/soap+xml; charset=utf-8 Content-Length: 299 SOAPAction: http://www.w3.org/2003/05/soap-envelope <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap- envelope"> <soap:Header> </soap:Header> <soap:Body> <m:GetStockPrice xmlns:m="http://www.example.org/stock/Surya"> <m:StockName>IBM</m:StockName> </m:GetStockPrice> </soap:Body> </soap:Envelope> From https://en.wikipedia.org/wiki/SOAP under CC-Attribution-SA
  • 25. Web 2.0: RESTful JSON • Representational State Transfer (REST) • See Fielding, Roy Thomas. Architectural Styles and the Design of Network-based Software Architectures. Doctoral dissertation, University of California, Irvine, 2000. @ http://bit.ly/1eTY8AI • Architecture that uses HTTP and URIs/URLs to convey information constrained in specific ways. • JavaScript Object Notation (JSON) • JSON: http://www.json.org/ • A lightweight data-interchange format built on a (1) collection of name/value pairs and (2) an ordered list of values.
  • 26. Web 2.0: RESTful JSON Example GET /InStockJSON/stock/Surya/StockName/IBM HTTP/1.1 Host: www.example.org HTTP/1.1 200 OK { [ stock_name: “IBM”, stock_value: { price: “145.47”, currency:”USD” } ] }
  • 27. Web 2.0: WWW • What is the World Wide Web (WWW): • A huge directed graph of connected text and multimedia (nodes aka. vertices) across links (arcs). • The links are not very informative. • Knowing that one node links to another does not provide useful ‘rich’ context. • Connections do not have meaning outside of ‘link’. See more large network datasets at: https://snap.stanford.edu/data/#web By The Opte Project - Originally from the English Wikipedia; description page is/was here., CC BY 2.5, https://commons.wikimedia.org/w/index.php?curid =1538544
  • 28. Motivation: Web 3.0 • Simple links do not say much. • Human inference can (sort of) fill in the blanks. • We want computers to do the hard work. • A human can look at 4 articles / social media profiles. • A human cannot look at billions of articles / social media profiles.
  • 29. Motivation: Web 3.0 Can we combine these two graphs into something a computer can understand and use to infer meaning / relationships? Semantic Model Hypermedia Graph
  • 31. Infrastructure: Web 3.0- Semantic • To help deal with this lack of meaning from links, the World Wide Web Consortium (W3C) has been working to develop a suite technologies to encode semantics. • They are referred to as Web 3.0- “The Semantic Web.” • These technologies are built on the W3C’s previous standards– the Web 1.0 and Web 2.0 standards. • They are: • RDF: Resource Description Framework • SPARQL: RDF Query Language • OWL: Web Ontology Language
  • 32. Web 3.0: RDF • Resource Description Framework (RDF) • See: https://www.w3.org/standards/techs/rdf • RDF is a family of specifications that simplify building graphs made of triples (Subject, Predicate, Object). • It allows large Graph Databases to be built storing more than simple links. They store meaning and interrelations (semantics) in a way that computers can process them. From: https://www.w3.org/TR/2014/REC-rdf11-concepts-20140225
  • 33. Web 3.0: RDF Example From https://en.wikipedia.org/wiki/RDF_Schema
  • 34. Web 3.0: SPARQL • RDF Query Language (SPARQL) • See: https://www.w3.org/TR/rdf-sparql-query/ • SPARQL queries usually contain a set of triple patterns called a basic graph pattern. They are like RDF (subject, predicate, object) where each parameter can be a variable. • Example: https://en.wikipedia.org/wiki/RDF_Schema
  • 35. Web 3.0: OWL • Web Ontology Language (OWL) • See: https://www.w3.org/standards/techs/owl • An ontology is ‘a set of concepts and categories in a subject area or domain that shows their properties and the relations between them.’ [source: http://www.oxforddictionaries.com/definition/english/ontology]
  • 36. Semantic Analytics Business Uses This Semantic Web stuff looks really complicated, why should I care? You can’t look at a billion sites, but your computers can.
  • 37. Uses: Social Graph • Extend the challenges of the the relatively flat World Wide Web to Social IT. • What is the nature of your relationship with that person? • What does your ‘Like’ or ’Retweet’ or ‘Repost’ mean? • Do you agree? • Do you disagree and want to share that disagreement with others? • What are you interested in? • With flat ‘links’ and ’likes’, valuable information is lost.
  • 38. Uses: Social Graph • Enter the Ontologies / RDF specs for different views of the Social Graph. • FOAF – Friend of a Friend: http://xmlns.com/foaf/spec/ • W3C’s early specification for describing relationships between people
  • 39. Uses: Social Graph • SIOC -- Semantically-Interlinked Online Communities: https://www.w3.org/Submission/sioc-spec/ • Developed by Science Foundation Ireland.
  • 40. Uses: Social Graph • The Open Graph Protocol: http://ogp.me/ • Developed by Facebook with developer simplicity in mind. • Implemented in RDFa allowing semantic context to be added quickly and easily to any web page.
  • 41. Uses: Social Graph • FOAF, SIOC, and Open Graph all strive to add more context to the links in the graph. The challenge with standards is there are many options. Citation: http://semantic-web- journal.org/sites/default/files/swj303_0.pdf
  • 42. Uses: Social Graph • Erétéo, Guillaume, et al. "Semantic social network analysis." arXiv preprint arXiv:0904.3701 (2009).
  • 43. Uses: Financial Risk • EDM Council (http://edmcouncil.org) • Produce the ‘Financial Industry Business Ontology (FIBO)’ • Focus on understanding different organizations credit positions. Became very active after the 2008 financial crisis. • When it was not easy to unwind positions and understand what was exposed, the financial institutions realized they needed something better. • Now building towards reporting to each other and regulators through and against the FIBO. See Semantic Repository @ http://edmcouncil.org/semanticsrepository/index.html
  • 44. Uses: Financial Risk See Semantic Repository @ http://edmcouncil.org/semanticsrepository/index.html
  • 45. Uses: Meta-Analysis • OpenText Election Tracker 16 • Constrained Vocabulary and Ontology defined as Semantic Models. • Natural Language Processing (NLP) scans news articles and does analysis to build a representation of what the candidates are saying / having said about them. • See: • http://www.electiontracker.us/
  • 46. Uses: Meta-Analysis • Drug Discovery / Pathway Exploration • Wild, D.J., Ding, Y., Sheth, A.P., Harland, L., Gifford, E.M., Lajiness, M.S. Systems Chemical Biology and the Semantic Web: what they mean for the future of drug discovery research, Drug Discovery Today, 2012, 17, 469- 474. http://chem2bio2rdf.org
  • 47. Uses: Meta-Analysis • Drug Discovery from Wild, D.J., et al.
  • 48. Semantic Analytics Issues What are the managerial and social issues presented by Semantic Analytics?
  • 49. Issues: Profiling • Facebook’s ad platform now guesses at your race based on your behavior • The company profiles users so it can sell against your "ethnic affinity." • Source: http://arstechnica.com/information- technology/2016/03/facebooks-ad-platform-now- guesses-at-your-race-based-on-your-behavior/ • ”ethnic affinity” is a relationship (predicate) that could be queried from a Social Graph using something like SPARQL.
  • 50. Issues: Information Leakage • As an example: Palantir - https://www.palantir.com/ • Palantir has a platform for matching and building semantic relationships between large volumes of information from a large numbers of sources. • As more technology providers offer Semantic Web enabled platforms, more of your information will be able to be correlated without your knowledge. • If you are attempting to be anonymous but disclose enough semantic relationships about yourself, you could be re-identified. See: https://www.palantir.com/2009/11/palantir-like-an-operating-system-for-data-analysis/
  • 51. Issues: False Positives • Capturing complete ontologies is nearly impossible. Trade-offs usually required. • “Better is the enemy of good enough.” • What does ‘Like’ mean to Facebook? • If you ‘Like’ a story, are you liking the piece or the subject? • Constant improvements required to keep from having False Positive ‘Likes.’ • Facebook making changes: • http://www.bloomberg.com/features/2016-facebook- reactions-chris-cox/
  • 53. Where to start? • Read W3C Specifications. • Watch Tim Berners-Lee TED Talk: • https://www.ted.com/talks/tim_berners_lee_on_the_n ext_web?language=en • Cambridge Semantics (company) offers some good materials to get started: • http://www.cambridgesemantics.com/semantic- university/about-semantic-university
  • 55. Social Graphs and Semantic Analytics Colin Bell <colin.bell@uwaterloo.ca> Director, Enterprise Architecture Information Systems and Technology (IST) University of Waterloo Prepared guest lecture for Class 11 of W16 cs330. Thank you!

Editor's Notes

  1. From http://semantic-web-journal.org/sites/default/files/swj303_0.pdf FOAF (an acronym of Friend of a friend) SIOC (Semantically-Interlinked Online Communities) MOAT (Meaning- Of-A-Tag) ontology General User Modelling Ontology (GUMO) Bottari DLPO (The LivePost Ontology) SWUM (Social Web User Model) User Behaviour Ontology
  2. Fair Use from: http://scimaps.org/exhibit/images/130325/overview-semantics-wild.pdf