RDF 的主要元素是
元素
...Description goes here...
元素
xmlns:cd="http://www.recshop.fake/cd#">
artist、country、company、price 以及 year 这些元素被定义在命名空间 http://www.recshop.fake/cd# 中。此命名空间在 RDF 之外(并非 RDF 的组成部分)。RDF 仅仅定义了这个框架。而 artist、country、company、price 以及 year 这些元素必须被其他人(公司、组织或个人等)进行定义。
属性(property)来定义属性(attribute)
属性元素(property elements)也可作为属性(attributes)来被定义(取代元素):
xmlns:cd="http://www.recshop.fake/cd#">
cd:artist="Bob Dylan" cd:country="USA"
cd:company="Columbia" cd:price="10.90"
cd:year="1985" />
属性(property)来定义属性(attribute)
属性元素(property elements)也可作为属性(attributes)来被定义(取代元素):
xmlns:cd="http://www.recshop.fake/cd#">
...
...
上面的例子中,属性 artist 没有值,但是却引用了一个对包含有关艺术家的信息的资源。

