RDF: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
 
 
(32 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== RDF ==
{{Stub}}
== Definition ==
 
* The Resource Description Framework (RDF) is a language for representing information about resources in the World Wide Web.
 
* Originally RDF was primarily intended to represent metadata about Web resources, such as the title, author, and modification date of a Web page, copyright and licensing information about a Web document, or the availability schedule for some shared resource. However, by generalizing the concept of a "Web resource", RDF can also be used to '''represent information about things that can be identified on the Web''', i.e. the [[semantic web]].
 
== Major RDF vocabularies ==
 
; Metadata
 
* [[Learning Object Metadata Standard]]
* [[Dublin Core]]
 
; Content syndication and social software
 
* [[RSS]] 1.0 which is not very popular, most RSS formats are ''not'' RDF since bloggers don't understand issues related to the semantic web :)
* [[FOAF]] Friends-of-a-friend vocabulary for person networks
 
; Semantic Web
* [[OWL]]
* [[SKOS]] (Simple Knowledge Organisation System)
* [[SPARQL]] (Query language)
 
== RDF basics ==
 
At its core, RDF has a simple relational data model: Subject - Verb - Object ''or expressed differently'' Predicate (Subject, Object)
* Subject = The resource
* Object = Value
* Verb = Predicate = propriety = relation of the subjet with the object
 
Here is a typical RDF fragment
 
<?xml version="1.0"?>
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
          xmlns:mon_schema="http://tecfa.unige.ch/lib/mon_schema" >
  <rdf:Description rdf:about="http://tecfa.unige.ch/perso/staf/lattion/">
  <mon_schema:Creator>Stéphane Lattion</mon_schema:Creator>
  </rdf:Description>
</rdf:RDF>
 
It expresses a relation like this:
[[image:rdf-simple-relation.png|frame|none|A simple ressource-author relationship]]
 
== RDF and the semantic web ==
 
=== The RDF Software stack ===
 
[[image:rdf-software-stack.png|frame|none|The RDF software stack]]
 
=== The RDF bus ===
 
[[image:rdf-bus-clients.png|frame|none|Software clients of the RDF bus]]
 
== Turtle syntax ==
 
Since XML/RDF code is some verbose, writing it manually is fairly time consuming. The W3C team proposes a "textual syntax for RDF called Turtle that allows RDF graphs to be completely written in a compact and natural text form, with abbreviations for common usage patterns and datatypes" ([http://www.w3.org/TeamSubmission/turtle/ Turtle - Terse RDF Triple Language], retrieved 15:31, 10 March 2008 (MET)).
 
Example:
<pre>
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:ex="http://example.org/stuff/1.0/">
  <rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"
  dc:title="RDF/XML Syntax Specification (Revised)">
    <ex:editor>
      <rdf:Description ex:fullName="Dave Beckett">
<ex:homePage rdf:resource="http://purl.org/net/dajobe/" />
      </rdf:Description>
    </ex:editor>
  </rdf:Description>
</rdf:RDF>
</pre>
becomes in turtle syntax:
<pre>
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix ex: <http://example.org/stuff/1.0/> .
 
<http://www.w3.org/TR/rdf-syntax-grammar>
  dc:title "RDF/XML Syntax Specification (Revised)" ;
  ex:editor [
    ex:fullname "Dave Beckett";
    ex:homePage <http://purl.org/net/dajobe/>
  ] .
</pre>


== Links ==
== Links ==
Line 5: Line 91:
=== Standards ===
=== Standards ===


* [http://www.w3.org/TR/rdf-primer/ RDF Primer]
* [http://www.w3.org/RDF/Overview.html Resource Description Framework (RDF) Overview]
* [http://www.w3.org/RDF/Overview.html Resource Description Framework (RDF) Overview]
* The [http://www.w3.org/TR/WD-rdf-syntax/ Resource Description Framework (RDF) Model and Syntax].
* [http://www.w3.org/TR/rdf-concepts/ Resource Description Framework (RDF): Concepts and Abstract Syntax], W3C Recommendation 10 February 2004
* [http://www.w3.org/TR/rdf-sparql-query/ SPARQL Query Language for RDF] (last checkedwas: W3C Working Draft 17 February 2005)
* [http://www.w3.org/TR/WD-rdf-syntax/ Resource Description Framework (RDF) Model and Syntax].
* [http://www.w3.org/TR/rdf-mt/ RDF Semantics], W3C Recommendation 10 February 2004 (rather difficult reading).
* [http://www.w3.org/TR/rdf-syntax-grammar/ RDF/XML Syntax Specification], W3C Recommendation 10 February 2004.
* [http://www.w3.org/TR/rdf-schema/ RDF Vocabulary Description Language 1.0: RDF Schema], W3C Recommendation 10 February 2004
* [http://www.w3.org/TeamSubmission/turtle/ Turtle - Terse RDF Triple Language]
 
; RDF Namespaces
* [http://ebiquity.umbc.edu/blogger/100-most-common-rdf-namespaces/ 100 most common RDF namespaces]
 
;RDF and XHTML
* See the [[RDFa]] article
* [http://www.w3.org/TR/xhtml-rdfa-primer/ RDFa Primer 1.0 Embedding RDF in XHTML] (Working Draft in March 2007)
 
; OWL
* [http://www.w3.org/TR/owl-features/  OWL Web Ontology Language Overview], W3C Recommendation 10 February 2004.
* [http://www.w3.org/TR/owl-guide/ OWL Web Ontology Language Guide], W3C Recommendation 10 February 2004
* [http://www.w3.org/TR/owl-absyn/ OWL Web Ontology Language Semantics and Abstract Syntax], W3C Recommendation 10 February 2004
* Dean M., Schreiber G (Editors); van Harmelen F., Hendler J., Horrocks I., McGuinness D.L., Patel-Schneider P.F., Stein L.A. (Authors), ''OWL Web Ontology Language Reference'', W3C Recommendation, 10 February 2004. [http://www.w3.org/TR/owl-ref/ HTML]
 
; Other RDF Applications
* [http://www.w3.org/TR/rdf-sparql-query/ SPARQL Query Language for RDF] (W3C Recommendation, 15 January 2008)
* [http://www.w3.org/PICS/ PICS] (Platform for Internet Content Selection)
* [http://www.w3.org/TR/skos-reference/ SKOS Simple Knowledge Organization System] (W3C WD Jan 2008)


=== Overviews ===
=== Overviews ===


* INDEX: [http://www.schema.net/ www.schema.net] (XML top site)
* [http://www.dlib.org/dlib/may98/miller/05miller.html An Introduction to the Resource Description Framework], Eric Miller, [http://www.dlib.org/dlib/may98/05contents.html D-Lib Magazine]
* [http://www.mozilla.org/rdf/doc/index.html Mozilla's RDF pointers]
* [http://www.mozilla.org/rdf/doc/index.html Mozilla's RDF pointers]
* [http://www.oasis-open.org/cover/rdf.html Oasis Resource Description Framework (RDF)]
* [http://www.oasis-open.org/cover/rdf.html Oasis Resource Description Framework (RDF)]
* [http://www.w3.org/TR/NOTE-rdfarch W3C Data Formats] A older (1997) note on the planned XML-centered framework
* Chris Waterson, [http://developer.mozilla.org/en/docs/RDF_in_Fifty_Words_or_Less RDF in Fifty Words or Less], Mozilla Magazine.


=== Related W3C Stuff and other protocols ===
=== On-line validation ===


* [http://www.w3.org/TR/NOTE-rdfarch W3C Data Formats] A note on the planned XML-centered framework. (including RDF app.)
* [http://www.w3.org/RDF/Validator/ W3C RDF validation service]
* [http://www.w3.org/DOM/ W3C Document Object Model] (DOM)
* [http://www.w3.org/PICS/ PICS] (Platform for Internet Content Selection)
* [http://www.dlib.org/dlib/april97/04lynch.html Z39.50 D-Lib Magazine article] Z39.50 is a standard for information retrieval
* [http://lcweb.loc.gov/z3950/agency/ Z39.50 Maintenance Agency]
* for more: see [http://tecfa.unige.ch/guides/xml/pointers.html XML pointers] and [/guides/dom/pointeurs.html Document Object Model Specification]


=== Software ===
=== RDF-related web sites ===


* [http://www.ics.forth.gr/proj/isst/RDF/ The ICS-FORTH Validating RDF Parser (VRP)] (Java, by Karsten Tolle)
* http://www.semanticplanet.com/
* http://www.semanticplanet.com/2003/05/parsingFOAFWithPHPParsing FOAF with PHP Tutorial and code that explains how to use a RDF library.
* W3C [http://www.w3.org/2001/sw/ Semantic Web] page.
* [http://ontoworld.org/ ontoworld.org]


=== IMS meta-data ===
=== Various to sort out ===


* [http://www.imsproject.org/ IMS Home Page]
* [http://www-4.ibm.com/software/developer/library/ws-rdf/index.html?dwzone=ws  Supercharging WSDL with RDF Managing structured Web service metadata] article by Uche Obbuji
* [http://www.imsproject.org/specs.html Specifications] (long technical document that contains the server/client architecture)
* [http://www.ilrt.bris.ac.uk/discovery/rdf-dev/rudolf/rdfviz/ Rudolf: RDFViz] Exploring tools for RDF Graph Visualisation by Dan Brickely, project page.
* [http://www.imsproject.org/md_overview.html Metadata Specification] (Overview Page)
* [http://www.imsproject.org/metadata/MDintro.html Introduction].


=== Other MetaData ===
== References ==


# [http://www.manta.ieee.org/P1484/ltscdocs/index.html IEEE LTSC Drafs and Comments]
* Eric Miller  An Introductionto the Resource Description Framework (1998), ''[http://www.dlib.org/dlib/may98/05contents.html D-Lib Magazine]'' May 1998, ISSN 1082-9873, [http://www.dlib.org/dlib/may98/miller/05miller.html HTML]
# [http://www.crossref.org/ CrossRef] collaborative reference linking service. Stable on-line citation for a lot of journal articles. Minimal service is pointer to full bibliographic information and possible abstracts instructions on how to retrieve for pay ....


=== IMS (and alike) software ===
* Manola Frank and Eric Miller (2004). [http://www.w3.org/TR/rdf-primer/ RDF Primer], W3C Recommendation 10 February 2004, ''W3C''.


* See also: [http://www.geminfo.org/ GEM] (The Gateway to Educational Materials).


=== Visualization of RDF ===


* [http://www-4.ibm.com/software/developer/library/ws-rdf/index.html?dwzone=ws  Supercharging WSDL with RDF Managing structured Web service metadata] article by Uche Obbuji
[[Category: Standards]]
* [http://www.ilrt.bris.ac.uk/discovery/rdf-dev/rudolf/rdfviz/ Rudolf: RDFViz] Exploring tools for RDF Graph Visualisation by Dan Brickely, project page.
[[Category: XML]][[Category:web standards]]
* [http://news.cnet.com/news/0-1005-200-3670541.html?tag=st.ne.1002.bgif.ni  XML co-creator maps the Web in 3D] by Evan Hansen, C|Net
[[Category: Knowledge representation]]

Latest revision as of 18:03, 15 March 2013

Draft

Definition

  • The Resource Description Framework (RDF) is a language for representing information about resources in the World Wide Web.
  • Originally RDF was primarily intended to represent metadata about Web resources, such as the title, author, and modification date of a Web page, copyright and licensing information about a Web document, or the availability schedule for some shared resource. However, by generalizing the concept of a "Web resource", RDF can also be used to represent information about things that can be identified on the Web, i.e. the semantic web.

Major RDF vocabularies

Metadata
Content syndication and social software
  • RSS 1.0 which is not very popular, most RSS formats are not RDF since bloggers don't understand issues related to the semantic web :)
  • FOAF Friends-of-a-friend vocabulary for person networks
Semantic Web
  • OWL
  • SKOS (Simple Knowledge Organisation System)
  • SPARQL (Query language)

RDF basics

At its core, RDF has a simple relational data model: Subject - Verb - Object or expressed differently Predicate (Subject, Object)

  • Subject = The resource
  • Object = Value
  • Verb = Predicate = propriety = relation of the subjet with the object

Here is a typical RDF fragment

<?xml version="1.0"?>
 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
          xmlns:mon_schema="http://tecfa.unige.ch/lib/mon_schema" >
 <rdf:Description rdf:about="http://tecfa.unige.ch/perso/staf/lattion/">
  <mon_schema:Creator>Stéphane Lattion</mon_schema:Creator>
 </rdf:Description>
</rdf:RDF>

It expresses a relation like this:

A simple ressource-author relationship

RDF and the semantic web

The RDF Software stack

The RDF software stack

The RDF bus

Software clients of the RDF bus

Turtle syntax

Since XML/RDF code is some verbose, writing it manually is fairly time consuming. The W3C team proposes a "textual syntax for RDF called Turtle that allows RDF graphs to be completely written in a compact and natural text form, with abbreviations for common usage patterns and datatypes" (Turtle - Terse RDF Triple Language, retrieved 15:31, 10 March 2008 (MET)).

Example:

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:dc="http://purl.org/dc/elements/1.1/"
         xmlns:ex="http://example.org/stuff/1.0/">
  <rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"
		   dc:title="RDF/XML Syntax Specification (Revised)">
    <ex:editor>
      <rdf:Description ex:fullName="Dave Beckett">
	<ex:homePage rdf:resource="http://purl.org/net/dajobe/" />
      </rdf:Description>
    </ex:editor>
  </rdf:Description>
</rdf:RDF>

becomes in turtle syntax:

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix ex: <http://example.org/stuff/1.0/> .

<http://www.w3.org/TR/rdf-syntax-grammar>
  dc:title "RDF/XML Syntax Specification (Revised)" ;
  ex:editor [
    ex:fullname "Dave Beckett";
    ex:homePage <http://purl.org/net/dajobe/>
  ] .

Links

Standards

RDF Namespaces
RDF and XHTML
OWL
Other RDF Applications

Overviews

On-line validation

RDF-related web sites

Various to sort out

References

  • Eric Miller An Introductionto the Resource Description Framework (1998), D-Lib Magazine May 1998, ISSN 1082-9873, HTML
  • Manola Frank and Eric Miller (2004). RDF Primer, W3C Recommendation 10 February 2004, W3C.