This site is a playground for testing Semantic MediaWiki. All content entered or uploaded here may be deleted at any time, and nothing here should be assumed to be true.
Some content was copied from semanticweb.org – please visit this site for more reliable information and author attribution.

RDF

From SMW-Sandbox

Jump to: navigation, search

Resource Description Framework or RDF is a family of specifications for a metadata model that is often implemented as an application of XML. The RDF family of specifications is maintained by the World Wide Web Consortium (W3C).

[edit] Basic ideas

The idea behind RDF is to mark up elements written in XML with additional metainformation. It is build upon ideas from the AI science. Therefore the standard defines three fundamental concepts:

  • Resources
  • Properties
  • Statements

To show an example we take the statement "an apple is a fruit". We can break it into the following parts.

Construct RDF-Type Part of the sentence
Resource rdf:subject an apple
Property rdf:predicate is a
Resource rdf:object fruit

Notice, the "an" in "an apple", which unlike "the", "this", "that", etc., defines not a specific object (instance), but a special kind of objects (class).

In a graphical representation this might look like this:

UNIQ369ae6f44c66c3bc-pre-00000000-QINU

In code it looks like:

UNIQ369ae6f44c66c3bc-pre-00000001-QINU

(Note that there are less verbose ways of expressing this triple in RDF/XML and resources are URIs.)

The SMW equivalent of this is the code

UNIQ369ae6f44c66c3bc-pre-00000002-QINU

within the article Apple.

[edit] See also

Personal tools