Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

RDF rules


May 23, 2021 RDF


Table of contents


RDF rules

This section explains the rules for using RDF markup languages.

RDF uses a web identifier (URIs) to identify resources.

RDF uses properties and property values to describe resources.


RDF resources, properties, and property values

RDF uses web identifiers to identify things and describes resources by properties and property values.

Explanation of resources, properties, and property values:

  • A resource is anything that can have a URI, such as "//www.w3cschool.cn/rdf"
  • Property is a resource with a name, such as "author" or "homepage"
  • A property value is a value of a property, such as "David" http://www.w3cschool.cn "David" (note that one property value can be another resource)

The following RDF documentation describes the resource "//www.w3cschool.cn/rdf":

<?xml version="1.0"?>

<RDF>
<Description about="//www.w3cschool.cn/rdf">
<author>Jan Egil Refsnes</author>
<homepage>http://www.w3cschool.cn</homepage>
</Description>
</RDF>

RDF rules The above is a simplified example. Namespaces are ignored.


RDF statement

A combination of resources, attributes, and property values forms a statement (called the body, predicate, and object of the statement).

Take a look at some specific examples of statements to deepen your understanding:

Statement: "The author of // www.w3cschool.cn/rdf is David."

  • The subject of the statement is the www.w3cschool.cn/rdf
  • The predicate is: author
  • The object is: David

Statement: "The homepage of // www.w3cschool.cn/rdf is http://www.w3cschool.cn".

  • The subject of the statement is the www.w3cschool.cn/rdf
  • The predicate is: homepage
  • The object is: http://www.w3cschool.cn

In the next section, we'll cover an RDF instance.