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

RDF reference manual


May 23, 2021 RDF


Table of contents


RDF reference manual

This section provides a reference manual for RDF learning, including RDF namespaces, RDF extensions, and MIME types.

RDF namespace

RDF Namespace (xmlns:rdf): http://www.w3.org/1999/02/22-rdf-syntax-ns

RDF Namespace (xmlns:rdfs): http://www.w3.org/2000/01/rdf-schema


RDF extension and MIME type

The recommended extension of the RDF file is .rdf, however, the extension . XML is often used to compatible with older XML parsers.

MIME type: "application/rdf-xml".


RDFS / RDF class

Elements Class Sub-class
rdfs:Class All classes
rdfs:Datatype Data types Class
rdfs:Resource All resources Class
rdfs:Container Containers Resource
rdfs:Literal Literal values (text and numbers) Resource
rdf:List Lists Resource
rdf:Property Properties Resource
rdf:Statement Statements Resource
rdf:Alt Containers of alternatives Container
rdf:Bag Unordered containers Container
rdf:Seq Ordered containers Container
rdfs:ContainerMembershipProperty Container membership properties Property
rdf:XMLLiteral XML literal values Literal


RDFS / RDF properties

Elements Field Range Describe
rdfs:domain Property Class The resource domain
rdfs:range Property Class The scope of the resource
rdfs:subPropertyOf Property Property The property is a child of a property
rdfs:subClassOf Class Class A resource is a sub-class of a class
rdfs:comment Resource Literal A description of human-readable resources
rdfs:label Resource Literal Human-readable resource tags (names)
rdfs:isDefinedBy Resource Resource The definition of a resource
rdfs:seeAlso Resource Resource Additional information about the resource
rdfs:member Resource Resource The member of the resource
rdf:first List Resource
rdf:rest List List
rdf:subject Statement Resource The resource body of an RDF statement
rdf:predicate Statement Resource The predicate of the resource stated in an RDF
rdf:object Statement Resource A resource object of an RDF statement
rdf:value Resource Resource Value property
rdf:type Resource Class A resource is an instance of a class

RDF property

Elements Field Range Describe
rdf:about Define the resources described
rdf:Description The container described by the resource
rdf:resource Define a resource to determine a property
rdf:datatype Define the data type of an element
rdf:ID Defines the ID of the element
rdf:li Define the list
rdf:_ n Define a node
rdf:nodeID Defines the ID of the element node
rdf:parseType Defines how elements should be resolved
rdf:RDF The root of an RDF document
xml:base The XML foundation is defined
xml:lang The language that defines the contents of the element
rdf:aboutEach (Delete)
rdf:aboutEachPrefix (Delete)
rdf:bagID (Delete)

Described as "deleted" are elements that were recently removed from the RDF standard.