SlideShare uma empresa Scribd logo
1 de 60
A Hands-On Overview of the Semantic Web




                                               Shamod Lacoul
                                                Mike Hewett

                       League of Extraordinary Modelers
Image Source: http://www.e-clipsblog.co.uk/wp-content/semantic-web.jpg
Outline

  What is the Semantic Web?
  Why use the Semantic Web?
  RDF for data representation
  RDFS - data schemas (models)
  SPARQL - RDF query language
  RDFa
  Linked Open Data
  OWL - Web Ontology Language
  SWRL - Semantic Web Rule Language
  Useful links

... interspersed with demos
See http://www.hewettresearch.com/svcc2009/
for related materials.
Who is this person?
Who has seen this diagram before?




http://mmt.me.uk/slides/barcamp09/images/semantic-web-layer-cake.png
Web vs. Semantic Web

Web --> links documents to documents

Semantic Web --> links data to data.

aka. Data Web (Web of Data), Structured Web or LINKED
DATA.
Semantic Web Advantages

Universal data representation (using RDF)

Reusable data models (using RDF, RDFS, and OWL)

W3C Standard query language (SPARQL)

Information validation and classification (reasoners)

Rule-based inferencing (SWRL)
Use Cases for Semantic Data
Common Data Model

  RDF is a universal data format

  RDF data can be mapped to and from relational, XML and
  object models

  Even better, execute SPARQL queries remotely to retrieve
  just the subset of data you need
Use Cases for Semantic Data
Biomedical modeling and processing

  Hundreds of OWL biomedical knowledge bases available

  Reuse knowledge in different applications

Other domains:
      Business
      Engineering
      Scientific
      E-Commerce
      ...
Uses of XML in RDF
         RDF/XML is one type of RDF serialization
         XSD datatypes
         Namespaces




Image Source: http://www.spycomponents.com/images/xml_at_work.gif
Vocabulary: Namespace
Namespace - a concept borrowed from XML

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

prefix -> rdf:
namespace URI -> http://www.w3.org/1999/02/22-rdf-syntax-ns#

     <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
     is the same as
     rdf:type
Vocabulary: URI
Universal Resource Identifier - a unique ID

http://www.siliconvalley-codecamp.com/Sessions#SemWeb

Namespace - http://www.siliconvalley-codecamp.com/Sessions#

Fragment Identifier - SemWeb
Any questions so far?

 See http://www.hewettresearch.com/svcc2009/
 for related materials.

 Coming next:
   RDF - data model and examples
   RDFS - data schemas (models)
   SPARQL - RDF query language
   SPARQL demos
   OWL - Web Ontology Language
   SWRL - Semantic Web Rule Language
What is RDF?
A Universal Data Model consisting
of statements:

  subject - predicate - object

the set of RDF statements form a graph

Informal example:
 ns1:myHouse ns2:hasColor pantone:chartreuse

 pantone:chartreuse pantone:redComponent "13"^^xsd:int

 pantone:chartreuse pantone:greenComponent "214"^^xsd:int
An RDF Example
This particular SVCC session (let's call it "SemWeb")
  has the title "A Hands-On Introduction to the Semantic Web"          a
the description "The Semantic Web is in its infancy ..."
<http://www.siliconvalley-codecamp.com/sessions#SemWeb> <http://www.
w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.siliconvalley-codecamp.com/rdfs#Sessions>
has the
<http://purl.org/dc/elements/1.1/title>
of
 "A Hands-On Introduction to the Semantic Web"^^xsd:string
and the
<http://purl.org/dc/elements/1.1/description>
of
"The Semantic Web is in its infancy ..."^^xsd:string
RDF Graph
RDF/XML
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
      xmlns:dc="http://purl.org/dc/elements/1.1/"
      xmlns:svcc="http://www.siliconvalley-codecamp.com/rdfs#"
      xml:base="http://www.siliconvalley-codecamp.com/sesssions">

   <rdf:Description
               rdf:ID="http://www.siliconvalley-codecamp.com/sesssions#SemWeb">
     <rdf:type rdf:resource="svcc:Session" />
     <dc:title>A Hands-On Introduction to the Semantic Web</dc:title>
     <dc:description>The Semantic Web is in its infancy ...</dc:description>
   </rdf:Description>
</rdf:RDF>
Other forms of RDF Serialization

N3, TURTLE, N-Triple, etc.
@prefix dc:   <http://purl.org/dc/elements/1.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix svcc: <http://www.siliconvalley-codecamp.com/rdfs#> .

<http://www.siliconvalley-codecamp.com/sesssions#SemWeb>
    a      svcc:Session ;
    dc:description "The Semantic Web is in its infancy ..." ;
    dc:title "A Hands-On Introduction to the Semantic Web" ;
RDF vs. XML


RDF (Graph-based) != XML (Tree-based).

RDF graphs represent information

XML trees represent data
RDF/XML serializes RDF
RDF storage


 RDF statements are stored in RDF Repositories
   Also called triple stores

 Data can be accessed via:
   SPARQL queries
   API calls
   Text searches
What is RDFS?

a representation for defining schemas for RDF
RDF Schema
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
         xml:base="http://www.siliconvalley-codecamp.com/rdfs">

   <rdfs:Class rdf:ID="Session" />

    <rdfs:Class rdf:ID="Speaker">
         <rdfs:subClassOf rdf:resource="http://xmlns.com/foaf/0.1/Person" />
    </rdfs:Class>
    <rdf:Property rdf:ID="presenter">
      <rdfs:domain rdf:resource="#Session" />
      <rdfs:range rdf:resource="#Speaker" />
      <rdfs:label>Presenter</rdfs:label>
    </rdf:Property>
</rdf:RDF>
RDFS: Classes                     Class Name                         Property Name

and Properties                    rdf:List                           rdf:type
                                  rdfs:ContainerMembershipProperty   rdfs:subClassOf
                                  rdfs:Container                     rdfs:subPropertyOf
                                  rdf:Alt                            rdfs:domain
                                  rdf:Seq                            rdfs:range
                                  rdf:Bag                            rdfs:label
                                  rdf:Statement                      rdfs:comment
                                  rdfs:Datatype                      rdfs:member

                                  rdf:Property                       rdf:first

                                  rdfs:Class                         rdf:rest

                                  rdf:XMLLiteral                     rdfs:seeAlso

                                  rdfs:Resource                      rdfs:isDefinedBy

                                                                     rdf:value

                                                                     rdf:subject

                                                                     rdf:object
Source: http://www.w3.org/TR/rdf-schema/                             rdf:predicate
RDF or RDFS questions?

Any questions on RDFS?

See http://www.hewettresearch.com/svcc2009/
for related materials.

Coming next:

  SPARQL - Semantic Web Query Language
  RDFa
  Linked Open Data
  OWL - Web Ontology Language
  SWRL - Semantic Web Rule Language
SPARQL
 a W3C standard query language to fetch data from
 distributed Semantic Web data models (mainly, RDF and
 OWL)

 a concept similar to SQL for Database

 can query a triple-store (local RDF repository) or data on the
 Web (at a URL)
SPARQL - a query language for RDF
PREFIX svcc:<http://www.siliconvalley-codecamp.com/rdfs#>
PREFIX dc:<http://purl.org/dc/elements/1.1/>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT ?title ?presenter ?description
WHERE
{
  ?session rdf:type svcc:Session .
  ?session dc:title ?title .
  ?session svcc:presenter ?presenter .
  ?session dc:description ?description .
}
SPARQL - a query language for RDF
PREFIX svcc:<http://www.siliconvalley-codecamp.com/rdfs#>
PREFIX dc:<http://purl.org/dc/elements/1.1/>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX fn: <http://www.w3.org/2005/xpath-functions#>

SELECT ?title ?presenter ?description
WHERE
{
  ?session dc:title ?title .
  ?session svcc:presenter ?presenter .
  ?session dc:description ?description .
  FILTER (fn:string-length(?description) < 100)
}
SPARQL - a query language for RDF
PREFIX svcc:<http://www.siliconvalley-codecamp.com/rdfs#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>

CONSTRUCT { ?session svcc:abstract ?description }
WHERE
{
  ?session dc:description ?description .
}
LIMIT 2
SPARQL - a query language for RDF
PREFIX svcc: <http://www.siliconvalley-codecamp.com/rdfs#>
PREFIX speaker: <http://www.siliconvalley-codecamp.
com/speakers#>

ASK
{
   ?x    svcc:presenter   speaker:Shamod_Lacoul
}
Other SPARQL operations

 Operation        WHERE operations      Reference Clause
 DESCRIBE         OPTIONAL              FROM
                  UNION                 FROM NAMED
                  ORDER BY
                  DISTINCT
                  REDUCED
                  OFFSET
                  LIMIT


SPARQL/UPDATE - a query language to fulfill CRUD operations
                 INSERT & DELETE
SPARQL results
            Many different formats:
                   SPARQL/XML
                   JSON
                   CSV
                   RDF/XML

            You will need to parse the results for your needs




Copyright © 2009 Hewett Research, LLC
SPARQL endpoints
            A SPARQL endpoint is a web service that accepts
            SPARQL queries and returns results
            Example: http://www.govtrack.us/developers/rdf.xpd

      PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
      SELECT * WHERE {
      <http://www.rdfabout.com/rdf/usgov/congress/109/bills/h867> ?p ?o
      }




Copyright © 2009 Hewett Research, LLC
Setting up a SPARQL endpoint
            Use Sesame - http://www.openrdf.org/
            Includes a web service that runs under Tomcat
            Configure it to use your favorite backend RDF store
            or use the built-in RDF store
            Some good, scalable RDF stores that support
            Sesame:
                   SwiftOWLIM - http://ontotext.com/owlim/
                   AllegroGraph - http://www.franz.
                   com/agraph/allegrograph/


Copyright © 2009 Hewett Research, LLC
SPARQL demo


See http://www.hewettresearch.com/svcc2009/
for related materials.
RDFa



RDF + attributes = RDFa -> a way to embed RDF concepts
within XHTML




index anything that has RDFa/Microformat tags embedded in
the web page.
RDFa example
<?xml version="1.0" encoding="UTF-8" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    version="XHTML+RDFa 1.0" xml:lang="en">
<head><title>Silicon Valley Code Camp Session</title></head>
<body>
  <h3>Silicon Valley Code Camp Session Registration</h3>
  <div about="http://www.silicon-valley.com/sessions#SemWeb">
     <div>
        <b>Title: </b>
        <span id="title" property="dc:title">A Hands-On Intro To the Semantic Web</span>
     </div><br /><br />
     <div>
        <b>Description: </b>
        <span id="desc" property="dc:description">The Semantic Web is in its infancy ...
</span>
     </div><br /><br />
  </div>
</body>
</html>
Linking Open Data (RDF)
            4.7 billion RDF triples
            142 million RDF links (as of May 2009)
            LOD examples
                   DBPedia, Freebase
                   BBC, MusicBrainz, Flickr
                   SIOC, FOAF




Copyright © 2009 Hewett Research, LLC
Copyright © 2009 Hewett Research, LLC
How to access SW
                               information?
            Semantic Web Search Engines
                   Indexing RDF information by keywords
                   Zemanta, Sindice, SWSE, Swoogle

            Query SPARQL endpoints
                   Apply SPARQL queries directly to the RDF data

            Query SWRL endpoints (when they exist)
                   Run rules on OWL ontologies




Copyright © 2009 Hewett Research, LLC
Questions about SPARQL or RDFa?


See http://www.hewettresearch.com/svcc2009/
for related materials.

Coming next:

  OWL - Web Ontology Language
  SWRL - Semantic Web Rule Language
Web Ontology Language (OWL)

An extension to RDF/RDFS to enable complex
knowledge representations

a language for defining and
instantiating ontologies

An OWL ontology may include descriptions of
classes, properties and their instances.

Based on Open-World Assumption - what is not
known is not "untrue", just "unknown".
Flavors of OWL ontologies
OWL Lite - supports classification in hierarchies and simple
constraints

OWL DL - correspondence with Description Logics

OWL Full - maximum expressiveness

OWL 2 - (W3C Candidate Recommendation, June 2009)
  OWL 2 EL - has computational guarantees
  OWL 2 QL - maps to database technologies
  OWL 2 RL - computationally efficient
OWL
<?xml version="1.0" ?>
<rdf:RDF
    xml:base = "http://www.siliconvalley-codecamp.com/tags#"
    xmlns:dc = "http://purl.org/dc/elements/1.1/"
    xmlns:owl = "http://www.w3.org/2002/07/owl#"
    xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rdfs= "http://www.w3.org/2000/01/rdf-schema#"
    xmlns:tags = "http://www.holygoat.co.uk/owl/redwood/0.1/tags/">

<owl:Ontology rdf:about="">
   <rdfs:comment>An ontology to define tags of Silicon Valley Code Camp</rdfs:
comment>
   <rdfs:label>A tag ontology</rdfs:label>
   <owl:imports rdf:resource="http://www.holygoat.co.uk/owl/redwood/0.1/tags/" />
   <dc:creator>Shamod Lacoul</dc:creator>
</owl:Ontology>

<tags:Tag rdf:ID="OWL">
   <tags:name>Web Ontology Language</tags:name>
   <tags:isTagOf rdf:resource="http://www.siliconvalley-codecamp.
com/sesssions#SemWeb" />
   <tags:relatedTag rdf:resource="http://www.siliconvalley-codecamp.com/tags#RDF"
/>
</tags:Tag>

</rdf:RDF>
OWL: Classes
                                          Properties                 Property Charactersitic
 and Properties
                                          owl:ObjectProperty
                                                                     owl:TransitiveProperty
     Classes
                                          owl:DatatypeProperty
     owl:Class                                                       owl:FunctionalProperty
                                          rdfs:subPropertyOf
     rdfs:subClassOf                                                 owl:inverseOf
                                          rdfs:domain

     Property Restrictions                rdfs:range                 owl:InverseFunctionalProperty


     owl:allValuesFrom

                                            Equivalence                   Complex Classes
     owl:someValuesFrom

                                            owl:equivalentClass           owl:intersectionOf
     owl:cardinality
                                            owl:equivalentProperty        owl:unionOf
     owl:hasValue
                                            owl:sameAs                    owl:complementOf




NOTE: A subset of OWL Classes and Properties
Source: http://www.w3.org/TR/owl-guide/
Compare other models to SemWeb Models


                  Database    XML      RDF      OWL


 Expressiveness   medium      low     medium    high



  Accessibility     low      medium    high     high



   Inferencing      low       low     medium    high


    Flexibility     low      medium   medium   medium
Advantages of RDF and OWL

Expressiveness (explicit metadata)

Inherently Distributed

Easier data interchange

Reasoning and Inferencing capabilities.
Reasoning / Inferencing
Both refer to ways of inferring more information than is in the
asserted data model

   Reasoning does two things:
     Validates information:
        domain & range of properties
        valid subclasses & instances
     Classifies instances based on their properties
     Uses logic - usually first-order predicate logic

   Inferencing uses explicit rules
       typically domain-specific rules
       SWRL and RIF are the W3C standard rule languages
OWL example / demo


See http://www.hewettresearch.com/svcc2009/
for related materials.

Coming next:
  SWRL - Semantic Web Rule Language
  Useful tools, companies and links
SWRL
            The proposed W3C standard rule language
            Part of the RuleML family of languages
            Use it to reason with data in OWL knowledge bases
            Support for OWL is still fairly primitive




Copyright © 2009 Hewett Research, LLC
SWRL example
            hasParent(Adam, ?parent) ^ hasParent(?parent, ?g-parent) ^ hasGender(?g-parent,
            Male)


            hasParent(Adam, ?parent) ; Clause 1
            hasParent(?parent, ?g-parent) ; Clause 2
            hasGender(?g-parent, Male) ; Clause 3


            Each clause may have multiple bindings for its
            variable(s)
            Bindings carry forward to the next clause
            At the end, all binding sets are returned
Copyright © 2009 Hewett Research, LLC
Results
            hasParent(Adam, ?parent) ^ hasParent(?parent, ?g-parent) ^ hasGender(?g-parent,
            Male)


            Result 1:
                   ?parent = Bob
                   ?g-parent = Cassius

            Result 2:
                   ?parent = Betty
                   ?g-parent = Charles




Copyright © 2009 Hewett Research, LLC
SWRL Summary
            More complex queries and actions than SPARQL
            Support is weak at this point

            JESS – now supports SWRL
            Pellet – free reasoner that partially supports SWRL




Copyright © 2009 Hewett Research, LLC
SWRL questions?

See http://www.hewettresearch.com/svcc2009/
for related materials.

Coming next:

  Useful tools, companies and links
Semantic Web Tools
Java libraries for RDF/OWL

 Jena (O)                    RDF Repositories (Triplestores)

                         AllegroGraph (OC)
Sesame (O)

                                Virtuoso (C)

Semantic Web Editor              OWLIM (OC)
Protege (O)

TopQuadrant (OC)                         O - Open Source
                                         C - Closed Source
                                         OC - Open & Closed
Popular Public Ontologies

FOAF                   NCBO


Dublin Core


GoodRelations


MusicBrainz
NCBO BioPortal
            OWL Ontologies
            http://bioportal.bioontology.org/
            161 ontologies
            723,806 concepts
            From ATMO (African Traditional Medicine) to ZFA
            (Zebrafish Anatomy and Development)
            Government funded, freely available



Copyright © 2009 Hewett Research, LLC
Prominent SemWeb Companies
Helpful References and Books
  http://www.w3.org/2001/sw/BestPractices/Tutorials
  http://www.w3.org/TR/rdfa-syntax/
  http://jena.sourceforge.net/documentation.html
  http://protege.stanford.
  edu/publications/ontology_development/ontology101-noy-
  mcguinness.html
  http://www.devx.com/semantic/Door/34578
  http://semanticweb.com
  http://semanticuniverse.com/
  http://www.mkbergman.com/
Final Remarks

Semantic Web is not that hard. It comes with a learning curve,
but so does everything else in life.

"If Yan can cook, so can you!"
The END
See http://www.hewettresearch.com/svcc2009/
for related materials.




        shamod@gmail.com

        mike@hewettresearch.com

Mais conteúdo relacionado

Mais procurados

Jarrar: OWL (Web Ontology Language)
Jarrar: OWL (Web Ontology Language)Jarrar: OWL (Web Ontology Language)
Jarrar: OWL (Web Ontology Language)Mustafa Jarrar
 
Understanding RDF: the Resource Description Framework in Context (1999)
Understanding RDF: the Resource Description Framework in Context  (1999)Understanding RDF: the Resource Description Framework in Context  (1999)
Understanding RDF: the Resource Description Framework in Context (1999)Dan Brickley
 
RDF Tutorial - SPARQL 20091031
RDF Tutorial - SPARQL 20091031RDF Tutorial - SPARQL 20091031
RDF Tutorial - SPARQL 20091031kwangsub kim
 
Comparative study on the processing of RDF in PHP
Comparative study on the processing of RDF in PHPComparative study on the processing of RDF in PHP
Comparative study on the processing of RDF in PHPMSGUNC
 
The Legal Rdf Ontology A Generic Model For Legal Documents
The Legal Rdf Ontology A Generic Model For Legal DocumentsThe Legal Rdf Ontology A Generic Model For Legal Documents
The Legal Rdf Ontology A Generic Model For Legal Documentslegalwebsite
 
Publishing Data Using Semantic Web Technologies
Publishing Data Using Semantic Web TechnologiesPublishing Data Using Semantic Web Technologies
Publishing Data Using Semantic Web TechnologiesNikolaos Konstantinou
 
Relational Database to RDF (RDB2RDF)
Relational Database to RDF (RDB2RDF)Relational Database to RDF (RDB2RDF)
Relational Database to RDF (RDB2RDF)EUCLID project
 
Mapping Relational Databases to Linked Data
Mapping Relational Databases to Linked DataMapping Relational Databases to Linked Data
Mapping Relational Databases to Linked DataEUCLID project
 
A year on the Semantic Web @ W3C
A year on the Semantic Web @ W3CA year on the Semantic Web @ W3C
A year on the Semantic Web @ W3CIvan Herman
 
Creating web applications with LODSPeaKr
Creating web applications with LODSPeaKrCreating web applications with LODSPeaKr
Creating web applications with LODSPeaKrAlvaro Graves
 
Programming with LOD
Programming with LODProgramming with LOD
Programming with LODFumihiro Kato
 
Tutorial "An Introduction to SPARQL and Queries over Linked Data" Chapter 2 (...
Tutorial "An Introduction to SPARQL and Queries over Linked Data" Chapter 2 (...Tutorial "An Introduction to SPARQL and Queries over Linked Data" Chapter 2 (...
Tutorial "An Introduction to SPARQL and Queries over Linked Data" Chapter 2 (...Olaf Hartig
 
The Semantic Web #10 - SPARQL
The Semantic Web #10 - SPARQLThe Semantic Web #10 - SPARQL
The Semantic Web #10 - SPARQLMyungjin Lee
 

Mais procurados (19)

Triple Stores
Triple StoresTriple Stores
Triple Stores
 
Jarrar: OWL (Web Ontology Language)
Jarrar: OWL (Web Ontology Language)Jarrar: OWL (Web Ontology Language)
Jarrar: OWL (Web Ontology Language)
 
Understanding RDF: the Resource Description Framework in Context (1999)
Understanding RDF: the Resource Description Framework in Context  (1999)Understanding RDF: the Resource Description Framework in Context  (1999)
Understanding RDF: the Resource Description Framework in Context (1999)
 
RDF Tutorial - SPARQL 20091031
RDF Tutorial - SPARQL 20091031RDF Tutorial - SPARQL 20091031
RDF Tutorial - SPARQL 20091031
 
The Web Ontology Language
The Web Ontology LanguageThe Web Ontology Language
The Web Ontology Language
 
Ist16-04 An introduction to RDF
Ist16-04 An introduction to RDF Ist16-04 An introduction to RDF
Ist16-04 An introduction to RDF
 
Comparative study on the processing of RDF in PHP
Comparative study on the processing of RDF in PHPComparative study on the processing of RDF in PHP
Comparative study on the processing of RDF in PHP
 
The Legal Rdf Ontology A Generic Model For Legal Documents
The Legal Rdf Ontology A Generic Model For Legal DocumentsThe Legal Rdf Ontology A Generic Model For Legal Documents
The Legal Rdf Ontology A Generic Model For Legal Documents
 
Publishing Data Using Semantic Web Technologies
Publishing Data Using Semantic Web TechnologiesPublishing Data Using Semantic Web Technologies
Publishing Data Using Semantic Web Technologies
 
Data in RDF
Data in RDFData in RDF
Data in RDF
 
Relational Database to RDF (RDB2RDF)
Relational Database to RDF (RDB2RDF)Relational Database to RDF (RDB2RDF)
Relational Database to RDF (RDB2RDF)
 
Mapping Relational Databases to Linked Data
Mapping Relational Databases to Linked DataMapping Relational Databases to Linked Data
Mapping Relational Databases to Linked Data
 
A year on the Semantic Web @ W3C
A year on the Semantic Web @ W3CA year on the Semantic Web @ W3C
A year on the Semantic Web @ W3C
 
Creating web applications with LODSPeaKr
Creating web applications with LODSPeaKrCreating web applications with LODSPeaKr
Creating web applications with LODSPeaKr
 
4 sw architectures and sparql
4 sw architectures and sparql4 sw architectures and sparql
4 sw architectures and sparql
 
Programming with LOD
Programming with LODProgramming with LOD
Programming with LOD
 
Tutorial "An Introduction to SPARQL and Queries over Linked Data" Chapter 2 (...
Tutorial "An Introduction to SPARQL and Queries over Linked Data" Chapter 2 (...Tutorial "An Introduction to SPARQL and Queries over Linked Data" Chapter 2 (...
Tutorial "An Introduction to SPARQL and Queries over Linked Data" Chapter 2 (...
 
eureka09
eureka09eureka09
eureka09
 
The Semantic Web #10 - SPARQL
The Semantic Web #10 - SPARQLThe Semantic Web #10 - SPARQL
The Semantic Web #10 - SPARQL
 

Destaque

Virtuoso, The Prometheus of RDF -- Sematics 2014 Conference Keynote
 Virtuoso, The Prometheus of RDF -- Sematics 2014 Conference Keynote Virtuoso, The Prometheus of RDF -- Sematics 2014 Conference Keynote
Virtuoso, The Prometheus of RDF -- Sematics 2014 Conference KeynoteKingsley Uyi Idehen
 
Blueprint for change_presentation 1
Blueprint for change_presentation 1 Blueprint for change_presentation 1
Blueprint for change_presentation 1 Geraldine McCafferty
 
Mengarang Slide Untuk Mahasiswa Kebumen Di Ui
Mengarang Slide Untuk Mahasiswa Kebumen Di UiMengarang Slide Untuk Mahasiswa Kebumen Di Ui
Mengarang Slide Untuk Mahasiswa Kebumen Di Uixardaz
 
Cinque Terre, Italy
Cinque  Terre,  ItalyCinque  Terre,  Italy
Cinque Terre, Italyrvankley
 
Top 5 Sales Faux Pas
Top 5 Sales Faux PasTop 5 Sales Faux Pas
Top 5 Sales Faux PasSalesQuest
 
Serap Mutlu Akbulut Korosu 2 Haziran 2015 Konseri
Serap Mutlu Akbulut Korosu 2 Haziran 2015 KonseriSerap Mutlu Akbulut Korosu 2 Haziran 2015 Konseri
Serap Mutlu Akbulut Korosu 2 Haziran 2015 Konseriaokutur
 
Taraneh's Family Tree
Taraneh's Family TreeTaraneh's Family Tree
Taraneh's Family TreeAnna Donskoy
 
10.Local Database & LINQ
10.Local Database & LINQ10.Local Database & LINQ
10.Local Database & LINQNguyen Tuan
 
Can Kyle Be Compared To Socrates
Can  Kyle Be Compared To  SocratesCan  Kyle Be Compared To  Socrates
Can Kyle Be Compared To Socratest0nywilliams
 
Powerpoint fiesta 6 horas dj suze @ sala versus (22 10-2011)
Powerpoint fiesta 6 horas dj suze @ sala versus (22 10-2011)Powerpoint fiesta 6 horas dj suze @ sala versus (22 10-2011)
Powerpoint fiesta 6 horas dj suze @ sala versus (22 10-2011)RAZORDJ
 
study visit - Italy - 2013
study visit - Italy - 2013study visit - Italy - 2013
study visit - Italy - 2013GJAR
 
Serap mutlu akbulut konseri 28 mayıs 2013
Serap mutlu akbulut konseri 28 mayıs 2013Serap mutlu akbulut konseri 28 mayıs 2013
Serap mutlu akbulut konseri 28 mayıs 2013aokutur
 
Save the Newspapers
Save the NewspapersSave the Newspapers
Save the Newspapersjjude
 
Dự án xây dưng sân tennis
Dự án xây dưng sân tennisDự án xây dưng sân tennis
Dự án xây dưng sân tennisTa Nguyen Vuong
 
Media Coverage of Grace Church in New York
Media Coverage of Grace Church in New YorkMedia Coverage of Grace Church in New York
Media Coverage of Grace Church in New Yorkmikeyjay
 
Panorama - Jul 08 - UBS Greenhouse Index - ilija murisic
Panorama - Jul 08 - UBS Greenhouse Index - ilija murisicPanorama - Jul 08 - UBS Greenhouse Index - ilija murisic
Panorama - Jul 08 - UBS Greenhouse Index - ilija murisicakasaka aoyama
 

Destaque (20)

Virtuoso, The Prometheus of RDF -- Sematics 2014 Conference Keynote
 Virtuoso, The Prometheus of RDF -- Sematics 2014 Conference Keynote Virtuoso, The Prometheus of RDF -- Sematics 2014 Conference Keynote
Virtuoso, The Prometheus of RDF -- Sematics 2014 Conference Keynote
 
Graafse Waard gebouw EMMA
Graafse Waard gebouw EMMAGraafse Waard gebouw EMMA
Graafse Waard gebouw EMMA
 
Blueprint for change_presentation 1
Blueprint for change_presentation 1 Blueprint for change_presentation 1
Blueprint for change_presentation 1
 
Mengarang Slide Untuk Mahasiswa Kebumen Di Ui
Mengarang Slide Untuk Mahasiswa Kebumen Di UiMengarang Slide Untuk Mahasiswa Kebumen Di Ui
Mengarang Slide Untuk Mahasiswa Kebumen Di Ui
 
Cinque Terre, Italy
Cinque  Terre,  ItalyCinque  Terre,  Italy
Cinque Terre, Italy
 
Top 5 Sales Faux Pas
Top 5 Sales Faux PasTop 5 Sales Faux Pas
Top 5 Sales Faux Pas
 
Locating sources spr11
Locating sources spr11Locating sources spr11
Locating sources spr11
 
Serap Mutlu Akbulut Korosu 2 Haziran 2015 Konseri
Serap Mutlu Akbulut Korosu 2 Haziran 2015 KonseriSerap Mutlu Akbulut Korosu 2 Haziran 2015 Konseri
Serap Mutlu Akbulut Korosu 2 Haziran 2015 Konseri
 
CPD 150 Group Projects
CPD 150 Group ProjectsCPD 150 Group Projects
CPD 150 Group Projects
 
Taraneh's Family Tree
Taraneh's Family TreeTaraneh's Family Tree
Taraneh's Family Tree
 
10.Local Database & LINQ
10.Local Database & LINQ10.Local Database & LINQ
10.Local Database & LINQ
 
Can Kyle Be Compared To Socrates
Can  Kyle Be Compared To  SocratesCan  Kyle Be Compared To  Socrates
Can Kyle Be Compared To Socrates
 
Powerpoint fiesta 6 horas dj suze @ sala versus (22 10-2011)
Powerpoint fiesta 6 horas dj suze @ sala versus (22 10-2011)Powerpoint fiesta 6 horas dj suze @ sala versus (22 10-2011)
Powerpoint fiesta 6 horas dj suze @ sala versus (22 10-2011)
 
Article types review
Article types reviewArticle types review
Article types review
 
study visit - Italy - 2013
study visit - Italy - 2013study visit - Italy - 2013
study visit - Italy - 2013
 
Serap mutlu akbulut konseri 28 mayıs 2013
Serap mutlu akbulut konseri 28 mayıs 2013Serap mutlu akbulut konseri 28 mayıs 2013
Serap mutlu akbulut konseri 28 mayıs 2013
 
Save the Newspapers
Save the NewspapersSave the Newspapers
Save the Newspapers
 
Dự án xây dưng sân tennis
Dự án xây dưng sân tennisDự án xây dưng sân tennis
Dự án xây dưng sân tennis
 
Media Coverage of Grace Church in New York
Media Coverage of Grace Church in New YorkMedia Coverage of Grace Church in New York
Media Coverage of Grace Church in New York
 
Panorama - Jul 08 - UBS Greenhouse Index - ilija murisic
Panorama - Jul 08 - UBS Greenhouse Index - ilija murisicPanorama - Jul 08 - UBS Greenhouse Index - ilija murisic
Panorama - Jul 08 - UBS Greenhouse Index - ilija murisic
 

Semelhante a A Hands On Overview Of The Semantic Web

The Semantic Web #5 - RDF (2)
The Semantic Web #5 - RDF (2)The Semantic Web #5 - RDF (2)
The Semantic Web #5 - RDF (2)Myungjin Lee
 
Semantic web
Semantic webSemantic web
Semantic webtariq1352
 
The Semantic Web #6 - RDF Schema
The Semantic Web #6 - RDF SchemaThe Semantic Web #6 - RDF Schema
The Semantic Web #6 - RDF SchemaMyungjin Lee
 
SemanticWeb Nuts 'n Bolts
SemanticWeb Nuts 'n BoltsSemanticWeb Nuts 'n Bolts
SemanticWeb Nuts 'n BoltsRinke Hoekstra
 
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIsJosef Petrák
 
Lecture the semantic_web_part_2
Lecture the semantic_web_part_2Lecture the semantic_web_part_2
Lecture the semantic_web_part_2IKS - Project
 
SPARQL 1.1 Update (2013-03-05)
SPARQL 1.1 Update (2013-03-05)SPARQL 1.1 Update (2013-03-05)
SPARQL 1.1 Update (2013-03-05)andyseaborne
 
Triplestore and SPARQL
Triplestore and SPARQLTriplestore and SPARQL
Triplestore and SPARQLLino Valdivia
 
Shrinking the silo boundary: data and schema in the Semantic Web
Shrinking the silo boundary: data and schema in the Semantic WebShrinking the silo boundary: data and schema in the Semantic Web
Shrinking the silo boundary: data and schema in the Semantic WebGordon Dunsire
 
Sparql service-description
Sparql service-descriptionSparql service-description
Sparql service-descriptionSTIinnsbruck
 
Facet: Building Web Pages with SPARQL
Facet: Building Web Pages with SPARQLFacet: Building Web Pages with SPARQL
Facet: Building Web Pages with SPARQLLeigh Dodds
 
Introduction To RDF and RDFS
Introduction To RDF and RDFSIntroduction To RDF and RDFS
Introduction To RDF and RDFSNilesh Wagmare
 

Semelhante a A Hands On Overview Of The Semantic Web (20)

The Semantic Web #5 - RDF (2)
The Semantic Web #5 - RDF (2)The Semantic Web #5 - RDF (2)
The Semantic Web #5 - RDF (2)
 
RDF Data Model
RDF Data ModelRDF Data Model
RDF Data Model
 
Semantic web
Semantic webSemantic web
Semantic web
 
The Semantic Web #6 - RDF Schema
The Semantic Web #6 - RDF SchemaThe Semantic Web #6 - RDF Schema
The Semantic Web #6 - RDF Schema
 
SemanticWeb Nuts 'n Bolts
SemanticWeb Nuts 'n BoltsSemanticWeb Nuts 'n Bolts
SemanticWeb Nuts 'n Bolts
 
Technical Background
Technical BackgroundTechnical Background
Technical Background
 
RDFauthor (EKAW)
RDFauthor (EKAW)RDFauthor (EKAW)
RDFauthor (EKAW)
 
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
 
Lecture the semantic_web_part_2
Lecture the semantic_web_part_2Lecture the semantic_web_part_2
Lecture the semantic_web_part_2
 
Introduction to RDF
Introduction to RDFIntroduction to RDF
Introduction to RDF
 
Semantic Web - RDF
Semantic Web - RDFSemantic Web - RDF
Semantic Web - RDF
 
SPARQL 1.1 Update (2013-03-05)
SPARQL 1.1 Update (2013-03-05)SPARQL 1.1 Update (2013-03-05)
SPARQL 1.1 Update (2013-03-05)
 
Triplestore and SPARQL
Triplestore and SPARQLTriplestore and SPARQL
Triplestore and SPARQL
 
Semantic web
Semantic web Semantic web
Semantic web
 
Shrinking the silo boundary: data and schema in the Semantic Web
Shrinking the silo boundary: data and schema in the Semantic WebShrinking the silo boundary: data and schema in the Semantic Web
Shrinking the silo boundary: data and schema in the Semantic Web
 
KIT Graduiertenkolloquium 11.05.2016
KIT Graduiertenkolloquium 11.05.2016KIT Graduiertenkolloquium 11.05.2016
KIT Graduiertenkolloquium 11.05.2016
 
RDFa Tutorial
RDFa TutorialRDFa Tutorial
RDFa Tutorial
 
Sparql service-description
Sparql service-descriptionSparql service-description
Sparql service-description
 
Facet: Building Web Pages with SPARQL
Facet: Building Web Pages with SPARQLFacet: Building Web Pages with SPARQL
Facet: Building Web Pages with SPARQL
 
Introduction To RDF and RDFS
Introduction To RDF and RDFSIntroduction To RDF and RDFS
Introduction To RDF and RDFS
 

Último

Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 

Último (20)

Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 

A Hands On Overview Of The Semantic Web

  • 1. A Hands-On Overview of the Semantic Web Shamod Lacoul Mike Hewett League of Extraordinary Modelers Image Source: http://www.e-clipsblog.co.uk/wp-content/semantic-web.jpg
  • 2. Outline What is the Semantic Web? Why use the Semantic Web? RDF for data representation RDFS - data schemas (models) SPARQL - RDF query language RDFa Linked Open Data OWL - Web Ontology Language SWRL - Semantic Web Rule Language Useful links ... interspersed with demos See http://www.hewettresearch.com/svcc2009/ for related materials.
  • 3. Who is this person?
  • 4. Who has seen this diagram before? http://mmt.me.uk/slides/barcamp09/images/semantic-web-layer-cake.png
  • 5. Web vs. Semantic Web Web --> links documents to documents Semantic Web --> links data to data. aka. Data Web (Web of Data), Structured Web or LINKED DATA.
  • 6. Semantic Web Advantages Universal data representation (using RDF) Reusable data models (using RDF, RDFS, and OWL) W3C Standard query language (SPARQL) Information validation and classification (reasoners) Rule-based inferencing (SWRL)
  • 7. Use Cases for Semantic Data Common Data Model RDF is a universal data format RDF data can be mapped to and from relational, XML and object models Even better, execute SPARQL queries remotely to retrieve just the subset of data you need
  • 8. Use Cases for Semantic Data Biomedical modeling and processing Hundreds of OWL biomedical knowledge bases available Reuse knowledge in different applications Other domains: Business Engineering Scientific E-Commerce ...
  • 9. Uses of XML in RDF RDF/XML is one type of RDF serialization XSD datatypes Namespaces Image Source: http://www.spycomponents.com/images/xml_at_work.gif
  • 10. Vocabulary: Namespace Namespace - a concept borrowed from XML PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix -> rdf: namespace URI -> http://www.w3.org/1999/02/22-rdf-syntax-ns# <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> is the same as rdf:type
  • 11. Vocabulary: URI Universal Resource Identifier - a unique ID http://www.siliconvalley-codecamp.com/Sessions#SemWeb Namespace - http://www.siliconvalley-codecamp.com/Sessions# Fragment Identifier - SemWeb
  • 12. Any questions so far? See http://www.hewettresearch.com/svcc2009/ for related materials. Coming next: RDF - data model and examples RDFS - data schemas (models) SPARQL - RDF query language SPARQL demos OWL - Web Ontology Language SWRL - Semantic Web Rule Language
  • 13. What is RDF? A Universal Data Model consisting of statements: subject - predicate - object the set of RDF statements form a graph Informal example: ns1:myHouse ns2:hasColor pantone:chartreuse pantone:chartreuse pantone:redComponent "13"^^xsd:int pantone:chartreuse pantone:greenComponent "214"^^xsd:int
  • 14. An RDF Example This particular SVCC session (let's call it "SemWeb") has the title "A Hands-On Introduction to the Semantic Web" a the description "The Semantic Web is in its infancy ..." <http://www.siliconvalley-codecamp.com/sessions#SemWeb> <http://www. w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.siliconvalley-codecamp.com/rdfs#Sessions> has the <http://purl.org/dc/elements/1.1/title> of "A Hands-On Introduction to the Semantic Web"^^xsd:string and the <http://purl.org/dc/elements/1.1/description> of "The Semantic Web is in its infancy ..."^^xsd:string
  • 16. RDF/XML <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:svcc="http://www.siliconvalley-codecamp.com/rdfs#" xml:base="http://www.siliconvalley-codecamp.com/sesssions"> <rdf:Description rdf:ID="http://www.siliconvalley-codecamp.com/sesssions#SemWeb"> <rdf:type rdf:resource="svcc:Session" /> <dc:title>A Hands-On Introduction to the Semantic Web</dc:title> <dc:description>The Semantic Web is in its infancy ...</dc:description> </rdf:Description> </rdf:RDF>
  • 17. Other forms of RDF Serialization N3, TURTLE, N-Triple, etc. @prefix dc: <http://purl.org/dc/elements/1.1/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix svcc: <http://www.siliconvalley-codecamp.com/rdfs#> . <http://www.siliconvalley-codecamp.com/sesssions#SemWeb> a svcc:Session ; dc:description "The Semantic Web is in its infancy ..." ; dc:title "A Hands-On Introduction to the Semantic Web" ;
  • 18. RDF vs. XML RDF (Graph-based) != XML (Tree-based). RDF graphs represent information XML trees represent data RDF/XML serializes RDF
  • 19. RDF storage RDF statements are stored in RDF Repositories Also called triple stores Data can be accessed via: SPARQL queries API calls Text searches
  • 20. What is RDFS? a representation for defining schemas for RDF
  • 21. RDF Schema <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xml:base="http://www.siliconvalley-codecamp.com/rdfs"> <rdfs:Class rdf:ID="Session" /> <rdfs:Class rdf:ID="Speaker"> <rdfs:subClassOf rdf:resource="http://xmlns.com/foaf/0.1/Person" /> </rdfs:Class> <rdf:Property rdf:ID="presenter"> <rdfs:domain rdf:resource="#Session" /> <rdfs:range rdf:resource="#Speaker" /> <rdfs:label>Presenter</rdfs:label> </rdf:Property> </rdf:RDF>
  • 22. RDFS: Classes Class Name Property Name and Properties rdf:List rdf:type rdfs:ContainerMembershipProperty rdfs:subClassOf rdfs:Container rdfs:subPropertyOf rdf:Alt rdfs:domain rdf:Seq rdfs:range rdf:Bag rdfs:label rdf:Statement rdfs:comment rdfs:Datatype rdfs:member rdf:Property rdf:first rdfs:Class rdf:rest rdf:XMLLiteral rdfs:seeAlso rdfs:Resource rdfs:isDefinedBy rdf:value rdf:subject rdf:object Source: http://www.w3.org/TR/rdf-schema/ rdf:predicate
  • 23. RDF or RDFS questions? Any questions on RDFS? See http://www.hewettresearch.com/svcc2009/ for related materials. Coming next: SPARQL - Semantic Web Query Language RDFa Linked Open Data OWL - Web Ontology Language SWRL - Semantic Web Rule Language
  • 24. SPARQL a W3C standard query language to fetch data from distributed Semantic Web data models (mainly, RDF and OWL) a concept similar to SQL for Database can query a triple-store (local RDF repository) or data on the Web (at a URL)
  • 25. SPARQL - a query language for RDF PREFIX svcc:<http://www.siliconvalley-codecamp.com/rdfs#> PREFIX dc:<http://purl.org/dc/elements/1.1/> PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT DISTINCT ?title ?presenter ?description WHERE { ?session rdf:type svcc:Session . ?session dc:title ?title . ?session svcc:presenter ?presenter . ?session dc:description ?description . }
  • 26. SPARQL - a query language for RDF PREFIX svcc:<http://www.siliconvalley-codecamp.com/rdfs#> PREFIX dc:<http://purl.org/dc/elements/1.1/> PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX fn: <http://www.w3.org/2005/xpath-functions#> SELECT ?title ?presenter ?description WHERE { ?session dc:title ?title . ?session svcc:presenter ?presenter . ?session dc:description ?description . FILTER (fn:string-length(?description) < 100) }
  • 27. SPARQL - a query language for RDF PREFIX svcc:<http://www.siliconvalley-codecamp.com/rdfs#> PREFIX dc: <http://purl.org/dc/elements/1.1/> CONSTRUCT { ?session svcc:abstract ?description } WHERE { ?session dc:description ?description . } LIMIT 2
  • 28. SPARQL - a query language for RDF PREFIX svcc: <http://www.siliconvalley-codecamp.com/rdfs#> PREFIX speaker: <http://www.siliconvalley-codecamp. com/speakers#> ASK { ?x svcc:presenter speaker:Shamod_Lacoul }
  • 29. Other SPARQL operations Operation WHERE operations Reference Clause DESCRIBE OPTIONAL FROM UNION FROM NAMED ORDER BY DISTINCT REDUCED OFFSET LIMIT SPARQL/UPDATE - a query language to fulfill CRUD operations INSERT & DELETE
  • 30. SPARQL results Many different formats: SPARQL/XML JSON CSV RDF/XML You will need to parse the results for your needs Copyright © 2009 Hewett Research, LLC
  • 31. SPARQL endpoints A SPARQL endpoint is a web service that accepts SPARQL queries and returns results Example: http://www.govtrack.us/developers/rdf.xpd PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT * WHERE { <http://www.rdfabout.com/rdf/usgov/congress/109/bills/h867> ?p ?o } Copyright © 2009 Hewett Research, LLC
  • 32. Setting up a SPARQL endpoint Use Sesame - http://www.openrdf.org/ Includes a web service that runs under Tomcat Configure it to use your favorite backend RDF store or use the built-in RDF store Some good, scalable RDF stores that support Sesame: SwiftOWLIM - http://ontotext.com/owlim/ AllegroGraph - http://www.franz. com/agraph/allegrograph/ Copyright © 2009 Hewett Research, LLC
  • 34. RDFa RDF + attributes = RDFa -> a way to embed RDF concepts within XHTML index anything that has RDFa/Microformat tags embedded in the web page.
  • 35. RDFa example <?xml version="1.0" encoding="UTF-8" ?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/" version="XHTML+RDFa 1.0" xml:lang="en"> <head><title>Silicon Valley Code Camp Session</title></head> <body> <h3>Silicon Valley Code Camp Session Registration</h3> <div about="http://www.silicon-valley.com/sessions#SemWeb"> <div> <b>Title: </b> <span id="title" property="dc:title">A Hands-On Intro To the Semantic Web</span> </div><br /><br /> <div> <b>Description: </b> <span id="desc" property="dc:description">The Semantic Web is in its infancy ... </span> </div><br /><br /> </div> </body> </html>
  • 36. Linking Open Data (RDF) 4.7 billion RDF triples 142 million RDF links (as of May 2009) LOD examples DBPedia, Freebase BBC, MusicBrainz, Flickr SIOC, FOAF Copyright © 2009 Hewett Research, LLC
  • 37. Copyright © 2009 Hewett Research, LLC
  • 38. How to access SW information? Semantic Web Search Engines Indexing RDF information by keywords Zemanta, Sindice, SWSE, Swoogle Query SPARQL endpoints Apply SPARQL queries directly to the RDF data Query SWRL endpoints (when they exist) Run rules on OWL ontologies Copyright © 2009 Hewett Research, LLC
  • 39. Questions about SPARQL or RDFa? See http://www.hewettresearch.com/svcc2009/ for related materials. Coming next: OWL - Web Ontology Language SWRL - Semantic Web Rule Language
  • 40. Web Ontology Language (OWL) An extension to RDF/RDFS to enable complex knowledge representations a language for defining and instantiating ontologies An OWL ontology may include descriptions of classes, properties and their instances. Based on Open-World Assumption - what is not known is not "untrue", just "unknown".
  • 41. Flavors of OWL ontologies OWL Lite - supports classification in hierarchies and simple constraints OWL DL - correspondence with Description Logics OWL Full - maximum expressiveness OWL 2 - (W3C Candidate Recommendation, June 2009) OWL 2 EL - has computational guarantees OWL 2 QL - maps to database technologies OWL 2 RL - computationally efficient
  • 42. OWL <?xml version="1.0" ?> <rdf:RDF xml:base = "http://www.siliconvalley-codecamp.com/tags#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns:owl = "http://www.w3.org/2002/07/owl#" xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs= "http://www.w3.org/2000/01/rdf-schema#" xmlns:tags = "http://www.holygoat.co.uk/owl/redwood/0.1/tags/"> <owl:Ontology rdf:about=""> <rdfs:comment>An ontology to define tags of Silicon Valley Code Camp</rdfs: comment> <rdfs:label>A tag ontology</rdfs:label> <owl:imports rdf:resource="http://www.holygoat.co.uk/owl/redwood/0.1/tags/" /> <dc:creator>Shamod Lacoul</dc:creator> </owl:Ontology> <tags:Tag rdf:ID="OWL"> <tags:name>Web Ontology Language</tags:name> <tags:isTagOf rdf:resource="http://www.siliconvalley-codecamp. com/sesssions#SemWeb" /> <tags:relatedTag rdf:resource="http://www.siliconvalley-codecamp.com/tags#RDF" /> </tags:Tag> </rdf:RDF>
  • 43. OWL: Classes Properties Property Charactersitic and Properties owl:ObjectProperty owl:TransitiveProperty Classes owl:DatatypeProperty owl:Class owl:FunctionalProperty rdfs:subPropertyOf rdfs:subClassOf owl:inverseOf rdfs:domain Property Restrictions rdfs:range owl:InverseFunctionalProperty owl:allValuesFrom Equivalence Complex Classes owl:someValuesFrom owl:equivalentClass owl:intersectionOf owl:cardinality owl:equivalentProperty owl:unionOf owl:hasValue owl:sameAs owl:complementOf NOTE: A subset of OWL Classes and Properties Source: http://www.w3.org/TR/owl-guide/
  • 44. Compare other models to SemWeb Models Database XML RDF OWL Expressiveness medium low medium high Accessibility low medium high high Inferencing low low medium high Flexibility low medium medium medium
  • 45. Advantages of RDF and OWL Expressiveness (explicit metadata) Inherently Distributed Easier data interchange Reasoning and Inferencing capabilities.
  • 46. Reasoning / Inferencing Both refer to ways of inferring more information than is in the asserted data model Reasoning does two things: Validates information: domain & range of properties valid subclasses & instances Classifies instances based on their properties Uses logic - usually first-order predicate logic Inferencing uses explicit rules typically domain-specific rules SWRL and RIF are the W3C standard rule languages
  • 47. OWL example / demo See http://www.hewettresearch.com/svcc2009/ for related materials. Coming next: SWRL - Semantic Web Rule Language Useful tools, companies and links
  • 48. SWRL The proposed W3C standard rule language Part of the RuleML family of languages Use it to reason with data in OWL knowledge bases Support for OWL is still fairly primitive Copyright © 2009 Hewett Research, LLC
  • 49. SWRL example hasParent(Adam, ?parent) ^ hasParent(?parent, ?g-parent) ^ hasGender(?g-parent, Male) hasParent(Adam, ?parent) ; Clause 1 hasParent(?parent, ?g-parent) ; Clause 2 hasGender(?g-parent, Male) ; Clause 3 Each clause may have multiple bindings for its variable(s) Bindings carry forward to the next clause At the end, all binding sets are returned Copyright © 2009 Hewett Research, LLC
  • 50. Results hasParent(Adam, ?parent) ^ hasParent(?parent, ?g-parent) ^ hasGender(?g-parent, Male) Result 1: ?parent = Bob ?g-parent = Cassius Result 2: ?parent = Betty ?g-parent = Charles Copyright © 2009 Hewett Research, LLC
  • 51. SWRL Summary More complex queries and actions than SPARQL Support is weak at this point JESS – now supports SWRL Pellet – free reasoner that partially supports SWRL Copyright © 2009 Hewett Research, LLC
  • 52. SWRL questions? See http://www.hewettresearch.com/svcc2009/ for related materials. Coming next: Useful tools, companies and links
  • 53. Semantic Web Tools Java libraries for RDF/OWL Jena (O) RDF Repositories (Triplestores) AllegroGraph (OC) Sesame (O) Virtuoso (C) Semantic Web Editor OWLIM (OC) Protege (O) TopQuadrant (OC) O - Open Source C - Closed Source OC - Open & Closed
  • 54. Popular Public Ontologies FOAF NCBO Dublin Core GoodRelations MusicBrainz
  • 55. NCBO BioPortal OWL Ontologies http://bioportal.bioontology.org/ 161 ontologies 723,806 concepts From ATMO (African Traditional Medicine) to ZFA (Zebrafish Anatomy and Development) Government funded, freely available Copyright © 2009 Hewett Research, LLC
  • 57. Helpful References and Books http://www.w3.org/2001/sw/BestPractices/Tutorials http://www.w3.org/TR/rdfa-syntax/ http://jena.sourceforge.net/documentation.html http://protege.stanford. edu/publications/ontology_development/ontology101-noy- mcguinness.html http://www.devx.com/semantic/Door/34578 http://semanticweb.com http://semanticuniverse.com/ http://www.mkbergman.com/
  • 58. Final Remarks Semantic Web is not that hard. It comes with a learning curve, but so does everything else in life. "If Yan can cook, so can you!"
  • 60. See http://www.hewettresearch.com/svcc2009/ for related materials. shamod@gmail.com mike@hewettresearch.com