Annotating with RDFa

  • 1,500 views
Uploaded on

 

More in: Education , Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,500
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Semantic Web (SemWeb) Annotating with RDFa Adrian Giurca, Semantic Web, Cottbus, June 2009 Adrian Giurca
  • 2. RDF is a language for ...
      • Expressing propositional information (fact statements), such as annotations or metadata, in Web documents
      • Benefits:
        • Semantic search and navigation
        • Publishing and interchanging data in a machine-processible format
      • RDF is the basis of the Semantic Web
      • RDF is NOT RDFa !
    Adrian Giurca, Semantic Web, Cottbus, June 2009
  • 3. RDF has XML syntax and triple syntax <rdf:RDF xmlns:rdf=&quot;...&quot; xmlns:uni=&quot;...&quot; xmlns:foaf=&quot;...&quot; > <rdf:Description rdf:about=&quot;uni:949318&quot;> <foaf:name>Adrian Giurca</foaf:name> <uni:age>27</uni:age> <foaf:address> Walther Pauer Str. 2, 03044, Cottbus, DE </foaf:address> </rdf:Description> ... </rdf:RDF> Adrian Giurca, Semantic Web, Cottbus, June 2009 uni:949318 foaf:name &quot;Adrian Giurca&quot; uni:949318 uni:age 27 uni:949318 foaf:address &quot; Walther Pauer Str. 2, 03044, Cottbus, DE &quot;
  • 4. A Simple Statement in XHTML <p> Adrian Giurca office is at Walther Pauer Str. 2, 03044, Cottbus, DE </p> Adrian Giurca, Semantic Web, Cottbus, June 2009
      • Bad point: A computer application cannot easily obtain information such as:
        • &quot;Adrian Giurca&quot; is the name of a person
        • &quot;Walther Pauer Str. 2, 03044, Cottbus, DE&quot; is an address
  • 5. Using RDFa to Annotate the Statement <p> <span about=&quot;uni:949318&quot; > <span property=&quot;foaf:name&quot; >Adrian Giurca</span> address is at <span property=&quot;foaf:address&quot; > Walther Pauer Str. 2, 03044, Cottbus, DE </span> </span> </p> Adrian Giurca, Semantic Web, Cottbus, June 2009 uni:949318 foaf:name &quot;Adrian Giurca&quot; uni:949318 foaf:address &quot; Walther Pauer Str. 2, 03044, Cottbus, DE &quot;
      • A Semantic Web Reasoner can use these triples to obtain new information
  • 6. Annotating an image <div about=&quot;p:949318&quot; > <img src=&quot;http://.../Me.jpg&quot; /> <span property=&quot;dc:title&quot; >My Picture</span> by <span property=&quot;dc:creator&quot; > Quelle Photo </span>. </div> Adrian Giurca, Semantic Web, Cottbus, June 2009
      • about , property , content are NOT XHTML attributes!
      • They are additional attributes introduced by the
    • XHTML+RDFa 1.0 profile
    <?xml version=&quot;1.0&quot;?> <!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML+RDFa 1.0//EN&quot; &quot;http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd&quot;> <html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot;> ... </html>
  • 7. Encoding a license <a rel=&quot;license&quot; href=&quot;http://creativecommons.org/licenses/by/3.0/&quot;> a Creative Commons License </a> Adrian Giurca, Semantic Web, Cottbus, June 2009
      • The rel attribute has specific values:
        • alternate, appendix, bookmark, cite, chapter, contents, copyright, glossary, help, icon, index, last, license, meta, next, p3pv1, prev, role, section, subsection, start, up
  • 8. What about foaf:address, dc:creator ...?
      • A triple has the form of
    • (subject, property, object)
      • Therefore foaf:name , foaf:address , dc:title , dc:creator are properties
      • They belong to special ontologies defined to annotate Web content
      • FOAF (foaf) is a vocabulary about persons
      • The Dublin Core Metadata Element Set (dc) is a vocabulary of fifteen properties for use in (Web) resource description.
    Adrian Giurca, Semantic Web, Cottbus, June 2009 uni:949318 foaf:name &quot;Adrian Giurca&quot; uni:949318 foaf:address &quot; Walther Pauer Str. 2, 03044, Cottbus, DE &quot; p:949318 dc:title &quot;My Picture&quot; p:94318 dc:creator &quot;Quelle Photo&quot;
  • 9. Learning RDfa
      • Study and understand the XHTML+RDFa 1.0 profile
      • Choose the vocabularies you will use accordingly with your content (FOAF, Dublin Core, DOAP , ...)
      • Start annotating
      • Understand the triples you just created by using such annotations
    Adrian Giurca, Semantic Web, Cottbus, June 2009
  • 10. Do you like RDfa? Start Annotating Adrian Giurca, Semantic Web, Cottbus, June 2009