SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Intro to the
Semantic Web
     Peter Snyder
  snyderp@gmail.com




          1
Outline

• What Is the Semantic Web?
• What Problem is it Trying to Solve?
• How does it Solve the problem?

                     2
What is the SW?

• Effort to
  1. make data on the web machine friendly
  2. using existing open technologies
  3. in order to aid information retrieval



                      3
What is the SW? ....
• Made up of
 - XML
 - XML Schema
 - RDF
 - RDF Schema / OWL
 - SPARQL
                4
Outline

• What Is the Semantic Web?
• What Problem is it Trying to Solve?
• How does it Solve the problem?

                     5
What is the Problem?

• Web is human oriented
• All nonsense to machines
• Humans waste time

                    6
Example
http://www.peteresnyder.com/fake
<div>

 <h1>My Homepage</h1>

 <p>Hi, I'm Peter E. Snyder.

 <p>I live in Cambridge.

 <p>I like the band The Fall!

 <p>I love professional wrestling!
</div>



                   7
Outline

• What is the semantic web?
• What problem is it trying to solve?
• How does it solve the problem?

                     8
Solution


• Basic Track (Microformats)
• W3C Recommendation (Alphabet Soup)


                  9
Microformats
<div class="vcard">
  <p>
    <a class="url" href="http://www.peteresnyder.com">
      http://www.peteresnyder.com
    </a>
  </p>
  <p>
    <strong>Name:</strong>
    <span class="fn">Peter Snyder</span>
  </p>
  <p>
    <strong>City:</strong>
    <span class="locality">Cambridge</span>
  </p>
</div>
                              10
W3C Recommends...

• XML
• XML Schema
• RDF
• RDF Schema / OWL
• SPARQL
               11
XML
<?xml version="1.0"?>
<person>

 <name>Peter Snyder</name>

 <website>http://www.peteresnyder.com<website>

 <city>Cambridge</city>

 <interests>

 
 <interest>The Fall</interest>

 
 <interest>Professional Wrestling</interest>

 </interests>
</person>




                             12
XML Schema
                  XML Schema
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="person">
     <xs:complexType>
        <xs:sequence>
           <xs:element name="website" type="xs:string"/>
                            <?xml version="1.0"?>
           <xs:element name="name"xmlns:pes=”http://www.peteresnyder.com/fake_schema”>
                            <person type="xs:string"/>
           <xs:element name="city" type="xs:string"/>
                            
   <pes:name>Peter Snyder</pes:name>
           ...              
   <pes:website>http://www.peteresnyder.com<pes:website>
                            
   <pes:city>Cambridge</pes:city>
                            
   <pes:interests>
                            
   
    <pes:interest>The Fall</pes:interest>
                            
   
    <pes:interest>Professional Wrestling</pes:interest>
                            
   </pes:interests>
                            </pes:person>


                                          13
                                                        XML Document
RDF
• Resource Description Framework
• Description of relationships (taxonomy)
• Triplets
 - subject: thing being described (URI)
 - predicate: what the relationship is
 - object: the object being related to
                     14
RDF Cont.
<urn:name:peteresnyder> <name> "Peter Snyder" .
<urn:name:peteresnyder> <city> "Cambridge" .
<urn:name:peteresnyder> <likes> "The Fall" .

<?xml version="1.0"?>
<rdf:RDF>

 <Human rdf:about="urn:name:peteresnyder">
  
    <name>Peter E Snyder</name>

 
    <city>Cambridge</city>

 
    <likes>The Fall</likes>
        ...




                         15
RDF Schema / OWL
• Defines a standard way that things interact
  (ontology)
• Common Examples
  - Dublin Core: Publishing
  - Friend of a Friend (FOAF): People
- OWL is RDFS+
                     16
RDFS / OWL Cont.
                                             FOAF RDF Schema

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

    
   xmlns:foaf="http://xmlns.com/foaf/0.1/">

    <foaf:Person rdf:about="urn:name:peteresnyder">

    
   <foaf:homepage rdf:resource="http://www.peteresnyder.com"/>

    
   <foaf:givenname>Peter</foaf:givenname>

    
   <foaf:family_name>Snyder</foaf:family_name>

    
   <foaf:interest>The Fall</foaf:interest>
            ....




                                    17
SPARQL

• SPARQL Protocol and RDF Query
  Language
• SQL like language for getting data out of
  RDF connections / graphs



                      18
SPARQL Cont.
     <foaf:Person rdf:about="urn:name:markesmith">
  <foaf:Person rdf:about="urn:name:tinafey">
     
         <foaf:homepage rdf:resource="http://www.peteresnyder.com"/>
<foaf:Person rdf:about="urn:name:peteresnyder">
  
 
 <foaf:homepage rdf:resource="http://www.peteresnyder.com"/>
               <foaf:givenname>Peter</foaf:givenname>
 
   
    

 
 <foaf:homepage rdf:resource="http://www.peteresnyder.com"/>
     
 <foaf:givenname>Peter</foaf:givenname>
 
               <foaf:family_name>Snyder</foaf:family_name> 
                                                         

 
 <foaf:givenname>Peter</foaf:givenname>
 
           <foaf:family_name>Snyder</foaf:family_name> 
                                                       
     
         <foaf:interest>The Fall</foaf:interest>

 
 <foaf:family_name>Snyder</foaf:family_name>
           <foaf:interest>The Fall</foaf:interest>
                ...

   <foaf:interest>The Fall</foaf:interest>
            ...
       ...
                                          +
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        SELECT ?givenname ?family_name
        WHERE { ?x foaf:interest "The Fall"}

                                          =
             ?givenname                               ?family_name
               “Peter”                                   “Snyder”
               “Mark”                                     “Smith”
                                          19
Conclusion
        Current Web                             Semantic Web

<div>                            <?xml version="1.0"?>

 <h1>My Homepage</h1>           <rdf:RDF xmlns:foaf="http://xmlns.com/foaf/0.1/">

 <p>Hi, I'm Peter E. Snyder.    <foaf:Person rdf:about="urn:name:peteresnyder">
                                 
    <foaf:homepage rdf:resource="http://

 <p>I live in Cambridge.
                                 www.peteresnyder.com"/>

 <p>I like the band The Fall!   
    <foaf:givenname>Peter</foaf:givenname>

 <p>I love professional         
    <foaf:family_name>Snyder</foaf:family_name>
wrestling!                       
    <foaf:interest>The Fall</foaf:interest>
</div>
                                ...




                                 20

Weitere ähnliche Inhalte

Andere mochten auch

Introduction To The Semantic Web
Introduction To The Semantic  WebIntroduction To The Semantic  Web
Introduction To The Semantic Webguest262aaa
 
What is Web 3.0?
What is Web 3.0?What is Web 3.0?
What is Web 3.0?Johan Koren
 
6 Key Principles Of Making A Web Design
6 Key Principles Of Making A Web Design6 Key Principles Of Making A Web Design
6 Key Principles Of Making A Web DesignClippingimages
 
What Is Web 3.0 - Characteristics of Web 3.0
What Is Web 3.0 - Characteristics of Web 3.0What Is Web 3.0 - Characteristics of Web 3.0
What Is Web 3.0 - Characteristics of Web 3.0Augustine Fou
 
What is Web 3.0?
What is Web 3.0?What is Web 3.0?
What is Web 3.0?Johan Koren
 
Web2.0 Ppt
Web2.0  PptWeb2.0  Ppt
Web2.0 PptPark.C.H
 
Dc lec-05 (protocols & standards)
Dc lec-05 (protocols & standards)Dc lec-05 (protocols & standards)
Dc lec-05 (protocols & standards)diaryinc
 
Advantages & disadvantages of web 1.0 vs web 2.0
Advantages & disadvantages of web 1.0  vs web 2.0Advantages & disadvantages of web 1.0  vs web 2.0
Advantages & disadvantages of web 1.0 vs web 2.0Nifras Ismail
 
Web 2.0: characteristics and tools (2010 eng)
Web 2.0: characteristics and tools (2010 eng)Web 2.0: characteristics and tools (2010 eng)
Web 2.0: characteristics and tools (2010 eng)Carlo Vaccari
 
Basic Introduction to Web Development
Basic Introduction to Web DevelopmentBasic Introduction to Web Development
Basic Introduction to Web DevelopmentBurhan Khalid
 
World wide web architecture presentation
World wide web architecture presentationWorld wide web architecture presentation
World wide web architecture presentationImMe Khan
 
10 Principles Of Effective Web Design
10 Principles Of Effective Web Design10 Principles Of Effective Web Design
10 Principles Of Effective Web Designsirferds
 
Semantic Web Landscape 2009
Semantic Web Landscape 2009Semantic Web Landscape 2009
Semantic Web Landscape 2009LeeFeigenbaum
 
Web 3.0 explained with a stamp (pt I: the basics)
Web 3.0 explained with a stamp (pt I: the basics)Web 3.0 explained with a stamp (pt I: the basics)
Web 3.0 explained with a stamp (pt I: the basics)Freek Bijl
 
Web Application Development Process presented by @Cygnismedia
Web Application Development Process presented by @CygnismediaWeb Application Development Process presented by @Cygnismedia
Web Application Development Process presented by @CygnismediaClark Davidson
 
Web Standards And Protocols
Web Standards And ProtocolsWeb Standards And Protocols
Web Standards And ProtocolsSteven Cahill
 

Andere mochten auch (20)

Xhtml
XhtmlXhtml
Xhtml
 
Introduction To The Semantic Web
Introduction To The Semantic  WebIntroduction To The Semantic  Web
Introduction To The Semantic Web
 
What is Web 3.0?
What is Web 3.0?What is Web 3.0?
What is Web 3.0?
 
Web 2.0
Web 2.0Web 2.0
Web 2.0
 
6 Key Principles Of Making A Web Design
6 Key Principles Of Making A Web Design6 Key Principles Of Making A Web Design
6 Key Principles Of Making A Web Design
 
What Is Web 3.0 - Characteristics of Web 3.0
What Is Web 3.0 - Characteristics of Web 3.0What Is Web 3.0 - Characteristics of Web 3.0
What Is Web 3.0 - Characteristics of Web 3.0
 
What is Web 3.0?
What is Web 3.0?What is Web 3.0?
What is Web 3.0?
 
Web2.0 Ppt
Web2.0  PptWeb2.0  Ppt
Web2.0 Ppt
 
Web 3.0?
Web 3.0?Web 3.0?
Web 3.0?
 
Dc lec-05 (protocols & standards)
Dc lec-05 (protocols & standards)Dc lec-05 (protocols & standards)
Dc lec-05 (protocols & standards)
 
Advantages & disadvantages of web 1.0 vs web 2.0
Advantages & disadvantages of web 1.0  vs web 2.0Advantages & disadvantages of web 1.0  vs web 2.0
Advantages & disadvantages of web 1.0 vs web 2.0
 
Web 2.0: characteristics and tools (2010 eng)
Web 2.0: characteristics and tools (2010 eng)Web 2.0: characteristics and tools (2010 eng)
Web 2.0: characteristics and tools (2010 eng)
 
Basic Introduction to Web Development
Basic Introduction to Web DevelopmentBasic Introduction to Web Development
Basic Introduction to Web Development
 
World wide web architecture presentation
World wide web architecture presentationWorld wide web architecture presentation
World wide web architecture presentation
 
10 Principles Of Effective Web Design
10 Principles Of Effective Web Design10 Principles Of Effective Web Design
10 Principles Of Effective Web Design
 
Cgi
CgiCgi
Cgi
 
Semantic Web Landscape 2009
Semantic Web Landscape 2009Semantic Web Landscape 2009
Semantic Web Landscape 2009
 
Web 3.0 explained with a stamp (pt I: the basics)
Web 3.0 explained with a stamp (pt I: the basics)Web 3.0 explained with a stamp (pt I: the basics)
Web 3.0 explained with a stamp (pt I: the basics)
 
Web Application Development Process presented by @Cygnismedia
Web Application Development Process presented by @CygnismediaWeb Application Development Process presented by @Cygnismedia
Web Application Development Process presented by @Cygnismedia
 
Web Standards And Protocols
Web Standards And ProtocolsWeb Standards And Protocols
Web Standards And Protocols
 

Kürzlich hochgeladen

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
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
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
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
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 

Kürzlich hochgeladen (20)

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
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
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
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)
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 

Intro to the Semantic Web (CSG339 - NorthEastern University)

  • 1. Intro to the Semantic Web Peter Snyder snyderp@gmail.com 1
  • 2. Outline • What Is the Semantic Web? • What Problem is it Trying to Solve? • How does it Solve the problem? 2
  • 3. What is the SW? • Effort to 1. make data on the web machine friendly 2. using existing open technologies 3. in order to aid information retrieval 3
  • 4. What is the SW? .... • Made up of - XML - XML Schema - RDF - RDF Schema / OWL - SPARQL 4
  • 5. Outline • What Is the Semantic Web? • What Problem is it Trying to Solve? • How does it Solve the problem? 5
  • 6. What is the Problem? • Web is human oriented • All nonsense to machines • Humans waste time 6
  • 7. Example http://www.peteresnyder.com/fake <div> <h1>My Homepage</h1> <p>Hi, I'm Peter E. Snyder. <p>I live in Cambridge. <p>I like the band The Fall! <p>I love professional wrestling! </div> 7
  • 8. Outline • What is the semantic web? • What problem is it trying to solve? • How does it solve the problem? 8
  • 9. Solution • Basic Track (Microformats) • W3C Recommendation (Alphabet Soup) 9
  • 10. Microformats <div class="vcard"> <p> <a class="url" href="http://www.peteresnyder.com"> http://www.peteresnyder.com </a> </p> <p> <strong>Name:</strong> <span class="fn">Peter Snyder</span> </p> <p> <strong>City:</strong> <span class="locality">Cambridge</span> </p> </div> 10
  • 11. W3C Recommends... • XML • XML Schema • RDF • RDF Schema / OWL • SPARQL 11
  • 12. XML <?xml version="1.0"?> <person> <name>Peter Snyder</name> <website>http://www.peteresnyder.com<website> <city>Cambridge</city> <interests> <interest>The Fall</interest> <interest>Professional Wrestling</interest> </interests> </person> 12
  • 13. XML Schema XML Schema <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="person"> <xs:complexType> <xs:sequence> <xs:element name="website" type="xs:string"/> <?xml version="1.0"?> <xs:element name="name"xmlns:pes=”http://www.peteresnyder.com/fake_schema”> <person type="xs:string"/> <xs:element name="city" type="xs:string"/> <pes:name>Peter Snyder</pes:name> ... <pes:website>http://www.peteresnyder.com<pes:website> <pes:city>Cambridge</pes:city> <pes:interests> <pes:interest>The Fall</pes:interest> <pes:interest>Professional Wrestling</pes:interest> </pes:interests> </pes:person> 13 XML Document
  • 14. RDF • Resource Description Framework • Description of relationships (taxonomy) • Triplets - subject: thing being described (URI) - predicate: what the relationship is - object: the object being related to 14
  • 15. RDF Cont. <urn:name:peteresnyder> <name> "Peter Snyder" . <urn:name:peteresnyder> <city> "Cambridge" . <urn:name:peteresnyder> <likes> "The Fall" . <?xml version="1.0"?> <rdf:RDF> <Human rdf:about="urn:name:peteresnyder"> <name>Peter E Snyder</name> <city>Cambridge</city> <likes>The Fall</likes> ... 15
  • 16. RDF Schema / OWL • Defines a standard way that things interact (ontology) • Common Examples - Dublin Core: Publishing - Friend of a Friend (FOAF): People - OWL is RDFS+ 16
  • 17. RDFS / OWL Cont. FOAF RDF Schema <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/"> <foaf:Person rdf:about="urn:name:peteresnyder"> <foaf:homepage rdf:resource="http://www.peteresnyder.com"/> <foaf:givenname>Peter</foaf:givenname> <foaf:family_name>Snyder</foaf:family_name> <foaf:interest>The Fall</foaf:interest> .... 17
  • 18. SPARQL • SPARQL Protocol and RDF Query Language • SQL like language for getting data out of RDF connections / graphs 18
  • 19. SPARQL Cont. <foaf:Person rdf:about="urn:name:markesmith"> <foaf:Person rdf:about="urn:name:tinafey"> <foaf:homepage rdf:resource="http://www.peteresnyder.com"/> <foaf:Person rdf:about="urn:name:peteresnyder"> <foaf:homepage rdf:resource="http://www.peteresnyder.com"/> <foaf:givenname>Peter</foaf:givenname> <foaf:homepage rdf:resource="http://www.peteresnyder.com"/> <foaf:givenname>Peter</foaf:givenname> <foaf:family_name>Snyder</foaf:family_name> <foaf:givenname>Peter</foaf:givenname> <foaf:family_name>Snyder</foaf:family_name> <foaf:interest>The Fall</foaf:interest> <foaf:family_name>Snyder</foaf:family_name> <foaf:interest>The Fall</foaf:interest> ... <foaf:interest>The Fall</foaf:interest> ... ... + PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?givenname ?family_name WHERE { ?x foaf:interest "The Fall"} = ?givenname ?family_name “Peter” “Snyder” “Mark” “Smith” 19
  • 20. Conclusion Current Web Semantic Web <div> <?xml version="1.0"?> <h1>My Homepage</h1> <rdf:RDF xmlns:foaf="http://xmlns.com/foaf/0.1/"> <p>Hi, I'm Peter E. Snyder. <foaf:Person rdf:about="urn:name:peteresnyder"> <foaf:homepage rdf:resource="http:// <p>I live in Cambridge. www.peteresnyder.com"/> <p>I like the band The Fall! <foaf:givenname>Peter</foaf:givenname> <p>I love professional <foaf:family_name>Snyder</foaf:family_name> wrestling! <foaf:interest>The Fall</foaf:interest> </div> ... 20