Knowledge Graph Foundations
Outline
Introduction
“A knowledge graph consists of a set of interconnected typed entities and their attributes.”
Popularized by Google in 2012
Now also used by Facebook, LinkedIn and Microsoft
The Semantic Web (“the Web of meanings”)
History
Semantic web
RDF and OWL
Knowledge graph
Application
Open innovation
Market Intelligence
IBM Watson
IBM Watson
“A knowledge graph is a set of typed entities (with attributes) which relate to one another by typed relationships.
The types of entities and relationships are defined in schemas that are called ontologies. Such defined types are called vocabulary.
In this section, we will introduce �the standard for representing knowledge graphs (RDF), �two standards for defining ontologies (RDFS and OWL) �and the standard for querying knowledge graphs (SPARQL).”
How to read this book
Outline
Representing
Knowledge Graphs
RDF - Resource Description Framework
RDF Triples/Statements
RDF Triples/Statements Example 1
Kristian
Taco
likes
RDF Triples/Statements Example 2
Node Types
Node Types (cont.)
IRI�Blank�Literal
IRI�Blank
IRI
Node Types Example
IRI
Literal
IRI
Prefixes
RDF Serialising
RDF Serialising Example
@prefix dbpedia: <http://dbpedia.org/resource/>
@prefix dbpedia-owl: <http://dbpedia.org/ontology/>�
dbpedia:Bolivia dbpedia-owl:longName "Plurinational State of Bolivia" .
Example with Turtle:
Defining Ontologies
RDFS - Resource Description Framework Schema
RDFS Example
org:Organization rdf:type rdfs:Class .
org:Start-up a rdfs:Class .
org:hasHomePage rdf:type rdfs:Property .
org:Start-up rdfs:subClassOf org:Organization .
OWL - Web Ontology Language
OWL Example
Example from the Travel ontology:
:borders rdf:type owl:ObjectProperty ,� owl:SymmetricProperty ;� owl:propertyChainAxiom ( :hasBoundary� :boundaryOf� ) .
Querying Knowledge Graphs
SPARQL
Mer om TURTLE og SPARQL
De fire "ledige" fikser dette
“A knowledge graph is a set of typed entities (with attributes) which relate to one another by typed relationships.
The types of entities and relationships are defined in schemas that are called ontologies. Such defined types are called vocabulary.
In this section, we will introduce �the standard for representing knowledge graphs (RDF), �two standards for defining ontologies (RDFS and OWL) �and the standard for querying knowledge graphs (SPARQL).”
Oversikt
Some standard
schemas and vocabularies
Standard Ontologies and Vocabularies
schema.org
Oversikt
Data Lifting Standards
Data Lifting Standards
Why? 👀
Legacy data
RDB2RDF
Relational database 2 Resource description framework
Make a choice
Tools
Morph-RDB https://github.com/oeg-upm/morph-rdb
D2RQ: http://d2rq.org/ (view only)
Virtuoso20: http://virtuoso.openlinksw. com/dataspace/doc/dav/wiki/Main/VirtR2RML (R2RML)
GRDDL
X(HT)ML -> RDF
Crawl webpages, discover rdf standards, use GRDDL to convert to your own knowledge graph
Knowledge graph vs Linked data
Linked data
A knowledge graph is a structured dataset that is compatible with the RDF data model and has an (OWL) ontology as its schema.
RDF vs Linked Data vs Knowledge Graph
Y= Yes, NN = Not Necessarily, N = No, L= Limited
Web search vs enterprise
Web
Enterprise