An Introduction to Embedded RDF

Ian Davis, <ian.davis@talis.com>

Platform Programme Manager

Talis Information Ltd.

What is it?

Some History

Principles

Visible Metadata

Don't repeat yourself

Reuse not reinvention

How?

Profile

Multiple Profiles

Schema Declarations

Schema Declarations Abbreviate Properties

Schema Declarations Compatibility

Metadata in Head

Metadata in Head - Literal Values

Metadata in Head - Resource Values

Metadata in Head - Multiple Rel

Metadata in Head - Rev

Metadata in Body

Metadata in Body - Literal Values

Metadata in Body - Simple Example

Metadata in Body - Title Example

Metadata in Body - Resources

Inferred Labels from Anchors

Metadata About Other Things

Combinations

Worked Example

<html>
  <head profile="http://purl.org/NET/erdf/profile">
    <base href="http://example.org/about" />
    <title>Anna's Homepage</title>
    <link rel="schema.foaf" href="http://xmlns.com/foaf/0.1/" />
    <link rel="foaf-maker" rev="foaf-homepage foaf-made" href="#anna" />
  </head>
  <body>
    <h2>About me...</h2>
    <p id="anna">
      I'm <span class="foaf-name"><span class="foaf-firstName">Anna</span>
      <span class="foaf-surname">Wilder</span></span>. 
      You might know me from IRC as <span class="foaf-nick">wildling</span>!
    </p>
  </body>
</html>

Worked Example

<html>
  <head profile="http://purl.org/NET/erdf/profile">
    <base href="http://example.org/about" />
    <title>Anna's Homepage</title>
    <link rel="schema.foaf" href="http://xmlns.com/foaf/0.1/" />
    <link rel="foaf-maker" rev="foaf-homepage foaf-made" href="#anna" />
  </head>
  <body>
    <h2>About me...</h2>
    <p id="anna">
      I'm <span class="foaf-name"><span class="foaf-firstName">Anna</span>
      <span class="foaf-surname">Wilder</span></span>. 
      You might know me from IRC as <span class="foaf-nick">wildling</span>!
    </p>
  </body>
</html>
<http://example.org/about> foaf:maker <http://example.org/about#anna> .

Worked Example

<html>
  <head profile="http://purl.org/NET/erdf/profile">
    <base href="http://example.org/about" />
    <title>Anna's Homepage</title>
    <link rel="schema.foaf" href="http://xmlns.com/foaf/0.1/" />
    <link rel="foaf-maker" rev="foaf-homepage foaf-made" href="#anna" />
  </head>
  <body>
    <h2>About me...</h2>
    <p id="anna">
      I'm <span class="foaf-name"><span class="foaf-firstName">Anna</span>
      <span class="foaf-surname">Wilder</span></span>. 
      You might know me from IRC as <span class="foaf-nick">wildling</span>!
    </p>
  </body>
</html>
<http://example.org/about#anna> foaf:homepage <http://example.org/about> .

Worked Example

<html>
  <head profile="http://purl.org/NET/erdf/profile">
    <base href="http://example.org/about" />
    <title>Anna's Homepage</title>
    <link rel="schema.foaf" href="http://xmlns.com/foaf/0.1/" />
    <link rel="foaf-maker" rev="foaf-homepage foaf-made" href="#anna" />
  </head>
  <body>
    <h2>About me...</h2>
    <p id="anna">
      I'm <span class="foaf-name"><span class="foaf-firstName">Anna</span>
      <span class="foaf-surname">Wilder</span></span>. 
      You might know me from IRC as <span class="foaf-nick">wildling</span>!
    </p>
  </body>
</html>
<http://example.org/about#anna> foaf:made <http://example.org/about> .

Worked Example

<html>
  <head profile="http://purl.org/NET/erdf/profile">
    <base href="http://example.org/about" />
    <title>Anna's Homepage</title>
    <link rel="schema.foaf" href="http://xmlns.com/foaf/0.1/" />
    <link rel="foaf-maker" rev="foaf-homepage foaf-made" href="#anna" />
  </head>
  <body>
    <h2>About me...</h2>
    <p id="anna">
      I'm <span class="foaf-name"><span class="foaf-firstName">Anna</span>
      <span class="foaf-surname">Wilder</span></span>. 
      You might know me from IRC as <span class="foaf-nick">wildling</span>!
    </p>
  </body>
</html>
<http://example.org/about#anna> foaf:firstName "Anna" .

Worked Example

<html>
  <head profile="http://purl.org/NET/erdf/profile">
    <base href="http://example.org/about" />
    <title>Anna's Homepage</title>
    <link rel="schema.foaf" href="http://xmlns.com/foaf/0.1/" />
    <link rel="foaf-maker" rev="foaf-homepage foaf-made" href="#anna" />
  </head>
  <body>
    <h2>About me...</h2>
    <p id="anna">
      I'm <span class="foaf-name"><span class="foaf-firstName">Anna</span>
      <span class="foaf-surname">Wilder</span></span>. 
      You might know me from IRC as <span class="foaf-nick">wildling</span>!
    </p>
  </body>
</html>
<http://example.org/about#anna> foaf:surname "Wilder" .

Worked Example

<html>
  <head profile="http://purl.org/NET/erdf/profile">
    <base href="http://example.org/about" />
    <title>Anna's Homepage</title>
    <link rel="schema.foaf" href="http://xmlns.com/foaf/0.1/" />
    <link rel="foaf-maker" rev="foaf-homepage foaf-made" href="#anna" />
  </head>
  <body>
    <h2>About me...</h2>
    <p id="anna">
      I'm <span class="foaf-name"><span class="foaf-firstName">Anna</span>
      <span class="foaf-surname">Wilder</span></span>. 
      You might know me from IRC as <span class="foaf-nick">wildling</span>!
    </p>
  </body>
</html>
<http://example.org/about#anna> foaf:name "Anna Wilder" .

Other Examples

Extraction

Limitations

What About Microformats?

What About RDFa?

Next Steps

The End!