Easy Tutorial
❮ Rdf 集合 Rdf Intro ❯

RDF Example


RDF Example

Here are a few lines from a CD list:

Title Artist Country Company Price Year
Empire Burlesque Bob Dylan USA Columbia 10.90 1985
Hide your heart Bonnie Tyler UK CBS Records 9.90 1988

Here are a few lines from an RDF document:

The first line of this RDF document is an XML declaration. Following this XML declaration is the root element of the RDF document: <rdf:RDF>.

The xmlns:rdf namespace specifies that elements with the rdf prefix come from the namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#".

The xmlns:cd namespace specifies that elements with the cd prefix come from the namespace "http://www.recshop.fake/cd#".

The <rdf:Description> element contains a description of the resource identified by the rdf:about attribute.

Elements such as <cd:artist>, <cd:country>, <cd:company>, etc., are properties of this resource.


RDF Online Validator

W3C's RDF Validation Service is very helpful when you are learning RDF. Here you can experiment with RDF files.

The RDF online validator parses your RDF document, checks its syntax, and generates tabular and graphical views for your RDF document.

Copy and paste the following example into W3C's RDF Validator:

After parsing the above example, the result will be similar to this.

❮ Rdf 集合 Rdf Intro ❯