SlideShare una empresa de Scribd logo
1 de 29
Descargar para leer sin conexión
‫أكاديمية الحكومة اإللكترونية الفلسطينية‬
              The Palestinian eGovernment Academy
                               www.egovacademy.ps


Tutorial II: Data Integration and Open Information Systems
                                Session 5.1

                                  RDF
              Resource Description Framework

                       Prof. Mustafa Jarrar
                     Sina Institute, University of Birzeit
                             mjarrar@birzeit.edu
                                www.jarrar.info


                                Reviewed by
                 Prof. Marco Ronchetti, Trento University, Italy
                                 PalGov © 2011                     1
About

This tutorial is part of the PalGov project, funded by the TEMPUS IV program of the
Commission of the European Communities, grant agreement 511159-TEMPUS-1-
2010-1-PS-TEMPUS-JPHES. The project website: www.egovacademy.ps
Project Consortium:

             Birzeit University, Palestine
                                                           University of Trento, Italy
             (Coordinator )


             Palestine Polytechnic University, Palestine   Vrije Universiteit Brussel, Belgium


             Palestine Technical University, Palestine
                                                           Université de Savoie, France

             Ministry of Telecom and IT, Palestine
                                                           University of Namur, Belgium
             Ministry of Interior, Palestine
                                                           TrueTrust, UK
             Ministry of Local Government, Palestine


Coordinator:
Dr. Mustafa Jarrar
Birzeit University, P.O.Box 14- Birzeit, Palestine
Telfax:+972 2 2982935 mjarrar@birzeit.eduPalGov © 2011
                                                                                                 2
© Copyright Notes
Everyone is encouraged to use this material, or part of it, but should
properly cite the project (logo and website), and the author of that part.


No part of this tutorial may be reproduced or modified in any form or by
any means, without prior written permission from the project, who have
the full copyrights on the material.




                 Attribution-NonCommercial-ShareAlike
                              CC-BY-NC-SA

This license lets others remix, tweak, and build upon your work non-
commercially, as long as they credit you and license their new creations
under the identical terms.

                                 PalGov © 2011                               3
Tutorial Map

                                                                                                           Topic                                     h
              Intended Learning Objectives
                                                                              Session 1: XML Basics and Namespaces                               3
A: Knowledge and Understanding
                                                                              Session 2: XML DTD’s                                               3
  2a1: Describe tree and graph data models.
                                                                              Session 3: XML Schemas                                             3
  2a2: Understand the notation of XML, RDF, RDFS, and OWL.
                                                                              Session 4: Lab-XML Schemas                                         3
  2a3: Demonstrate knowledge about querying techniques for data
  models as SPARQL and XPath.                                                 Session 5: RDF and RDFs                                            3

  2a4: Explain the concepts of identity management and Linked data.           Session 6: Lab-RDF and RDFs                                        3
  2a5: Demonstrate knowledge about Integration &fusion of                     Session 7: OWL (Ontology Web Language)                             3
  heterogeneous data.                                                         Session 8: Lab-OWL                                                 3
B: Intellectual Skills                                                        Session 9: Lab-RDF Stores -Challenges and Solutions                3
  2b1: Represent data using tree and graph data models (XML &                 Session 10: Lab-SPARQL                                             3
  RDF).                                                                       Session 11: Lab-Oracle Semantic Technology                         3
  2b2: Describe data semantics using RDFS and OWL.                            Session 12_1: The problem of Data Integration                      1.5
  2b3: Manage and query data represented in RDF, XML, OWL.                    Session 12_2: Architectural Solutions for the Integration Issues   1.5
  2b4: Integrate and fuse heterogeneous data.                                 Session 13_1: Data Schema Integration                              1
C: Professional and Practical Skills                                          Session 13_2: GAV and LAV Integration                              1
  2c1: Using Oracle Semantic Technology and/or Virtuoso to store              Session 13_3: Data Integration and Fusion using RDF                1
  and query RDF stores.                                                       Session 14: Lab-Data Integration and Fusion using RDF              3
D: General and Transferable Skills
  2d1: Working with team.                                                     Session 15_1: Data Web and Linked Data                             1.5
  2d2: Presenting and defending ideas.                                        Session 15_2: RDFa                                                 1.5
  2d3: Use of creativity and innovation in problem solving.
  2d4: Develop communication skills and logical reasoning abilities.          Session 16: Lab-RDFa                                               3

                                                                       PalGov © 2011                                                                     4
Reading


RDF Primer (http://www.w3.org/TR/rdf-syntax-grammar/ )


Please have a look only to:
    Chapter 2 Making Statements About Resources
    Chapter 3 An XML Syntax for RDF: RDF/XML
    Chapter 3 Defining RDF Vocabularies: RDF Schema




                            PalGov © 2011                5
What is XML

      • Provides a common syntax for marking up documents.
      • Easy to exchange between computers (web)
      • Data model: an XML Document is an ordered labeled tree
        (/collection of trees).
      • W3C standard since 1997.
                                                         bookinfo
<bookInfo>
  <title>Orientalism</title>
  <author>                                      title                author
     <persName>
        <title>Prof.</title>
        <foreName>Edward</foreName>
        <surName>Said</surName>                                     persNam
        <roleName>University Professor                              e
            <placeName>Columbia University
            </placeName>
        </roleName>                                     title   foreName surName roleName
     </persName>
  </author>
</bookInfo>
                                                                                placeName

                                        PalGov © 2011                                  6
XML Example




<address>
   <name>Universsity of Birzeit</name>
   <street>Almarj 435</street>
   <town>Birzeit</town>
</address>




                 PalGov © 2011           7
Address Example: XML to XML

XML Markup 1:
  <address>
    <name>University of Birzeit</name>
    <street>Almarj 435</street>
    <town>Birzeit</town>
  </address>                        XML stylesheets     are
XML Markup 2:                         also usable to transform
 <address>                            XML representations
   <name>University of Birzeit</name>
   <place>
     <street>Almarj 435</street>
     <town>Birzeit</town>
   </place>
 </address>


                      PalGov © 2011                         8
Why XML is Not Enough

• It provides syntax, but not semantics, which is important when
   exchanging/representing data over the Web.
           <aaaa>
              <bbbb>Universsity of Birzeit</aaaa>
              <cccc>Almarj 435</cccc>
              <dddd>Birzeit</dddd>
           </aaaa>


• Not primitive. Same data can be represented in many ways, which is a
   problem when exchanging/representing data over the Web.
<address>                               <address name=“University of Birzeit”>
  <name>University of Birzeit</name>    <street>Almarj 435</street>
  <street>Almarj 435</street>             <town>Birzeit</town>
  <town>Birzeit</town>                  </address>
</address>

                                PalGov © 2011                              9
What is RDF?



• RDF stands for Resource Description Framework.

• It is used for describing resources on the web.

• Makes use of URIs to identify web resources and is
  written in XML.
• It is not a language but a framework
      • You see it as a way of writing XML  making it meaningful and more
        primitive.
      • You may see it independent, RDF data might never occur in XML form

• W3C standard since 1999

                        PalGov © 2011                                 10
Designed to be read by Computers

• RDF was designed to provide a common way to describe
  information so it can be read (and understood) by
  computer applications.

• RDF descriptions are not designed to be displayed on the
  web.




                        PalGov © 2011                  11
Makes use of URIs



• RDF uses a URI (Uniform Resource Identifier) to identify a
  web resource, and properties to describe the resource

• Unlike URLs, URIs are not limited to identifying things that
  have a network location.

• A URI reference (URIref) is a URI, together with an
  optional    fragment     identifier  at    the  end.
  http://www.example.org/index.html#section2




                         PalGov © 2011                     12
Example

                                                                 :Author
http://www.amazon.com/Orientalism-Edward-W-Said/dp/039474067Xc             Edward Said




                 11$                       Orientalism
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#
xmlns:a="http://www.example.com"
 xmlns:w="http://en.wikipedia.org/wiki/">
 <rdf:Description rdf:about="http://www.amazon.com/Orientalism-Edward-W-Said/dp/039474067X">
   <a:Title>Orientalism</a:Title>
   <a:Price>11$</a:Price>
   <a:Author>Edward_Said</a:Author>
 </rdf:Description>
</rdf:RDF>




                                                          PalGov © 2011                        13
Example

                                                                 a:Author     http://en.wikipedia.org/wiki/Edward_Said
http://www.amazon.com/Orientalism-Edward-W-Said/dp/039474067Xc




                                                                                               a:BirthCity
                                                                  25/9/2003
                 11$                       Orientalism                                                        Edward Saïd
                                                                              1/11/1935
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#               Jerusalem
xmlns:a="http://www.example.com/"
 xmlns:w="http://en.wikipedia.org/wiki/">
 <rdf:Description rdf:about="http://www.amazon.com/Orientalism-Edward-W-Said/dp/039474067X">
  <a:Title>Orientalism</a:Title>
   <a:Price>11$</a:Price>
   <a:Author>
   <rdf:Description rdf:about="w:Edward_Said">
    <a:BirthCity>Jerusalem</a:BirthCity>
    <a:BornAt>1/11/1935</a:BornAt>
    <a:DiedA>25/9/2003</a:DiedA>
   </rdf:Description>
</a:Author>
 </rdf:Description>
</rdf:RDF>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
                                                          PalGov © 2011                                                  14
Example

                                                                 :Author       http://en.wikipedia.org/wiki/Edward_Said
http://www.amazon.com/Orientalism-Edward-W-Said/dp/039474067Xc




                                                                                                :BirthCity
                                                                  25/9/2003
 <?xml version="1.0"?>
                                             Orientalism
 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                   11$                                                                                            Edward Saïd
  xmlns:dc="http://purl.org/dc/elements/1.1/"                                1/11/1935
  xmlns:a="http://www.example.com#"
  xmlns:w="http://en.wikipedia.org/wiki/">                                       http://en.wikipedia.org/wiki/Jerusalem
  <rdf:Description rdf:about="http://www.amazon.com/Orientalism-Edward-W-Said/dp/039474067X">
    <a:Title>Orientalism</a:Title>
    <a:Price>11$</a:Price>
    <a:Author>
    <rdf:Description rdf:about="w:Edward_Said">
     <a:BornAt>1/11/1935</a:BornAt>
     <a:DiedA>25/9/2003</a:DiedA>
     <a:BirthCity>                                                               760800                          Palestine
     <rdf:Description rdf:about="http://en.wikipedia.org/wiki/Jerusalem">
       <a:Population>760800</a:Population>
       <a:CapitalOf>Palestine</a:CapitalOf>
      </rdf:Description>
     </a:BirthCity>
    </rdf:Description>
 </a:Author>
  </rdf:Description>
 </rdf:RDF>

                                                          PalGov © 2011                                                   15
Another Example




             PalGov © 2011   16
Directed Graph Representation




              PalGov © 2011     17
Simple Example



<?xml version="1.0"?>
<RDF>
<Description about="http://www.w3schools.com/default.asp">
   <author>Jan Egil Refsnes</author>
   <created>November 1, 1999</created>
   <modified>February 1, 2004</modified>
 </Description>
</RDF>



                         PalGov © 2011                  18
Example Explained


• In the example:
   – the URI "http://www.w3schools.com/-default.asp" is
      used to identify a web page,

   – the property "author" describes the author of the page,

   – the property value is "Jan Egil Refsnes".

   – The property "created" tells when the page was
     created, and the property "modified" when it was last
     modified.


                        PalGov © 2011                     19
Subject, Predicate & Object



• RDF terminology also use the words subject,
  predicate and object.

• The resource http://www.w3schools.com/default.asp is
  the subject

• The property "author" is the predicate

• The value "Jan Egil Refsnes" is the object



                      PalGov © 2011                  20
RDF Important Concepts

• Data is represented in RDF as a directed labeled graph.

• An RDF graph is a set of triples, of the form <Subject, Predicate, Object>




Each Subject and each Predicate must be a URI; that is, it has to be a
unique identifier, not a literal. An Object can be either a URI or a literal.

                                PalGov © 2011                              21
Example 2


<rdf:RDF>
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax ns#"
   xmlns:cd="http://www.recshop.fake/cd">
   <rdf:Description
         rdf:about="http://www.recshop.fake/cd/Empire Burlesque">
         <cd:artist>Bob Dylan</cd:artist>
         <cd:country>USA</cd:country>
         <cd:company>Columbia</cd:company>
         <cd:price>10.90</cd:price>
         <cd:year>1985</cd:year>
   </rdf:Description>
............




                             PalGov © 2011                          22
Example 2 (cont)




   <rdf:Description
         rdf:about="http://www.recshop.fake/cd/Hide your heart">
         <cd:artist>Bonnie Tyler</cd:artist>
         <cd:country>UK</cd:country>
         <cd:company>CBS Records</cd:company>
         <cd:price>9.90</cd:price>
         <cd:year>1988</cd:year>
   </rdf:Description>
</rdf:RDF>




                           PalGov © 2011                           23
List of Triples (Table Representation)

 Subject                                 Predicate                          Object


 http://www.recshop.fake/cd/Empire                                          "Bob
                                         http://www.recshop.fake/cdartist
 Burlesque                                                                  Dylan"


 http://www.recshop.fake/cd/Empire       http://www.recshop.fake/cdcount
                                                                            "USA"
 Burlesque                               ry


 http://www.recshop.fake/cd/Empire       http://www.recshop.fake/cdcomp
                                                                            "Columbia"
 Burlesque                               any


 http://www.recshop.fake/cd/Empire
                                         http://www.recshop.fake/cdprice    "10.90"
 Burlesque


 http://www.recshop.fake/cd/Empire
                                         http://www.recshop.fake/cdyear     "1985"
 Burlesque




                               PalGov © 2011                                             24
Details of the Example

• The first line in the XML file is the XML declaration, telling the version of
  XML.
• The rdf:RDF element indicates that the content is RDF.
• The xmlns:rdf namespace, specifies that tags with the rdf: prefix are
  from the namespace defined by "http://www.w3.org/1999/02/22-rdf-syntax-ns#".
• The xmlns:cd namespace, specifies that tags with the cd: prefix are
  from the namespace defined by "http://www.recshop.fake/cd".
• The rdf:Description element contains the description of a resource
  identified by the rdf:about attribute.
• The cd:artist element describes a property of the resource, and so
  does cd:country, etc.



                                  PalGov © 2011                              25
Main RDF Properties and Attributes

Main RDF Properties
• rdf:subject The subject of the resource in an RDF Statement
• rdf:predicate The predicate of the resource in an RDF Statement
• rdf:object The object of the resource in an RDF Statement
• rdf:type The resource is an instance of a class

Main RDF Attributes
• rdf:RDF           The root of an RDF document
• rdf:about         Defines the resource being described
• rdf:Description Container for the description of a resource
• rdf:resource      Defines a resource to identify a property
• rdf:datatype      Defines the data type of an element



                             PalGov © 2011                          26
RDF Validator


• Check the correctness of an RDF document:
http://www.w3.org/RDF/Validator/

• Result shows the subject, predicate and object of each
  element of the document and a graph of the model.




                         PalGov © 2011                     27
XML into RDF (Eaxmple)

                                              <Article ID=B2 Year=“2005”>                                    <Article ID=B3 Year=“2007”>
XML <XML> ID=B1 Year=“2000”>
     <Article                                     <Author href=“#A1”/>                                          <Author ID=A3>
        <Author ID=A1>                            <Author ID=A2>                                                   <email>ps@uoc</email>
          <Name>Tom</Name>                          <Name>Bob</Name>                                               <Affiliation href=“#UoC”/>
          <Affiliation ID=UoM>                      <Affiliation ID=UoC>                                     <Author>
               <Name>University of Malta</Name>          <Name>University of Cyprus</Name>                    </Article>
               <Country ID=mt>                           <Country ID=cy>                                     <Article ID=B4 Year=“2008”>
                 <Name> Malta</Name>                        <Name> Cyprus</Name>                              <Publisher ID=ACM/>
                 <Capital>Valletta</Capital>                <Capital>Nicosia</Capital>                       </Article>
              </Country>                                </Country>                                           </XML>
       </Affiliation>                               </Affiliation>
       <Author>                                   <Author>
      </Article>                                </Article>


                                              2000                             Employs                    “University of Malta”
                                                                                                                            “Malta”
                                         Author                 Affiliation                      County
                                   B1                    A1                                UoM                mt
                                                                               “Tom”                                       “Valletta”
                Root
                                                                               “Bob”
                                                                                                                           “Cyprus”
  RDF
                  Article




                                   B2                            Affiliation                     County
                                                         A2                                UoC                cy
                                                                                 Employs
                                                  2005                                                                     “Nicosia”
                 B4                B3
                                                         A3                                               “University of Cyprus”
                            2008   ACM            2007                   p3@uoc

                                                              PalGov © 2011                                                             28
Database into RDF (Example)

                                                                                           RDF
                                                                             S         P                O
                                                                         :B1     rdf:Type        :Article
                                                                         :B1     :Title          “Data Web”
                     Article
                                                                         :B1     :Year           2007
                     ID    Tile                   Year                   :B2     rdf:Type        :Article
                     B1    Data Web               2007                   :B2     :Title          “Semantic Web”
Author               B2    Semantic Web           2005
                                                                         :B2     :Year           2005
Article    Person
                                                                         :B1     :Author         :A1
                     Person                                              :B1     :Author         :A2
B1         A1        ID    Name                 Affiliation              :B2     :Author         :A1
B1         A2        A1    Tom Lara             UoM
                                                                         :A1     rdf:Type        :Person
B2         A2
                                                                         :A1     :Name           “Tom Lara”
                     A2    Bob Hacker           UoC                      :A1     :Affiliation    :UoM
     Country                      Affiliation                            :A2     :Type           :Person
                                  ID      Country
                                                                         :A2     :Name           “Bob Hacker”
     ID    Name                                                          :A2     :Affiliation    :UoC
                                  UoM     mt
     mt    Malta                                                         :UoM    :Type           :University
                                  UoC     cy                             :UoM    :Country        :mt
     cy    Cyprus
                                                                         :mt     :Type           :Country
                                                                         :mt     :Name           “Malta”
                                                                         :UoC    :Type           :University
                                                                         :UoC    :Country        :cy
                                                                         :cy     :Type           :Country
                                                                         :cy     :Name           “Cyprus”
                                                              PalGov © 2011                                       29

Más contenido relacionado

La actualidad más candente

Pal gov.tutorial2.session1.xml basics and namespaces
Pal gov.tutorial2.session1.xml basics and namespacesPal gov.tutorial2.session1.xml basics and namespaces
Pal gov.tutorial2.session1.xml basics and namespaces
Mustafa Jarrar
 
Pal gov.tutorial2.session8.lab owl
Pal gov.tutorial2.session8.lab owlPal gov.tutorial2.session8.lab owl
Pal gov.tutorial2.session8.lab owl
Mustafa Jarrar
 
Pal gov.tutorial2.session2.xml dtd's
Pal gov.tutorial2.session2.xml dtd'sPal gov.tutorial2.session2.xml dtd's
Pal gov.tutorial2.session2.xml dtd's
Mustafa Jarrar
 
Pal gov.tutorial2.session16.lab rd-fa
Pal gov.tutorial2.session16.lab rd-faPal gov.tutorial2.session16.lab rd-fa
Pal gov.tutorial2.session16.lab rd-fa
Mustafa Jarrar
 
Pal gov.tutorial2.session14.lab rdf-dataintegration
Pal gov.tutorial2.session14.lab rdf-dataintegrationPal gov.tutorial2.session14.lab rdf-dataintegration
Pal gov.tutorial2.session14.lab rdf-dataintegration
Mustafa Jarrar
 
Pal gov.tutorial2.session13 3.data integration and fusion using rdf
Pal gov.tutorial2.session13 3.data integration and fusion using rdfPal gov.tutorial2.session13 3.data integration and fusion using rdf
Pal gov.tutorial2.session13 3.data integration and fusion using rdf
Mustafa Jarrar
 
Pal gov.tutorial2.session13 2.gav and lav integration
Pal gov.tutorial2.session13 2.gav and lav integrationPal gov.tutorial2.session13 2.gav and lav integration
Pal gov.tutorial2.session13 2.gav and lav integration
Mustafa Jarrar
 
Pal gov.tutorial2.session4.lab xml document and schemas
Pal gov.tutorial2.session4.lab xml  document and schemasPal gov.tutorial2.session4.lab xml  document and schemas
Pal gov.tutorial2.session4.lab xml document and schemas
Mustafa Jarrar
 
Pal gov.tutorial2.session15 1.linkeddata
Pal gov.tutorial2.session15 1.linkeddataPal gov.tutorial2.session15 1.linkeddata
Pal gov.tutorial2.session15 1.linkeddata
Mustafa Jarrar
 
Pal gov.tutorial2.session12 1.the problem of data integration
Pal gov.tutorial2.session12 1.the problem of data integrationPal gov.tutorial2.session12 1.the problem of data integration
Pal gov.tutorial2.session12 1.the problem of data integration
Mustafa Jarrar
 
Pal gov.tutorial2.session13 1.data schema integration
Pal gov.tutorial2.session13 1.data schema integrationPal gov.tutorial2.session13 1.data schema integration
Pal gov.tutorial2.session13 1.data schema integration
Mustafa Jarrar
 
Pal gov.tutorial2.session0.outline
Pal gov.tutorial2.session0.outlinePal gov.tutorial2.session0.outline
Pal gov.tutorial2.session0.outline
Mustafa Jarrar
 
Pal gov.tutorial2.session12 2.architectural solutions for the integration issues
Pal gov.tutorial2.session12 2.architectural solutions for the integration issuesPal gov.tutorial2.session12 2.architectural solutions for the integration issues
Pal gov.tutorial2.session12 2.architectural solutions for the integration issues
Mustafa Jarrar
 
Pal gov.tutorial3.session2.xml ns and schema
Pal gov.tutorial3.session2.xml ns and schemaPal gov.tutorial3.session2.xml ns and schema
Pal gov.tutorial3.session2.xml ns and schema
Mustafa Jarrar
 
Pal gov.tutorial3.session3.xpath & xquery (lab1)
Pal gov.tutorial3.session3.xpath & xquery (lab1)Pal gov.tutorial3.session3.xpath & xquery (lab1)
Pal gov.tutorial3.session3.xpath & xquery (lab1)
Mustafa Jarrar
 
LODUM talk at ifgi's Spatial @ WWU series
LODUM talk at ifgi's Spatial @ WWU seriesLODUM talk at ifgi's Spatial @ WWU series
LODUM talk at ifgi's Spatial @ WWU series
Carsten Keßler
 
Chicago LOMRDF update 2003-06-19
Chicago LOMRDF update 2003-06-19 Chicago LOMRDF update 2003-06-19
Chicago LOMRDF update 2003-06-19
Mikael Nilsson
 

La actualidad más candente (19)

Pal gov.tutorial2.session1.xml basics and namespaces
Pal gov.tutorial2.session1.xml basics and namespacesPal gov.tutorial2.session1.xml basics and namespaces
Pal gov.tutorial2.session1.xml basics and namespaces
 
Pal gov.tutorial2.session8.lab owl
Pal gov.tutorial2.session8.lab owlPal gov.tutorial2.session8.lab owl
Pal gov.tutorial2.session8.lab owl
 
Pal gov.tutorial2.session2.xml dtd's
Pal gov.tutorial2.session2.xml dtd'sPal gov.tutorial2.session2.xml dtd's
Pal gov.tutorial2.session2.xml dtd's
 
Pal gov.tutorial2.session16.lab rd-fa
Pal gov.tutorial2.session16.lab rd-faPal gov.tutorial2.session16.lab rd-fa
Pal gov.tutorial2.session16.lab rd-fa
 
Pal gov.tutorial2.session14.lab rdf-dataintegration
Pal gov.tutorial2.session14.lab rdf-dataintegrationPal gov.tutorial2.session14.lab rdf-dataintegration
Pal gov.tutorial2.session14.lab rdf-dataintegration
 
Pal gov.tutorial2.session13 3.data integration and fusion using rdf
Pal gov.tutorial2.session13 3.data integration and fusion using rdfPal gov.tutorial2.session13 3.data integration and fusion using rdf
Pal gov.tutorial2.session13 3.data integration and fusion using rdf
 
Pal gov.tutorial2.session13 2.gav and lav integration
Pal gov.tutorial2.session13 2.gav and lav integrationPal gov.tutorial2.session13 2.gav and lav integration
Pal gov.tutorial2.session13 2.gav and lav integration
 
Pal gov.tutorial2.session4.lab xml document and schemas
Pal gov.tutorial2.session4.lab xml  document and schemasPal gov.tutorial2.session4.lab xml  document and schemas
Pal gov.tutorial2.session4.lab xml document and schemas
 
Pal gov.tutorial2.session15 1.linkeddata
Pal gov.tutorial2.session15 1.linkeddataPal gov.tutorial2.session15 1.linkeddata
Pal gov.tutorial2.session15 1.linkeddata
 
Pal gov.tutorial2.session12 1.the problem of data integration
Pal gov.tutorial2.session12 1.the problem of data integrationPal gov.tutorial2.session12 1.the problem of data integration
Pal gov.tutorial2.session12 1.the problem of data integration
 
Pal gov.tutorial2.session13 1.data schema integration
Pal gov.tutorial2.session13 1.data schema integrationPal gov.tutorial2.session13 1.data schema integration
Pal gov.tutorial2.session13 1.data schema integration
 
Pal gov.tutorial2.session0.outline
Pal gov.tutorial2.session0.outlinePal gov.tutorial2.session0.outline
Pal gov.tutorial2.session0.outline
 
Pal gov.tutorial2.session12 2.architectural solutions for the integration issues
Pal gov.tutorial2.session12 2.architectural solutions for the integration issuesPal gov.tutorial2.session12 2.architectural solutions for the integration issues
Pal gov.tutorial2.session12 2.architectural solutions for the integration issues
 
Pal gov.tutorial3.session2.xml ns and schema
Pal gov.tutorial3.session2.xml ns and schemaPal gov.tutorial3.session2.xml ns and schema
Pal gov.tutorial3.session2.xml ns and schema
 
Pal gov.tutorial3.session3.xpath & xquery (lab1)
Pal gov.tutorial3.session3.xpath & xquery (lab1)Pal gov.tutorial3.session3.xpath & xquery (lab1)
Pal gov.tutorial3.session3.xpath & xquery (lab1)
 
Producing, Publishing and Consuming Linked Data Three lessons from the Bio2RD...
Producing, Publishing and Consuming Linked Data Three lessons from the Bio2RD...Producing, Publishing and Consuming Linked Data Three lessons from the Bio2RD...
Producing, Publishing and Consuming Linked Data Three lessons from the Bio2RD...
 
LODUM talk at ifgi's Spatial @ WWU series
LODUM talk at ifgi's Spatial @ WWU seriesLODUM talk at ifgi's Spatial @ WWU series
LODUM talk at ifgi's Spatial @ WWU series
 
Chicago LOMRDF update 2003-06-19
Chicago LOMRDF update 2003-06-19 Chicago LOMRDF update 2003-06-19
Chicago LOMRDF update 2003-06-19
 
Learning Analytics for the Lifelong Long Tail Learner
Learning Analytics for the Lifelong Long Tail LearnerLearning Analytics for the Lifelong Long Tail Learner
Learning Analytics for the Lifelong Long Tail Learner
 

Similar a Pal gov.tutorial2.session5 1.rdf_jarrar

Pal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemanticsPal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemantics
Mustafa Jarrar
 
Pal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemanticsPal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemantics
Mustafa Jarrar
 
Pal gov.tutorial3.session0.outline
Pal gov.tutorial3.session0.outlinePal gov.tutorial3.session0.outline
Pal gov.tutorial3.session0.outline
Mustafa Jarrar
 
Pal gov.tutorial3.session4.rest
Pal gov.tutorial3.session4.restPal gov.tutorial3.session4.rest
Pal gov.tutorial3.session4.rest
Mustafa Jarrar
 
Pal gov.tutorial3.session5.lab2
Pal gov.tutorial3.session5.lab2Pal gov.tutorial3.session5.lab2
Pal gov.tutorial3.session5.lab2
Mustafa Jarrar
 
Pal gov.tutorial4.session6 2.knowledge double-articulation
Pal gov.tutorial4.session6 2.knowledge double-articulationPal gov.tutorial4.session6 2.knowledge double-articulation
Pal gov.tutorial4.session6 2.knowledge double-articulation
Mustafa Jarrar
 
Pal gov.tutorial3.session14.lab6
Pal gov.tutorial3.session14.lab6Pal gov.tutorial3.session14.lab6
Pal gov.tutorial3.session14.lab6
Mustafa Jarrar
 
Pal gov.tutorial3.session12.lab5
Pal gov.tutorial3.session12.lab5Pal gov.tutorial3.session12.lab5
Pal gov.tutorial3.session12.lab5
Mustafa Jarrar
 
Pal gov.tutorial3.session6.soap
Pal gov.tutorial3.session6.soapPal gov.tutorial3.session6.soap
Pal gov.tutorial3.session6.soap
Mustafa Jarrar
 
Datalift a-catalyser-for-the-web-of-data-fosdem-05-02-2011
Datalift a-catalyser-for-the-web-of-data-fosdem-05-02-2011Datalift a-catalyser-for-the-web-of-data-fosdem-05-02-2011
Datalift a-catalyser-for-the-web-of-data-fosdem-05-02-2011
Datalift
 
Pal gov.tutorial4.session12 2.wordnets
Pal gov.tutorial4.session12 2.wordnetsPal gov.tutorial4.session12 2.wordnets
Pal gov.tutorial4.session12 2.wordnets
Mustafa Jarrar
 
Pal gov.tutorial4.session11.lab zinnarontologybasedwebservices
Pal gov.tutorial4.session11.lab zinnarontologybasedwebservicesPal gov.tutorial4.session11.lab zinnarontologybasedwebservices
Pal gov.tutorial4.session11.lab zinnarontologybasedwebservices
Mustafa Jarrar
 
Rdf Processing Tools In Java
Rdf Processing Tools In JavaRdf Processing Tools In Java
Rdf Processing Tools In Java
DicusarCorneliu
 

Similar a Pal gov.tutorial2.session5 1.rdf_jarrar (14)

Pal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemanticsPal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemantics
 
Pal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemanticsPal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemantics
 
Pal gov.tutorial3.session0.outline
Pal gov.tutorial3.session0.outlinePal gov.tutorial3.session0.outline
Pal gov.tutorial3.session0.outline
 
Pal gov.tutorial3.session4.rest
Pal gov.tutorial3.session4.restPal gov.tutorial3.session4.rest
Pal gov.tutorial3.session4.rest
 
Pal gov.tutorial3.session5.lab2
Pal gov.tutorial3.session5.lab2Pal gov.tutorial3.session5.lab2
Pal gov.tutorial3.session5.lab2
 
Pal gov.tutorial4.session6 2.knowledge double-articulation
Pal gov.tutorial4.session6 2.knowledge double-articulationPal gov.tutorial4.session6 2.knowledge double-articulation
Pal gov.tutorial4.session6 2.knowledge double-articulation
 
Pal gov.tutorial3.session14.lab6
Pal gov.tutorial3.session14.lab6Pal gov.tutorial3.session14.lab6
Pal gov.tutorial3.session14.lab6
 
Pal gov.tutorial3.session12.lab5
Pal gov.tutorial3.session12.lab5Pal gov.tutorial3.session12.lab5
Pal gov.tutorial3.session12.lab5
 
Pal gov.tutorial3.session6.soap
Pal gov.tutorial3.session6.soapPal gov.tutorial3.session6.soap
Pal gov.tutorial3.session6.soap
 
Datalift a-catalyser-for-the-web-of-data-fosdem-05-02-2011
Datalift a-catalyser-for-the-web-of-data-fosdem-05-02-2011Datalift a-catalyser-for-the-web-of-data-fosdem-05-02-2011
Datalift a-catalyser-for-the-web-of-data-fosdem-05-02-2011
 
Datalift a-catalyser-for-the-web-of-data-fosdem-05-02-2011
Datalift a-catalyser-for-the-web-of-data-fosdem-05-02-2011Datalift a-catalyser-for-the-web-of-data-fosdem-05-02-2011
Datalift a-catalyser-for-the-web-of-data-fosdem-05-02-2011
 
Pal gov.tutorial4.session12 2.wordnets
Pal gov.tutorial4.session12 2.wordnetsPal gov.tutorial4.session12 2.wordnets
Pal gov.tutorial4.session12 2.wordnets
 
Pal gov.tutorial4.session11.lab zinnarontologybasedwebservices
Pal gov.tutorial4.session11.lab zinnarontologybasedwebservicesPal gov.tutorial4.session11.lab zinnarontologybasedwebservices
Pal gov.tutorial4.session11.lab zinnarontologybasedwebservices
 
Rdf Processing Tools In Java
Rdf Processing Tools In JavaRdf Processing Tools In Java
Rdf Processing Tools In Java
 

Más de Mustafa Jarrar

Habash: Arabic Natural Language Processing
Habash: Arabic Natural Language ProcessingHabash: Arabic Natural Language Processing
Habash: Arabic Natural Language Processing
Mustafa Jarrar
 
Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing
Mustafa Jarrar
 
Jarrar: Sparql Project
Jarrar: Sparql ProjectJarrar: Sparql Project
Jarrar: Sparql Project
Mustafa Jarrar
 

Más de Mustafa Jarrar (20)

Clustering Arabic Tweets for Sentiment Analysis
Clustering Arabic Tweets for Sentiment AnalysisClustering Arabic Tweets for Sentiment Analysis
Clustering Arabic Tweets for Sentiment Analysis
 
Classifying Processes and Basic Formal Ontology
Classifying Processes  and Basic Formal OntologyClassifying Processes  and Basic Formal Ontology
Classifying Processes and Basic Formal Ontology
 
Discrete Mathematics Course Outline
Discrete Mathematics Course OutlineDiscrete Mathematics Course Outline
Discrete Mathematics Course Outline
 
Business Process Implementation
Business Process ImplementationBusiness Process Implementation
Business Process Implementation
 
Business Process Design and Re-engineering
Business Process Design and Re-engineeringBusiness Process Design and Re-engineering
Business Process Design and Re-engineering
 
BPMN 2.0 Analytical Constructs
BPMN 2.0 Analytical ConstructsBPMN 2.0 Analytical Constructs
BPMN 2.0 Analytical Constructs
 
BPMN 2.0 Descriptive Constructs
BPMN 2.0 Descriptive Constructs  BPMN 2.0 Descriptive Constructs
BPMN 2.0 Descriptive Constructs
 
Introduction to Business Process Management
Introduction to Business Process ManagementIntroduction to Business Process Management
Introduction to Business Process Management
 
Customer Complaint Ontology
Customer Complaint Ontology Customer Complaint Ontology
Customer Complaint Ontology
 
Subset, Equality, and Exclusion Rules
Subset, Equality, and Exclusion RulesSubset, Equality, and Exclusion Rules
Subset, Equality, and Exclusion Rules
 
Schema Modularization in ORM
Schema Modularization in ORMSchema Modularization in ORM
Schema Modularization in ORM
 
On Computer Science Trends and Priorities in Palestine
On Computer Science Trends and Priorities in PalestineOn Computer Science Trends and Priorities in Palestine
On Computer Science Trends and Priorities in Palestine
 
Lessons from Class Recording & Publishing of Eight Online Courses
Lessons from Class Recording & Publishing of Eight Online CoursesLessons from Class Recording & Publishing of Eight Online Courses
Lessons from Class Recording & Publishing of Eight Online Courses
 
Presentation curras paper-emnlp2014-final
Presentation curras paper-emnlp2014-finalPresentation curras paper-emnlp2014-final
Presentation curras paper-emnlp2014-final
 
Jarrar: Future Internet in Horizon 2020 Calls
Jarrar: Future Internet in Horizon 2020 CallsJarrar: Future Internet in Horizon 2020 Calls
Jarrar: Future Internet in Horizon 2020 Calls
 
Habash: Arabic Natural Language Processing
Habash: Arabic Natural Language ProcessingHabash: Arabic Natural Language Processing
Habash: Arabic Natural Language Processing
 
Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing
 
Riestra: How to Design and engineer Competitive Horizon 2020 Proposals
Riestra: How to Design and engineer Competitive Horizon 2020 ProposalsRiestra: How to Design and engineer Competitive Horizon 2020 Proposals
Riestra: How to Design and engineer Competitive Horizon 2020 Proposals
 
Bouquet: SIERA Workshop on The Pillars of Horizon2020
Bouquet: SIERA Workshop on The Pillars of Horizon2020Bouquet: SIERA Workshop on The Pillars of Horizon2020
Bouquet: SIERA Workshop on The Pillars of Horizon2020
 
Jarrar: Sparql Project
Jarrar: Sparql ProjectJarrar: Sparql Project
Jarrar: Sparql Project
 

Último

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Último (20)

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 

Pal gov.tutorial2.session5 1.rdf_jarrar

  • 1. ‫أكاديمية الحكومة اإللكترونية الفلسطينية‬ The Palestinian eGovernment Academy www.egovacademy.ps Tutorial II: Data Integration and Open Information Systems Session 5.1 RDF Resource Description Framework Prof. Mustafa Jarrar Sina Institute, University of Birzeit mjarrar@birzeit.edu www.jarrar.info Reviewed by Prof. Marco Ronchetti, Trento University, Italy PalGov © 2011 1
  • 2. About This tutorial is part of the PalGov project, funded by the TEMPUS IV program of the Commission of the European Communities, grant agreement 511159-TEMPUS-1- 2010-1-PS-TEMPUS-JPHES. The project website: www.egovacademy.ps Project Consortium: Birzeit University, Palestine University of Trento, Italy (Coordinator ) Palestine Polytechnic University, Palestine Vrije Universiteit Brussel, Belgium Palestine Technical University, Palestine Université de Savoie, France Ministry of Telecom and IT, Palestine University of Namur, Belgium Ministry of Interior, Palestine TrueTrust, UK Ministry of Local Government, Palestine Coordinator: Dr. Mustafa Jarrar Birzeit University, P.O.Box 14- Birzeit, Palestine Telfax:+972 2 2982935 mjarrar@birzeit.eduPalGov © 2011 2
  • 3. © Copyright Notes Everyone is encouraged to use this material, or part of it, but should properly cite the project (logo and website), and the author of that part. No part of this tutorial may be reproduced or modified in any form or by any means, without prior written permission from the project, who have the full copyrights on the material. Attribution-NonCommercial-ShareAlike CC-BY-NC-SA This license lets others remix, tweak, and build upon your work non- commercially, as long as they credit you and license their new creations under the identical terms. PalGov © 2011 3
  • 4. Tutorial Map Topic h Intended Learning Objectives Session 1: XML Basics and Namespaces 3 A: Knowledge and Understanding Session 2: XML DTD’s 3 2a1: Describe tree and graph data models. Session 3: XML Schemas 3 2a2: Understand the notation of XML, RDF, RDFS, and OWL. Session 4: Lab-XML Schemas 3 2a3: Demonstrate knowledge about querying techniques for data models as SPARQL and XPath. Session 5: RDF and RDFs 3 2a4: Explain the concepts of identity management and Linked data. Session 6: Lab-RDF and RDFs 3 2a5: Demonstrate knowledge about Integration &fusion of Session 7: OWL (Ontology Web Language) 3 heterogeneous data. Session 8: Lab-OWL 3 B: Intellectual Skills Session 9: Lab-RDF Stores -Challenges and Solutions 3 2b1: Represent data using tree and graph data models (XML & Session 10: Lab-SPARQL 3 RDF). Session 11: Lab-Oracle Semantic Technology 3 2b2: Describe data semantics using RDFS and OWL. Session 12_1: The problem of Data Integration 1.5 2b3: Manage and query data represented in RDF, XML, OWL. Session 12_2: Architectural Solutions for the Integration Issues 1.5 2b4: Integrate and fuse heterogeneous data. Session 13_1: Data Schema Integration 1 C: Professional and Practical Skills Session 13_2: GAV and LAV Integration 1 2c1: Using Oracle Semantic Technology and/or Virtuoso to store Session 13_3: Data Integration and Fusion using RDF 1 and query RDF stores. Session 14: Lab-Data Integration and Fusion using RDF 3 D: General and Transferable Skills 2d1: Working with team. Session 15_1: Data Web and Linked Data 1.5 2d2: Presenting and defending ideas. Session 15_2: RDFa 1.5 2d3: Use of creativity and innovation in problem solving. 2d4: Develop communication skills and logical reasoning abilities. Session 16: Lab-RDFa 3 PalGov © 2011 4
  • 5. Reading RDF Primer (http://www.w3.org/TR/rdf-syntax-grammar/ ) Please have a look only to: Chapter 2 Making Statements About Resources Chapter 3 An XML Syntax for RDF: RDF/XML Chapter 3 Defining RDF Vocabularies: RDF Schema PalGov © 2011 5
  • 6. What is XML • Provides a common syntax for marking up documents. • Easy to exchange between computers (web) • Data model: an XML Document is an ordered labeled tree (/collection of trees). • W3C standard since 1997. bookinfo <bookInfo> <title>Orientalism</title> <author> title author <persName> <title>Prof.</title> <foreName>Edward</foreName> <surName>Said</surName> persNam <roleName>University Professor e <placeName>Columbia University </placeName> </roleName> title foreName surName roleName </persName> </author> </bookInfo> placeName PalGov © 2011 6
  • 7. XML Example <address> <name>Universsity of Birzeit</name> <street>Almarj 435</street> <town>Birzeit</town> </address> PalGov © 2011 7
  • 8. Address Example: XML to XML XML Markup 1: <address> <name>University of Birzeit</name> <street>Almarj 435</street> <town>Birzeit</town> </address> XML stylesheets are XML Markup 2: also usable to transform <address> XML representations <name>University of Birzeit</name> <place> <street>Almarj 435</street> <town>Birzeit</town> </place> </address> PalGov © 2011 8
  • 9. Why XML is Not Enough • It provides syntax, but not semantics, which is important when exchanging/representing data over the Web. <aaaa> <bbbb>Universsity of Birzeit</aaaa> <cccc>Almarj 435</cccc> <dddd>Birzeit</dddd> </aaaa> • Not primitive. Same data can be represented in many ways, which is a problem when exchanging/representing data over the Web. <address> <address name=“University of Birzeit”> <name>University of Birzeit</name> <street>Almarj 435</street> <street>Almarj 435</street> <town>Birzeit</town> <town>Birzeit</town> </address> </address> PalGov © 2011 9
  • 10. What is RDF? • RDF stands for Resource Description Framework. • It is used for describing resources on the web. • Makes use of URIs to identify web resources and is written in XML. • It is not a language but a framework • You see it as a way of writing XML  making it meaningful and more primitive. • You may see it independent, RDF data might never occur in XML form • W3C standard since 1999 PalGov © 2011 10
  • 11. Designed to be read by Computers • RDF was designed to provide a common way to describe information so it can be read (and understood) by computer applications. • RDF descriptions are not designed to be displayed on the web. PalGov © 2011 11
  • 12. Makes use of URIs • RDF uses a URI (Uniform Resource Identifier) to identify a web resource, and properties to describe the resource • Unlike URLs, URIs are not limited to identifying things that have a network location. • A URI reference (URIref) is a URI, together with an optional fragment identifier at the end. http://www.example.org/index.html#section2 PalGov © 2011 12
  • 13. Example :Author http://www.amazon.com/Orientalism-Edward-W-Said/dp/039474067Xc Edward Said 11$ Orientalism <?xml version="1.0"?> <rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# xmlns:a="http://www.example.com" xmlns:w="http://en.wikipedia.org/wiki/"> <rdf:Description rdf:about="http://www.amazon.com/Orientalism-Edward-W-Said/dp/039474067X"> <a:Title>Orientalism</a:Title> <a:Price>11$</a:Price> <a:Author>Edward_Said</a:Author> </rdf:Description> </rdf:RDF> PalGov © 2011 13
  • 14. Example a:Author http://en.wikipedia.org/wiki/Edward_Said http://www.amazon.com/Orientalism-Edward-W-Said/dp/039474067Xc a:BirthCity 25/9/2003 11$ Orientalism Edward Saïd 1/11/1935 <?xml version="1.0"?> <rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# Jerusalem xmlns:a="http://www.example.com/" xmlns:w="http://en.wikipedia.org/wiki/"> <rdf:Description rdf:about="http://www.amazon.com/Orientalism-Edward-W-Said/dp/039474067X"> <a:Title>Orientalism</a:Title> <a:Price>11$</a:Price> <a:Author> <rdf:Description rdf:about="w:Edward_Said"> <a:BirthCity>Jerusalem</a:BirthCity> <a:BornAt>1/11/1935</a:BornAt> <a:DiedA>25/9/2003</a:DiedA> </rdf:Description> </a:Author> </rdf:Description> </rdf:RDF> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> PalGov © 2011 14
  • 15. Example :Author http://en.wikipedia.org/wiki/Edward_Said http://www.amazon.com/Orientalism-Edward-W-Said/dp/039474067Xc :BirthCity 25/9/2003 <?xml version="1.0"?> Orientalism <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 11$ Edward Saïd xmlns:dc="http://purl.org/dc/elements/1.1/" 1/11/1935 xmlns:a="http://www.example.com#" xmlns:w="http://en.wikipedia.org/wiki/"> http://en.wikipedia.org/wiki/Jerusalem <rdf:Description rdf:about="http://www.amazon.com/Orientalism-Edward-W-Said/dp/039474067X"> <a:Title>Orientalism</a:Title> <a:Price>11$</a:Price> <a:Author> <rdf:Description rdf:about="w:Edward_Said"> <a:BornAt>1/11/1935</a:BornAt> <a:DiedA>25/9/2003</a:DiedA> <a:BirthCity> 760800 Palestine <rdf:Description rdf:about="http://en.wikipedia.org/wiki/Jerusalem"> <a:Population>760800</a:Population> <a:CapitalOf>Palestine</a:CapitalOf> </rdf:Description> </a:BirthCity> </rdf:Description> </a:Author> </rdf:Description> </rdf:RDF> PalGov © 2011 15
  • 16. Another Example PalGov © 2011 16
  • 17. Directed Graph Representation PalGov © 2011 17
  • 18. Simple Example <?xml version="1.0"?> <RDF> <Description about="http://www.w3schools.com/default.asp"> <author>Jan Egil Refsnes</author> <created>November 1, 1999</created> <modified>February 1, 2004</modified> </Description> </RDF> PalGov © 2011 18
  • 19. Example Explained • In the example: – the URI "http://www.w3schools.com/-default.asp" is used to identify a web page, – the property "author" describes the author of the page, – the property value is "Jan Egil Refsnes". – The property "created" tells when the page was created, and the property "modified" when it was last modified. PalGov © 2011 19
  • 20. Subject, Predicate & Object • RDF terminology also use the words subject, predicate and object. • The resource http://www.w3schools.com/default.asp is the subject • The property "author" is the predicate • The value "Jan Egil Refsnes" is the object PalGov © 2011 20
  • 21. RDF Important Concepts • Data is represented in RDF as a directed labeled graph. • An RDF graph is a set of triples, of the form <Subject, Predicate, Object> Each Subject and each Predicate must be a URI; that is, it has to be a unique identifier, not a literal. An Object can be either a URI or a literal. PalGov © 2011 21
  • 22. Example 2 <rdf:RDF> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax ns#" xmlns:cd="http://www.recshop.fake/cd"> <rdf:Description rdf:about="http://www.recshop.fake/cd/Empire Burlesque"> <cd:artist>Bob Dylan</cd:artist> <cd:country>USA</cd:country> <cd:company>Columbia</cd:company> <cd:price>10.90</cd:price> <cd:year>1985</cd:year> </rdf:Description> ............ PalGov © 2011 22
  • 23. Example 2 (cont) <rdf:Description rdf:about="http://www.recshop.fake/cd/Hide your heart"> <cd:artist>Bonnie Tyler</cd:artist> <cd:country>UK</cd:country> <cd:company>CBS Records</cd:company> <cd:price>9.90</cd:price> <cd:year>1988</cd:year> </rdf:Description> </rdf:RDF> PalGov © 2011 23
  • 24. List of Triples (Table Representation) Subject Predicate Object http://www.recshop.fake/cd/Empire "Bob http://www.recshop.fake/cdartist Burlesque Dylan" http://www.recshop.fake/cd/Empire http://www.recshop.fake/cdcount "USA" Burlesque ry http://www.recshop.fake/cd/Empire http://www.recshop.fake/cdcomp "Columbia" Burlesque any http://www.recshop.fake/cd/Empire http://www.recshop.fake/cdprice "10.90" Burlesque http://www.recshop.fake/cd/Empire http://www.recshop.fake/cdyear "1985" Burlesque PalGov © 2011 24
  • 25. Details of the Example • The first line in the XML file is the XML declaration, telling the version of XML. • The rdf:RDF element indicates that the content is RDF. • The xmlns:rdf namespace, specifies that tags with the rdf: prefix are from the namespace defined by "http://www.w3.org/1999/02/22-rdf-syntax-ns#". • The xmlns:cd namespace, specifies that tags with the cd: prefix are from the namespace defined by "http://www.recshop.fake/cd". • The rdf:Description element contains the description of a resource identified by the rdf:about attribute. • The cd:artist element describes a property of the resource, and so does cd:country, etc. PalGov © 2011 25
  • 26. Main RDF Properties and Attributes Main RDF Properties • rdf:subject The subject of the resource in an RDF Statement • rdf:predicate The predicate of the resource in an RDF Statement • rdf:object The object of the resource in an RDF Statement • rdf:type The resource is an instance of a class Main RDF Attributes • rdf:RDF The root of an RDF document • rdf:about Defines the resource being described • rdf:Description Container for the description of a resource • rdf:resource Defines a resource to identify a property • rdf:datatype Defines the data type of an element PalGov © 2011 26
  • 27. RDF Validator • Check the correctness of an RDF document: http://www.w3.org/RDF/Validator/ • Result shows the subject, predicate and object of each element of the document and a graph of the model. PalGov © 2011 27
  • 28. XML into RDF (Eaxmple) <Article ID=B2 Year=“2005”> <Article ID=B3 Year=“2007”> XML <XML> ID=B1 Year=“2000”> <Article <Author href=“#A1”/> <Author ID=A3> <Author ID=A1> <Author ID=A2> <email>ps@uoc</email> <Name>Tom</Name> <Name>Bob</Name> <Affiliation href=“#UoC”/> <Affiliation ID=UoM> <Affiliation ID=UoC> <Author> <Name>University of Malta</Name> <Name>University of Cyprus</Name> </Article> <Country ID=mt> <Country ID=cy> <Article ID=B4 Year=“2008”> <Name> Malta</Name> <Name> Cyprus</Name> <Publisher ID=ACM/> <Capital>Valletta</Capital> <Capital>Nicosia</Capital> </Article> </Country> </Country> </XML> </Affiliation> </Affiliation> <Author> <Author> </Article> </Article> 2000 Employs “University of Malta” “Malta” Author Affiliation County B1 A1 UoM mt “Tom” “Valletta” Root “Bob” “Cyprus” RDF Article B2 Affiliation County A2 UoC cy Employs 2005 “Nicosia” B4 B3 A3 “University of Cyprus” 2008 ACM 2007 p3@uoc PalGov © 2011 28
  • 29. Database into RDF (Example) RDF S P O :B1 rdf:Type :Article :B1 :Title “Data Web” Article :B1 :Year 2007 ID Tile Year :B2 rdf:Type :Article B1 Data Web 2007 :B2 :Title “Semantic Web” Author B2 Semantic Web 2005 :B2 :Year 2005 Article Person :B1 :Author :A1 Person :B1 :Author :A2 B1 A1 ID Name Affiliation :B2 :Author :A1 B1 A2 A1 Tom Lara UoM :A1 rdf:Type :Person B2 A2 :A1 :Name “Tom Lara” A2 Bob Hacker UoC :A1 :Affiliation :UoM Country Affiliation :A2 :Type :Person ID Country :A2 :Name “Bob Hacker” ID Name :A2 :Affiliation :UoC UoM mt mt Malta :UoM :Type :University UoC cy :UoM :Country :mt cy Cyprus :mt :Type :Country :mt :Name “Malta” :UoC :Type :University :UoC :Country :cy :cy :Type :Country :cy :Name “Cyprus” PalGov © 2011 29