May 23, 2021 RDF
Here are a few lines of a CD list:
title | artist | nation | company | price | years |
---|---|---|---|---|---|
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 of an RDF document:
The first line of this RDF document is the XML declaration. This XML declaration is followed by the root element of the RDF document: slt;rdf:RDF.
The xmlns:rdf namespace, which specifies that the element with the prefix rdf comes from the namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns".
The xmlns:cd namespace, which specifies that the element with the prefix cd comes from the namespace "http://www.recshop.fake/cd".
The element contains a description of the resource identified by the rdf:out property.
Elements: slt;cd:artist> slt;cd:country> slt;cd:company?gt; etc. are attributes of this resource.
W3C's RDF verification service is helpful when you're learning RDF. Here you can experiment with the RDF file.
The RDF online validator parses your RDF documents, examines their syntax, and generates tables and graphical views for your RDF documents.
Paste a copy of the following example into the RDF validator of W3C:
After you parse the example above, the result will be something like this.