RDF rules
RDF uses web identifiers (URIs) to identify resources.
RDF uses attributes and attribute values to describe resources.
RDF Resources, Properties, and Property Values
RDF uses web identifiers to identify things and describes resources through properties and property values.
Explanation of resources, attributes and attribute values:
A resource is anything that can have a URI, such as "http://www .php.cn/rdf"
Attribute is a resource with a name, such as "author" or "homepage"
Attribute value is the value of a certain attribute, such as "David" or "http://www.php.cn" (please note that an attribute value can be another resource)
The following RDF document can describe the resource "http://www.php.cn/rdf":
<RDF>
<Description about="http://www.php.cn/rdf">
<author>Jan Egil Refsnes</author>
<homepage>http://www.php.cn</homepage>
</Description>
</RDF>
The above is a simplified example. Namespace is ignored.
RDF Statement
The combination of resources, attributes, and attribute values forms a statement (called the statement's body,Predicate and Object).
Please look at some specific examples of statements to deepen your understanding:
Statement: "The author of http://www.php.cn/rdf is David."
The subject of the statement is: http://www.php.cn/rdf
The predicate is: author
Object is: David
Statement: "The homepage of http://www.php.cn/rdf is http://www.php.cn".
The subject of the statement is: http://www.php.cn/rdf
The predicate is: homepage
The object is: http://www.php.cn