SlideShare a Scribd company logo
©Cambridge Semantics Inc.
Company Confidential
SPARQL 101
Thomas Cook
Sales Director, AnzoGraph DB
Thomas.Cook@cambridgesemantics.com
©Cambridge Semantics Inc.
Company Confidential
▪ History lesson: What are the origins of SPARQL?
▪ Semantic Web
▪ Linked Open Data
▪ Knowledge Graphs
▪ What is RDF ?
▪ What’s a URI ?
▪ What is SPARQL?
Agenda
Origins of The Semantic Web
„The Semantic Web is an extension of the current web in which
information is given well-defined meaning, better enabling
computers and people to work in cooperation"
Tim Berners-Lee, James Hendler, Ora Lassila: The Semantic Web, Scientific American, 284(5), pp. 34-43(2001)
The World's Web Standards Organization
©Cambridge Semantics Inc.
Company Confidential
https://lod-cloud.net/
Linked Open Data
The dataset currently contains
1,239 datasets with 16,147 links
(Mar 2019)
Linked Data (name coined in 2006 by
Tim Berners-Lee)
©Cambridge Semantics Inc.
Company Confidential
https://wiki.dbpedia.org/about
DBPedia
DBpedia has information stored from 125 languages
DBpedia release consists of 3 billion pieces of information (RDF triples)
580 million were extracted from the English edition of Wikipedia
2.46 billion were extracted from other language editions
DBpedia is an open knowledge graph (OKG) which is available for everyone on the Web
A knowledge graph is a special kind of database which stores knowledge in a machine-readable form and
provides a means for information to be collected, organized, shared, searched and utilized
Google uses a similar approach to create those knowledge cards during search
©Cambridge Semantics Inc.
Company Confidential
http://mappings.dbpedia.org/server/ontology/classes/
DBPedia
Instances per class
Class Instances
Resource (overall) 4,233,000
Place 735,000
Person 1,450,000
Work 411,000
Species 251,000
Organisation 241,000
The DBpedia Ontology currently contains about 4,233,000 instances.
The table below lists the number of instances for several classes within
the ontology:
• http://dbpedia.org/snorql/?query=%23select+distinct+%3FConcept+w
here+%7B%5B%5D+a+%3FConcept%7D+LIMIT+100%0D%0A%0D
%0A%23Select+distinct+*+where+%7B+%3Fs+a+foaf%3APerson+%
7D+limit+100%0D%0A%0D%0ASelect+distinct+*+where+%7B+%3F
s+%3Fp+%3Fo+.%0D%0A%0D%0Afilter+%28regex%28%3Fs%2C+
%22Pacino%22%2C+%22i%22%29%29%0D%0A%7D+limit+100%0
D%0A%0D%0A+
SPARQL Explorer
RDF (Resource Description Framework) is the data model of the Semantic Web. That means
that all data in Semantic Web technologies is represented as RDF
RDF's simple data model and ability to model disparate, abstract concepts has also led to its
increasing use in knowledge management applications unrelated to Semantic Web activity
What is RDF ?
At the most atomic level,
RDF is made of Triples.
A “Triple” is a single fact
Subject Object
E.g. “The Sky is Blue”
Sky Blue
Color
Predicate
https://en.wikipedia.org/wiki/Resource_Description_Framework
RDF is not like the tabular data model of relational databases. Nor is it like the
trees of the XML world. Instead, RDF is a graph
It’s a labeled, directed graph.
RDF Graph
Alice Telsa
drives
Bill
friend_of
Austin
resident_of
<Alice> <drives> <Tesla> .
<Alice> <friend_of> <Bill> .
<Alice> <resident_of> <Austin>.
<Tesla> <color> “blue” .
RDF Serializations – Turtle, N-Triples, RDFa, JSON-LD
Alice Tesla
drives
Bill
friend_of
Austin
resident_of
color
“blue”
Resource nodes A resource is anything that can have things said about it. It’s easy to think of a
resource as a thing vs. a value. In a visual representation, resources are represented by ovals.
Literal nodes The term literal is a fancy word for value. In a visual representation, literals are
represented by rectangles.
Blank nodes
3 Types of Nodes
Alice Tesla
drives
Bill
friend_of
Austin
resident_of
color
“blue”
<Alice>
Expressed as a full URI would look something more like:
<http://example.com/resource/person#Alice>
And
<drives>
Would be more like:
<http://example.com/resource/person#drives>
URIs – Uniform Resource Identifier
How can we uniquely ID resources universally? Add a URL to the start of your ID.
<http://example.com/resource/person#Alice> <http://example.com/resource/person#drives> <http://example.com/resource/person#Tesla> .
<http://example.com/resource/person#Alice> <http://example.com/resource/person#friend_of> <http://example.com/resource/person#Bill> .
<http://example.com/resource/person#Alice> <http://example.com/resource/person#resident_of> <http://example.com/resource/person#Austin>.
<http://example.com/resource/car#Tesla> <http://example.com/car#color> “blue” .
SPARQL PREFIX abbreviation
BEFORE:
<http://example.com/resource/person#Alice> <http://example.com/resource/person#drives> <http://example.com/resource/car#Tesla
<http://example.com/resource/person#Alice> <http://example.com/resource/person#friend_of> <http://example.com/resource/person
<http://example.com/resource/person#Alice> <http://example.com/resource/person#resident_of> <http://example.com/resource#Aus
<http://example.com/resource#Tesla> <http://example.com/resource#color> “blue” .
With PREFIX we can get a much shorter representation with abbreviations.
AFTER:
PREFIX tslap: <http://example.com/resource/person#> .
PREFIX tslar: <http://example.com/resource#> .
tslap:Alice tslap:drives tslac:Tesla .
tslap:Alice tslap:friend_of tslap:Bill .
tslap:Alice tslap:resident_of tslar:Austin .
tslar:Tesla tslar:color “blue”.
<Alice> <drives> <Tesla> .
<Alice> <friend_of> <Bill> .
<Alice> <resident_of> <Austin>.
<Tesla> <color> “blue” .
Same as below without URIs, but
now universally uniquely identified
PREFIX Short For:
rdf: http://xmlns.com/foaf/0.1/
rdfs: http://www.w3.org/2000/01/rdf-schema#
owl: http://www.w3.org/2002/07/owl#
xsd: http://www.w3.org/2001/XMLSchema#
dc: http://purl.org/dc/elements/1.1/
foaf: http://xmlns.com/foaf/0.1/
Common Prefixes
More common prefixes at http://prefix.cc
SPARQL stands for:
SPARQL Protocol And RDF Query Language
A query language and a protocol
What is SPARQL?
A SPARQL QUERY:
SELECT …
FROM ….
WHERE { … }
GROUP BY …
ORDER BY …
SELECT – Identifies the values to return
FROM – selects the dataset to query
WHERE – the graph patterns to match
GROUP BY – group aggregations on this field
ORDER BY – order the result set
INSERT DATA { GRAPH <test1> {
<Alice> <drives> <Tesla> .
<Alice> <friend_of> <Bill> .
<Alice> <resident_of> <Austin>.
<Tesla> <color> "blue" .
}
}
Let’s INSERT some data
SELECT (count(*) as ?count)
FROM <test1>
WHERE {
?s ?p ?o .
}
RESULT:
count
--------
4
Let’s count how many triples are in the graph
SELECT ?s ?p ?o
FROM <test1>
WHERE {
?s ?p ?o .
}
Show all the triples
SELECT ?s
FROM <test1>
WHERE {
?s <drives> <Tesla> .
}
RESULT:
s
-------
Alice
1 rows
Use graph patterns to find data you want
Who drives a Tesla?
SELECT ?s
FROM <test1>
WHERE {
?s <drives> ?car .
?car <color> "blue" .
}
Who drives a blue car?
Join operation
Use graph patterns to match data in the graph
Who drives a blue car?
Join operation
Use graph patterns to match data in the graph
SELECT ?s ?color ?year
FROM <test1>
WHERE {
?s <drives> ?car .
?car <color> ?color .
?car <year> ?year .
}
RESULT? No results. Why? <year> does not exist in our graph
Graph patterns must exist in the WHERE
Who drives a car and what’s the color and year?
SELECT ?s ?color ?year
FROM <test1>
WHERE {
?s <drives> ?car .
?car <color> ?color .
OPTIONAL{?car <year> ?year . }
}
RESULT:
s | color | year
-------+-------+------
Alice | blue |
1 rows
Who drives a blue car?
USE OPTIONAL for Graph patterns that might not exist
• ORDER BY: This modifier sorts the result set in a particular order. It sorts query solutions on the
value of one or more variables.
• OFFSET: Using this modifier in conjunction with LIMIT and ORDER BY returns a slice of a sorted
solution set, for example, for paging.
• LIMIT: This modifier restricts the results to return a certain number of solutions.
• GROUP BY: This modifier is used with aggregate functions and specifies the key variables to use
to partition the solutions into groups. For information about AnzoGraph GROUP BY clause
extensions, see Advanced Grouping Sets.
• HAVING: This modifier is used with aggregate functions and further filters the results after
applying the aggregates.
SPARQL SELECT, like SQL, has several solution modifiers
The built-in SPARQL aggregate functions:
AVG: Calculates the average value for a numeric expression.
COUNT: Counts the number of times the specified value is bound to the given
variable.
GROUP_CONCAT: Performs a string concatenation of all of the values that are
bound to the given variable.
MAX: Returns the maximum value from the specified set of values.
MIN: Returns the minimum value from the specified set of values.
SAMPLE: Returns an arbitrary value from the specified set of values.
SUM: Adds the specified values.
Aggregate Functions
There are Four standard SPARQL query forms:
SELECT: Run SELECT queries when you want to find and return all of the data that
matches certain patterns.
CONSTRUCT: Run CONSTRUCT queries when you want to create or transform data
based on the existing data.
ASK: Run ASK queries when you want to know whether a certain pattern exists in the
data. ASK queries return only "true" or "false" to indicate whether a solution exists.
DESCRIBE: Run DESCRIBE queries when you want to view the RDF graph that
describes a particular resource.
Query Forms
©Cambridge Semantics Inc.
Company Confidential
©Cambridge Semantics Inc.
Company Confidential
info.anzograph@CambridgeSemantics.com
www.anzograph.com
AnzoGraph.com

More Related Content

What's hot

Verizon Centralizes Data into a Data Lake in Real Time for Analytics
Verizon Centralizes Data into a Data Lake in Real Time for AnalyticsVerizon Centralizes Data into a Data Lake in Real Time for Analytics
Verizon Centralizes Data into a Data Lake in Real Time for Analytics
DataWorks Summit
 
Building Data Lakes with Apache Airflow
Building Data Lakes with Apache AirflowBuilding Data Lakes with Apache Airflow
Building Data Lakes with Apache Airflow
Gary Stafford
 
How to boost your datamanagement with Dremio ?
How to boost your datamanagement with Dremio ?How to boost your datamanagement with Dremio ?
How to boost your datamanagement with Dremio ?
Vincent Terrasi
 
2017-01-08-scaling tribalknowledge
2017-01-08-scaling tribalknowledge2017-01-08-scaling tribalknowledge
2017-01-08-scaling tribalknowledge
Christopher Williams
 
Democratizing data science Using spark, hive and druid
Democratizing data science Using spark, hive and druidDemocratizing data science Using spark, hive and druid
Democratizing data science Using spark, hive and druid
DataWorks Summit
 
Options for Data Prep - A Survey of the Current Market
Options for Data Prep - A Survey of the Current MarketOptions for Data Prep - A Survey of the Current Market
Options for Data Prep - A Survey of the Current Market
Dremio Corporation
 
Charles Ivie
Charles Ivie Charles Ivie
Charles Ivie
Connected Data World
 
Loan Decisioning Transformation
Loan Decisioning TransformationLoan Decisioning Transformation
Loan Decisioning Transformation
DataWorks Summit/Hadoop Summit
 
Building Custom Big Data Integrations
Building Custom Big Data IntegrationsBuilding Custom Big Data Integrations
Building Custom Big Data Integrations
Pat Patterson
 
Preparing Your Data for Cloud Analytics & AI/ML
Preparing Your Data for Cloud Analytics & AI/ML Preparing Your Data for Cloud Analytics & AI/ML
Preparing Your Data for Cloud Analytics & AI/ML
Amazon Web Services
 
Choosing the Right Graph Database to Succeed in Your Project
Choosing the Right Graph Database to Succeed in Your ProjectChoosing the Right Graph Database to Succeed in Your Project
Choosing the Right Graph Database to Succeed in Your Project
Ontotext
 
Dealing With Drift - Building an Enterprise Data Lake
Dealing With Drift - Building an Enterprise Data LakeDealing With Drift - Building an Enterprise Data Lake
Dealing With Drift - Building an Enterprise Data Lake
Pat Patterson
 
Presto for apps deck varada prestoconf
Presto for apps deck varada prestoconfPresto for apps deck varada prestoconf
Presto for apps deck varada prestoconf
Ori Reshef
 
Bi on Big Data - Strata 2016 in London
Bi on Big Data - Strata 2016 in LondonBi on Big Data - Strata 2016 in London
Bi on Big Data - Strata 2016 in London
Dremio Corporation
 
Дмитрий Лавриненко "Big & Fast Data for Identity & Telemetry services"
Дмитрий Лавриненко "Big & Fast Data for Identity & Telemetry services"Дмитрий Лавриненко "Big & Fast Data for Identity & Telemetry services"
Дмитрий Лавриненко "Big & Fast Data for Identity & Telemetry services"
Fwdays
 
New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...
New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...
New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...
Rittman Analytics
 
How to Build Modern Data Architectures Both On Premises and in the Cloud
How to Build Modern Data Architectures Both On Premises and in the CloudHow to Build Modern Data Architectures Both On Premises and in the Cloud
How to Build Modern Data Architectures Both On Premises and in the Cloud
VMware Tanzu
 
Hadoop Journey at Walgreens
Hadoop Journey at WalgreensHadoop Journey at Walgreens
Hadoop Journey at Walgreens
DataWorks Summit
 
How a Tweet Went Viral - BIWA Summit 2017
How a Tweet Went Viral - BIWA Summit 2017How a Tweet Went Viral - BIWA Summit 2017
How a Tweet Went Viral - BIWA Summit 2017
Rittman Analytics
 
Big Data processing with Apache Spark
Big Data processing with Apache SparkBig Data processing with Apache Spark
Big Data processing with Apache Spark
Lucian Neghina
 

What's hot (20)

Verizon Centralizes Data into a Data Lake in Real Time for Analytics
Verizon Centralizes Data into a Data Lake in Real Time for AnalyticsVerizon Centralizes Data into a Data Lake in Real Time for Analytics
Verizon Centralizes Data into a Data Lake in Real Time for Analytics
 
Building Data Lakes with Apache Airflow
Building Data Lakes with Apache AirflowBuilding Data Lakes with Apache Airflow
Building Data Lakes with Apache Airflow
 
How to boost your datamanagement with Dremio ?
How to boost your datamanagement with Dremio ?How to boost your datamanagement with Dremio ?
How to boost your datamanagement with Dremio ?
 
2017-01-08-scaling tribalknowledge
2017-01-08-scaling tribalknowledge2017-01-08-scaling tribalknowledge
2017-01-08-scaling tribalknowledge
 
Democratizing data science Using spark, hive and druid
Democratizing data science Using spark, hive and druidDemocratizing data science Using spark, hive and druid
Democratizing data science Using spark, hive and druid
 
Options for Data Prep - A Survey of the Current Market
Options for Data Prep - A Survey of the Current MarketOptions for Data Prep - A Survey of the Current Market
Options for Data Prep - A Survey of the Current Market
 
Charles Ivie
Charles Ivie Charles Ivie
Charles Ivie
 
Loan Decisioning Transformation
Loan Decisioning TransformationLoan Decisioning Transformation
Loan Decisioning Transformation
 
Building Custom Big Data Integrations
Building Custom Big Data IntegrationsBuilding Custom Big Data Integrations
Building Custom Big Data Integrations
 
Preparing Your Data for Cloud Analytics & AI/ML
Preparing Your Data for Cloud Analytics & AI/ML Preparing Your Data for Cloud Analytics & AI/ML
Preparing Your Data for Cloud Analytics & AI/ML
 
Choosing the Right Graph Database to Succeed in Your Project
Choosing the Right Graph Database to Succeed in Your ProjectChoosing the Right Graph Database to Succeed in Your Project
Choosing the Right Graph Database to Succeed in Your Project
 
Dealing With Drift - Building an Enterprise Data Lake
Dealing With Drift - Building an Enterprise Data LakeDealing With Drift - Building an Enterprise Data Lake
Dealing With Drift - Building an Enterprise Data Lake
 
Presto for apps deck varada prestoconf
Presto for apps deck varada prestoconfPresto for apps deck varada prestoconf
Presto for apps deck varada prestoconf
 
Bi on Big Data - Strata 2016 in London
Bi on Big Data - Strata 2016 in LondonBi on Big Data - Strata 2016 in London
Bi on Big Data - Strata 2016 in London
 
Дмитрий Лавриненко "Big & Fast Data for Identity & Telemetry services"
Дмитрий Лавриненко "Big & Fast Data for Identity & Telemetry services"Дмитрий Лавриненко "Big & Fast Data for Identity & Telemetry services"
Дмитрий Лавриненко "Big & Fast Data for Identity & Telemetry services"
 
New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...
New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...
New World Hadoop Architectures (& What Problems They Really Solve) for Oracle...
 
How to Build Modern Data Architectures Both On Premises and in the Cloud
How to Build Modern Data Architectures Both On Premises and in the CloudHow to Build Modern Data Architectures Both On Premises and in the Cloud
How to Build Modern Data Architectures Both On Premises and in the Cloud
 
Hadoop Journey at Walgreens
Hadoop Journey at WalgreensHadoop Journey at Walgreens
Hadoop Journey at Walgreens
 
How a Tweet Went Viral - BIWA Summit 2017
How a Tweet Went Viral - BIWA Summit 2017How a Tweet Went Viral - BIWA Summit 2017
How a Tweet Went Viral - BIWA Summit 2017
 
Big Data processing with Apache Spark
Big Data processing with Apache SparkBig Data processing with Apache Spark
Big Data processing with Apache Spark
 

Similar to AnzoGraph DB - SPARQL 101

Introduction to metadata cleansing using SPARQL update queries
Introduction to metadata cleansing using SPARQL update queriesIntroduction to metadata cleansing using SPARQL update queries
Introduction to metadata cleansing using SPARQL update queries
European Commission
 
A Little SPARQL in your Analytics
A Little SPARQL in your AnalyticsA Little SPARQL in your Analytics
A Little SPARQL in your Analytics
Dr. Neil Brittliff
 
Re-using Media on the Web: Media fragment re-mixing and playout
Re-using Media on the Web: Media fragment re-mixing and playoutRe-using Media on the Web: Media fragment re-mixing and playout
Re-using Media on the Web: Media fragment re-mixing and playout
MediaMixerCommunity
 
Querying the Semantic Web with SPARQL
Querying the Semantic Web with SPARQLQuerying the Semantic Web with SPARQL
Querying the Semantic Web with SPARQLEmanuele Della Valle
 
Triplestore and SPARQL
Triplestore and SPARQLTriplestore and SPARQL
Triplestore and SPARQLLino Valdivia
 
NO SQL Databases, Big Data and the cloud
NO SQL Databases, Big Data and the cloudNO SQL Databases, Big Data and the cloud
NO SQL Databases, Big Data and the cloud
Manu Cohen-Yashar
 
Apache spark - Architecture , Overview & libraries
Apache spark - Architecture , Overview & librariesApache spark - Architecture , Overview & libraries
Apache spark - Architecture , Overview & libraries
Walaa Hamdy Assy
 
final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)Ankit Rathi
 
SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343
SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343
SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343
Edgar Alejandro Villegas
 
Annotating search results from web databases-IEEE Transaction Paper 2013
Annotating search results from web databases-IEEE Transaction Paper 2013Annotating search results from web databases-IEEE Transaction Paper 2013
Annotating search results from web databases-IEEE Transaction Paper 2013
Yadhu Kiran
 
GraphDatabase.pptx
GraphDatabase.pptxGraphDatabase.pptx
GraphDatabase.pptx
JeyaVarthini1
 
Gerry McNicol Graph Databases
Gerry McNicol Graph DatabasesGerry McNicol Graph Databases
Gerry McNicol Graph Databases
Gerry McNicol
 
SPARQL
SPARQLSPARQL
SPARQL
Raji Ghawi
 
Sparql service-description
Sparql service-descriptionSparql service-description
Sparql service-description
STIinnsbruck
 
Sustainable queryable access to Linked Data
Sustainable queryable access to Linked DataSustainable queryable access to Linked Data
Sustainable queryable access to Linked Data
Ruben Verborgh
 
SPARQL Query Forms
SPARQL Query FormsSPARQL Query Forms
SPARQL Query Forms
Leigh Dodds
 
Semantic web meetup – sparql tutorial
Semantic web meetup – sparql tutorialSemantic web meetup – sparql tutorial
Semantic web meetup – sparql tutorial
AdonisDamian
 
Visualizations using Visualbox
Visualizations using VisualboxVisualizations using Visualbox
Visualizations using Visualbox
Alvaro Graves
 
SPARQL in the Semantic Web
SPARQL in the Semantic WebSPARQL in the Semantic Web
SPARQL in the Semantic WebJan Beeck
 
The Semantic Web #10 - SPARQL
The Semantic Web #10 - SPARQLThe Semantic Web #10 - SPARQL
The Semantic Web #10 - SPARQL
Myungjin Lee
 

Similar to AnzoGraph DB - SPARQL 101 (20)

Introduction to metadata cleansing using SPARQL update queries
Introduction to metadata cleansing using SPARQL update queriesIntroduction to metadata cleansing using SPARQL update queries
Introduction to metadata cleansing using SPARQL update queries
 
A Little SPARQL in your Analytics
A Little SPARQL in your AnalyticsA Little SPARQL in your Analytics
A Little SPARQL in your Analytics
 
Re-using Media on the Web: Media fragment re-mixing and playout
Re-using Media on the Web: Media fragment re-mixing and playoutRe-using Media on the Web: Media fragment re-mixing and playout
Re-using Media on the Web: Media fragment re-mixing and playout
 
Querying the Semantic Web with SPARQL
Querying the Semantic Web with SPARQLQuerying the Semantic Web with SPARQL
Querying the Semantic Web with SPARQL
 
Triplestore and SPARQL
Triplestore and SPARQLTriplestore and SPARQL
Triplestore and SPARQL
 
NO SQL Databases, Big Data and the cloud
NO SQL Databases, Big Data and the cloudNO SQL Databases, Big Data and the cloud
NO SQL Databases, Big Data and the cloud
 
Apache spark - Architecture , Overview & libraries
Apache spark - Architecture , Overview & librariesApache spark - Architecture , Overview & libraries
Apache spark - Architecture , Overview & libraries
 
final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)
 
SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343
SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343
SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343
 
Annotating search results from web databases-IEEE Transaction Paper 2013
Annotating search results from web databases-IEEE Transaction Paper 2013Annotating search results from web databases-IEEE Transaction Paper 2013
Annotating search results from web databases-IEEE Transaction Paper 2013
 
GraphDatabase.pptx
GraphDatabase.pptxGraphDatabase.pptx
GraphDatabase.pptx
 
Gerry McNicol Graph Databases
Gerry McNicol Graph DatabasesGerry McNicol Graph Databases
Gerry McNicol Graph Databases
 
SPARQL
SPARQLSPARQL
SPARQL
 
Sparql service-description
Sparql service-descriptionSparql service-description
Sparql service-description
 
Sustainable queryable access to Linked Data
Sustainable queryable access to Linked DataSustainable queryable access to Linked Data
Sustainable queryable access to Linked Data
 
SPARQL Query Forms
SPARQL Query FormsSPARQL Query Forms
SPARQL Query Forms
 
Semantic web meetup – sparql tutorial
Semantic web meetup – sparql tutorialSemantic web meetup – sparql tutorial
Semantic web meetup – sparql tutorial
 
Visualizations using Visualbox
Visualizations using VisualboxVisualizations using Visualbox
Visualizations using Visualbox
 
SPARQL in the Semantic Web
SPARQL in the Semantic WebSPARQL in the Semantic Web
SPARQL in the Semantic Web
 
The Semantic Web #10 - SPARQL
The Semantic Web #10 - SPARQLThe Semantic Web #10 - SPARQL
The Semantic Web #10 - SPARQL
 

More from Cambridge Semantics

Risk Analytics Using Knowledge Graphs / FIBO with Deep Learning
Risk Analytics Using Knowledge Graphs / FIBO with Deep LearningRisk Analytics Using Knowledge Graphs / FIBO with Deep Learning
Risk Analytics Using Knowledge Graphs / FIBO with Deep Learning
Cambridge Semantics
 
Using Machine Teaching in Text Analysis: Case Study on Using Machine Teaching...
Using Machine Teaching in Text Analysis: Case Study on Using Machine Teaching...Using Machine Teaching in Text Analysis: Case Study on Using Machine Teaching...
Using Machine Teaching in Text Analysis: Case Study on Using Machine Teaching...
Cambridge Semantics
 
Knowledge Graph Discussion: Foundational Capability for Data Fabric, Data Int...
Knowledge Graph Discussion: Foundational Capability for Data Fabric, Data Int...Knowledge Graph Discussion: Foundational Capability for Data Fabric, Data Int...
Knowledge Graph Discussion: Foundational Capability for Data Fabric, Data Int...
Cambridge Semantics
 
Graph-driven Data Integration: Accelerating and Automating Data Delivery for ...
Graph-driven Data Integration: Accelerating and Automating Data Delivery for ...Graph-driven Data Integration: Accelerating and Automating Data Delivery for ...
Graph-driven Data Integration: Accelerating and Automating Data Delivery for ...
Cambridge Semantics
 
Fireside Chat with Bloor Research: State of the Graph Database Market 2020
Fireside Chat with Bloor Research: State of the Graph Database Market 2020Fireside Chat with Bloor Research: State of the Graph Database Market 2020
Fireside Chat with Bloor Research: State of the Graph Database Market 2020
Cambridge Semantics
 
AnzoGraph DB: Driving AI and Machine Insights with Knowledge Graphs in a Conn...
AnzoGraph DB: Driving AI and Machine Insights with Knowledge Graphs in a Conn...AnzoGraph DB: Driving AI and Machine Insights with Knowledge Graphs in a Conn...
AnzoGraph DB: Driving AI and Machine Insights with Knowledge Graphs in a Conn...
Cambridge Semantics
 
Introduction to RDF*
Introduction to RDF*Introduction to RDF*
Introduction to RDF*
Cambridge Semantics
 
Using Cloud Automation Technologies to Deliver an Enterprise Data Fabric
Using Cloud Automation Technologies to Deliver an Enterprise Data FabricUsing Cloud Automation Technologies to Deliver an Enterprise Data Fabric
Using Cloud Automation Technologies to Deliver an Enterprise Data Fabric
Cambridge Semantics
 
Using a Semantic and Graph-based Data Catalog in a Modern Data Fabric
Using a Semantic and Graph-based Data Catalog in a Modern Data FabricUsing a Semantic and Graph-based Data Catalog in a Modern Data Fabric
Using a Semantic and Graph-based Data Catalog in a Modern Data Fabric
Cambridge Semantics
 
Healthcare and Life Sciences: Two Industries Separated by Common Data
Healthcare and Life Sciences: Two Industries Separated by Common DataHealthcare and Life Sciences: Two Industries Separated by Common Data
Healthcare and Life Sciences: Two Industries Separated by Common Data
Cambridge Semantics
 
Knowledge Graph for Machine Learning and Data Science
Knowledge Graph for Machine Learning and Data ScienceKnowledge Graph for Machine Learning and Data Science
Knowledge Graph for Machine Learning and Data Science
Cambridge Semantics
 
Modern Data Discovery and Integration in Insurance
Modern Data Discovery and Integration in InsuranceModern Data Discovery and Integration in Insurance
Modern Data Discovery and Integration in Insurance
Cambridge Semantics
 
Big Data Fabric 2.0 Drives Data Democratization
Big Data Fabric 2.0 Drives Data DemocratizationBig Data Fabric 2.0 Drives Data Democratization
Big Data Fabric 2.0 Drives Data Democratization
Cambridge Semantics
 
Modern Data Discovery and Integration in Retail Banking
Modern Data Discovery and Integration in Retail BankingModern Data Discovery and Integration in Retail Banking
Modern Data Discovery and Integration in Retail Banking
Cambridge Semantics
 
Should a Graph Database Be in Your Next Data Warehouse Stack?
Should a Graph Database Be in Your Next Data Warehouse Stack?Should a Graph Database Be in Your Next Data Warehouse Stack?
Should a Graph Database Be in Your Next Data Warehouse Stack?
Cambridge Semantics
 
Going Beyond Rows and Columns with Graph Analytics
Going Beyond Rows and Columns with Graph AnalyticsGoing Beyond Rows and Columns with Graph Analytics
Going Beyond Rows and Columns with Graph Analytics
Cambridge Semantics
 
Accelerate Pharma R&D with Cross-Study Analytics
Accelerate Pharma R&D with Cross-Study AnalyticsAccelerate Pharma R&D with Cross-Study Analytics
Accelerate Pharma R&D with Cross-Study Analytics
Cambridge Semantics
 
Accelerate Digital Transformation with an Enterprise Big Data Fabric
Accelerate Digital Transformation with an Enterprise Big Data FabricAccelerate Digital Transformation with an Enterprise Big Data Fabric
Accelerate Digital Transformation with an Enterprise Big Data Fabric
Cambridge Semantics
 
From Data Lakes to the Data Fabric: Our Vision for Digital Strategy
From Data Lakes to the Data Fabric: Our Vision for Digital StrategyFrom Data Lakes to the Data Fabric: Our Vision for Digital Strategy
From Data Lakes to the Data Fabric: Our Vision for Digital Strategy
Cambridge Semantics
 
The Year of the Graph
The Year of the GraphThe Year of the Graph
The Year of the Graph
Cambridge Semantics
 

More from Cambridge Semantics (20)

Risk Analytics Using Knowledge Graphs / FIBO with Deep Learning
Risk Analytics Using Knowledge Graphs / FIBO with Deep LearningRisk Analytics Using Knowledge Graphs / FIBO with Deep Learning
Risk Analytics Using Knowledge Graphs / FIBO with Deep Learning
 
Using Machine Teaching in Text Analysis: Case Study on Using Machine Teaching...
Using Machine Teaching in Text Analysis: Case Study on Using Machine Teaching...Using Machine Teaching in Text Analysis: Case Study on Using Machine Teaching...
Using Machine Teaching in Text Analysis: Case Study on Using Machine Teaching...
 
Knowledge Graph Discussion: Foundational Capability for Data Fabric, Data Int...
Knowledge Graph Discussion: Foundational Capability for Data Fabric, Data Int...Knowledge Graph Discussion: Foundational Capability for Data Fabric, Data Int...
Knowledge Graph Discussion: Foundational Capability for Data Fabric, Data Int...
 
Graph-driven Data Integration: Accelerating and Automating Data Delivery for ...
Graph-driven Data Integration: Accelerating and Automating Data Delivery for ...Graph-driven Data Integration: Accelerating and Automating Data Delivery for ...
Graph-driven Data Integration: Accelerating and Automating Data Delivery for ...
 
Fireside Chat with Bloor Research: State of the Graph Database Market 2020
Fireside Chat with Bloor Research: State of the Graph Database Market 2020Fireside Chat with Bloor Research: State of the Graph Database Market 2020
Fireside Chat with Bloor Research: State of the Graph Database Market 2020
 
AnzoGraph DB: Driving AI and Machine Insights with Knowledge Graphs in a Conn...
AnzoGraph DB: Driving AI and Machine Insights with Knowledge Graphs in a Conn...AnzoGraph DB: Driving AI and Machine Insights with Knowledge Graphs in a Conn...
AnzoGraph DB: Driving AI and Machine Insights with Knowledge Graphs in a Conn...
 
Introduction to RDF*
Introduction to RDF*Introduction to RDF*
Introduction to RDF*
 
Using Cloud Automation Technologies to Deliver an Enterprise Data Fabric
Using Cloud Automation Technologies to Deliver an Enterprise Data FabricUsing Cloud Automation Technologies to Deliver an Enterprise Data Fabric
Using Cloud Automation Technologies to Deliver an Enterprise Data Fabric
 
Using a Semantic and Graph-based Data Catalog in a Modern Data Fabric
Using a Semantic and Graph-based Data Catalog in a Modern Data FabricUsing a Semantic and Graph-based Data Catalog in a Modern Data Fabric
Using a Semantic and Graph-based Data Catalog in a Modern Data Fabric
 
Healthcare and Life Sciences: Two Industries Separated by Common Data
Healthcare and Life Sciences: Two Industries Separated by Common DataHealthcare and Life Sciences: Two Industries Separated by Common Data
Healthcare and Life Sciences: Two Industries Separated by Common Data
 
Knowledge Graph for Machine Learning and Data Science
Knowledge Graph for Machine Learning and Data ScienceKnowledge Graph for Machine Learning and Data Science
Knowledge Graph for Machine Learning and Data Science
 
Modern Data Discovery and Integration in Insurance
Modern Data Discovery and Integration in InsuranceModern Data Discovery and Integration in Insurance
Modern Data Discovery and Integration in Insurance
 
Big Data Fabric 2.0 Drives Data Democratization
Big Data Fabric 2.0 Drives Data DemocratizationBig Data Fabric 2.0 Drives Data Democratization
Big Data Fabric 2.0 Drives Data Democratization
 
Modern Data Discovery and Integration in Retail Banking
Modern Data Discovery and Integration in Retail BankingModern Data Discovery and Integration in Retail Banking
Modern Data Discovery and Integration in Retail Banking
 
Should a Graph Database Be in Your Next Data Warehouse Stack?
Should a Graph Database Be in Your Next Data Warehouse Stack?Should a Graph Database Be in Your Next Data Warehouse Stack?
Should a Graph Database Be in Your Next Data Warehouse Stack?
 
Going Beyond Rows and Columns with Graph Analytics
Going Beyond Rows and Columns with Graph AnalyticsGoing Beyond Rows and Columns with Graph Analytics
Going Beyond Rows and Columns with Graph Analytics
 
Accelerate Pharma R&D with Cross-Study Analytics
Accelerate Pharma R&D with Cross-Study AnalyticsAccelerate Pharma R&D with Cross-Study Analytics
Accelerate Pharma R&D with Cross-Study Analytics
 
Accelerate Digital Transformation with an Enterprise Big Data Fabric
Accelerate Digital Transformation with an Enterprise Big Data FabricAccelerate Digital Transformation with an Enterprise Big Data Fabric
Accelerate Digital Transformation with an Enterprise Big Data Fabric
 
From Data Lakes to the Data Fabric: Our Vision for Digital Strategy
From Data Lakes to the Data Fabric: Our Vision for Digital StrategyFrom Data Lakes to the Data Fabric: Our Vision for Digital Strategy
From Data Lakes to the Data Fabric: Our Vision for Digital Strategy
 
The Year of the Graph
The Year of the GraphThe Year of the Graph
The Year of the Graph
 

Recently uploaded

Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Boston Institute of Analytics
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
ewymefz
 
Tabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflowsTabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflows
alex933524
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
ArpitMalhotra16
 
Investigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_CrimesInvestigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_Crimes
StarCompliance.io
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
vcaxypu
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
enxupq
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
benishzehra469
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
ewymefz
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
jerlynmaetalle
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
Tiktokethiodaily
 
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape ReportSOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
tapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive datatapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive data
theahmadsaood
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
nscud
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
axoqas
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 

Recently uploaded (20)

Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
 
Tabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflowsTabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflows
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
 
Investigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_CrimesInvestigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_Crimes
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
 
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape ReportSOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape Report
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
tapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive datatapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive data
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 

AnzoGraph DB - SPARQL 101

  • 1. ©Cambridge Semantics Inc. Company Confidential SPARQL 101 Thomas Cook Sales Director, AnzoGraph DB Thomas.Cook@cambridgesemantics.com
  • 2. ©Cambridge Semantics Inc. Company Confidential ▪ History lesson: What are the origins of SPARQL? ▪ Semantic Web ▪ Linked Open Data ▪ Knowledge Graphs ▪ What is RDF ? ▪ What’s a URI ? ▪ What is SPARQL? Agenda
  • 3. Origins of The Semantic Web „The Semantic Web is an extension of the current web in which information is given well-defined meaning, better enabling computers and people to work in cooperation" Tim Berners-Lee, James Hendler, Ora Lassila: The Semantic Web, Scientific American, 284(5), pp. 34-43(2001)
  • 4. The World's Web Standards Organization
  • 5. ©Cambridge Semantics Inc. Company Confidential https://lod-cloud.net/ Linked Open Data The dataset currently contains 1,239 datasets with 16,147 links (Mar 2019) Linked Data (name coined in 2006 by Tim Berners-Lee)
  • 6. ©Cambridge Semantics Inc. Company Confidential https://wiki.dbpedia.org/about DBPedia DBpedia has information stored from 125 languages DBpedia release consists of 3 billion pieces of information (RDF triples) 580 million were extracted from the English edition of Wikipedia 2.46 billion were extracted from other language editions DBpedia is an open knowledge graph (OKG) which is available for everyone on the Web A knowledge graph is a special kind of database which stores knowledge in a machine-readable form and provides a means for information to be collected, organized, shared, searched and utilized Google uses a similar approach to create those knowledge cards during search
  • 7. ©Cambridge Semantics Inc. Company Confidential http://mappings.dbpedia.org/server/ontology/classes/ DBPedia Instances per class Class Instances Resource (overall) 4,233,000 Place 735,000 Person 1,450,000 Work 411,000 Species 251,000 Organisation 241,000 The DBpedia Ontology currently contains about 4,233,000 instances. The table below lists the number of instances for several classes within the ontology:
  • 9. RDF (Resource Description Framework) is the data model of the Semantic Web. That means that all data in Semantic Web technologies is represented as RDF RDF's simple data model and ability to model disparate, abstract concepts has also led to its increasing use in knowledge management applications unrelated to Semantic Web activity What is RDF ? At the most atomic level, RDF is made of Triples. A “Triple” is a single fact Subject Object E.g. “The Sky is Blue” Sky Blue Color Predicate https://en.wikipedia.org/wiki/Resource_Description_Framework
  • 10. RDF is not like the tabular data model of relational databases. Nor is it like the trees of the XML world. Instead, RDF is a graph It’s a labeled, directed graph. RDF Graph Alice Telsa drives Bill friend_of Austin resident_of
  • 11. <Alice> <drives> <Tesla> . <Alice> <friend_of> <Bill> . <Alice> <resident_of> <Austin>. <Tesla> <color> “blue” . RDF Serializations – Turtle, N-Triples, RDFa, JSON-LD Alice Tesla drives Bill friend_of Austin resident_of color “blue”
  • 12. Resource nodes A resource is anything that can have things said about it. It’s easy to think of a resource as a thing vs. a value. In a visual representation, resources are represented by ovals. Literal nodes The term literal is a fancy word for value. In a visual representation, literals are represented by rectangles. Blank nodes 3 Types of Nodes Alice Tesla drives Bill friend_of Austin resident_of color “blue”
  • 13. <Alice> Expressed as a full URI would look something more like: <http://example.com/resource/person#Alice> And <drives> Would be more like: <http://example.com/resource/person#drives> URIs – Uniform Resource Identifier How can we uniquely ID resources universally? Add a URL to the start of your ID. <http://example.com/resource/person#Alice> <http://example.com/resource/person#drives> <http://example.com/resource/person#Tesla> . <http://example.com/resource/person#Alice> <http://example.com/resource/person#friend_of> <http://example.com/resource/person#Bill> . <http://example.com/resource/person#Alice> <http://example.com/resource/person#resident_of> <http://example.com/resource/person#Austin>. <http://example.com/resource/car#Tesla> <http://example.com/car#color> “blue” .
  • 14. SPARQL PREFIX abbreviation BEFORE: <http://example.com/resource/person#Alice> <http://example.com/resource/person#drives> <http://example.com/resource/car#Tesla <http://example.com/resource/person#Alice> <http://example.com/resource/person#friend_of> <http://example.com/resource/person <http://example.com/resource/person#Alice> <http://example.com/resource/person#resident_of> <http://example.com/resource#Aus <http://example.com/resource#Tesla> <http://example.com/resource#color> “blue” . With PREFIX we can get a much shorter representation with abbreviations. AFTER: PREFIX tslap: <http://example.com/resource/person#> . PREFIX tslar: <http://example.com/resource#> . tslap:Alice tslap:drives tslac:Tesla . tslap:Alice tslap:friend_of tslap:Bill . tslap:Alice tslap:resident_of tslar:Austin . tslar:Tesla tslar:color “blue”. <Alice> <drives> <Tesla> . <Alice> <friend_of> <Bill> . <Alice> <resident_of> <Austin>. <Tesla> <color> “blue” . Same as below without URIs, but now universally uniquely identified
  • 15. PREFIX Short For: rdf: http://xmlns.com/foaf/0.1/ rdfs: http://www.w3.org/2000/01/rdf-schema# owl: http://www.w3.org/2002/07/owl# xsd: http://www.w3.org/2001/XMLSchema# dc: http://purl.org/dc/elements/1.1/ foaf: http://xmlns.com/foaf/0.1/ Common Prefixes More common prefixes at http://prefix.cc
  • 16. SPARQL stands for: SPARQL Protocol And RDF Query Language A query language and a protocol What is SPARQL? A SPARQL QUERY: SELECT … FROM …. WHERE { … } GROUP BY … ORDER BY … SELECT – Identifies the values to return FROM – selects the dataset to query WHERE – the graph patterns to match GROUP BY – group aggregations on this field ORDER BY – order the result set
  • 17. INSERT DATA { GRAPH <test1> { <Alice> <drives> <Tesla> . <Alice> <friend_of> <Bill> . <Alice> <resident_of> <Austin>. <Tesla> <color> "blue" . } } Let’s INSERT some data
  • 18. SELECT (count(*) as ?count) FROM <test1> WHERE { ?s ?p ?o . } RESULT: count -------- 4 Let’s count how many triples are in the graph
  • 19. SELECT ?s ?p ?o FROM <test1> WHERE { ?s ?p ?o . } Show all the triples
  • 20. SELECT ?s FROM <test1> WHERE { ?s <drives> <Tesla> . } RESULT: s ------- Alice 1 rows Use graph patterns to find data you want Who drives a Tesla?
  • 21. SELECT ?s FROM <test1> WHERE { ?s <drives> ?car . ?car <color> "blue" . } Who drives a blue car? Join operation Use graph patterns to match data in the graph
  • 22. Who drives a blue car? Join operation Use graph patterns to match data in the graph
  • 23. SELECT ?s ?color ?year FROM <test1> WHERE { ?s <drives> ?car . ?car <color> ?color . ?car <year> ?year . } RESULT? No results. Why? <year> does not exist in our graph Graph patterns must exist in the WHERE Who drives a car and what’s the color and year?
  • 24. SELECT ?s ?color ?year FROM <test1> WHERE { ?s <drives> ?car . ?car <color> ?color . OPTIONAL{?car <year> ?year . } } RESULT: s | color | year -------+-------+------ Alice | blue | 1 rows Who drives a blue car? USE OPTIONAL for Graph patterns that might not exist
  • 25. • ORDER BY: This modifier sorts the result set in a particular order. It sorts query solutions on the value of one or more variables. • OFFSET: Using this modifier in conjunction with LIMIT and ORDER BY returns a slice of a sorted solution set, for example, for paging. • LIMIT: This modifier restricts the results to return a certain number of solutions. • GROUP BY: This modifier is used with aggregate functions and specifies the key variables to use to partition the solutions into groups. For information about AnzoGraph GROUP BY clause extensions, see Advanced Grouping Sets. • HAVING: This modifier is used with aggregate functions and further filters the results after applying the aggregates. SPARQL SELECT, like SQL, has several solution modifiers
  • 26. The built-in SPARQL aggregate functions: AVG: Calculates the average value for a numeric expression. COUNT: Counts the number of times the specified value is bound to the given variable. GROUP_CONCAT: Performs a string concatenation of all of the values that are bound to the given variable. MAX: Returns the maximum value from the specified set of values. MIN: Returns the minimum value from the specified set of values. SAMPLE: Returns an arbitrary value from the specified set of values. SUM: Adds the specified values. Aggregate Functions
  • 27. There are Four standard SPARQL query forms: SELECT: Run SELECT queries when you want to find and return all of the data that matches certain patterns. CONSTRUCT: Run CONSTRUCT queries when you want to create or transform data based on the existing data. ASK: Run ASK queries when you want to know whether a certain pattern exists in the data. ASK queries return only "true" or "false" to indicate whether a solution exists. DESCRIBE: Run DESCRIBE queries when you want to view the RDF graph that describes a particular resource. Query Forms
  • 29. ©Cambridge Semantics Inc. Company Confidential info.anzograph@CambridgeSemantics.com www.anzograph.com AnzoGraph.com