Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

RDF Reference Manual

RDF Reference Manual


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 for RDF files is **.rdf**, however, the extension **.XML** is often used for compatibility with old XML parsers.

MIME Type:"application/rdf+xml".


RDFS / RDF Classes

Element class Subclass
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

Element Domain Range Description
rdfs:domain Property Class Resource Domain
rdfs:range Property Class Resource Range
rdfs:subPropertyOf Property Property This property is a subproperty of a property
       
rdfs:subClassOf Class Class A resource is a subclass of a class
rdfs:comment Resource Literal Human-readable resource description
rdfs:label Resource Literal Human-readable resource label (name)
rdfs:isDefinedBy Resource Resource Resource definition
rdfs:seeAlso Resource Resource Other information about a resource
rdfs:member Resource Resource Members of a resource
       
rdf:first List Resource  
rdf:rest List List  
rdf:subject Statement Resource The subject of an RDF statement
rdf:predicate Statement Resource The predicate of a resource in an RDF statement
rdf:object Statement Resource The object of an RDF statement
rdf:value Resource Resource value attribute
rdf:type Resource Class A resource is an instance of a class

RDF Properties

Element Domain Range Description
       
rdf:about     Defines the described resource
rdf:Description     Container of resource descriptions
rdf:resource     Defines a resource to identify a property
rdf:datatype     Defines the data type of an element
rdf:ID     Defines the ID of an element
rdf:li     Defines a list
rdf:_n     Defines a node
rdf:nodeID     Defines the ID of an element node
rdf:parseType     Defines how an element should be parsed
rdf:RDF     The root of an RDF document
xml:base     Defines the XML base
xml:lang     Defines the language of element content
       
rdf:aboutEach     (Removed)
rdf:aboutEachPrefix     (Removed)
rdf:bagID     (Removed)

Those described as "Removed" are elements recently deleted from the RDF standard.