RDF 简介

RDF 命名空间

RDF 命名空间 (xmlns:rdf):

http://www.w3.org/1999/02/22-rdf-syntax-ns#

RDFS 命名空间 (xmlns:rdfs ):

http://www.w3.org/2000/01/rdf-schema#

RDF 扩展名和 Mime 类型

RDF 文件的推荐扩展名是 *.rdf。不过,*.xml 常用于提供对老式 XML 解析器的兼容性。

已注册的 MIME 类型是 "application/rdf+xml"。

RDFS / RDF 类

ElementClass ofSubclass of
rdfs:ClassAll classes 
   
rdfs:DatatypeData typesClass
rdfs:ResourceAll resourcesClass
   
rdfs:ContainerContainersResource
rdfs:LiteralLiteral values (text and numbers)Resource
   
rdf:ListListsResource
rdf:PropertyPropertiesResource
rdf:StatementStatementsResource
   
rdf:AltContainers of alternativesContainer
rdf:BagUnordered containersContainer
rdf:SeqOrdered containersContainer
   
rdfs:ContainerMembershipPropertyContainer membership propertiesProperty
rdf:XMLLiteralXML literal valuesLiteral

RDFS / RDF 属性

ElementDomainRangeDescription
rdfs:domainPropertyClassThe domain of the resource
rdfs:rangePropertyClassThe range of the resource
rdfs:subPropertyOfPropertyPropertyThe property is a sub property of a property
    
rdfs:subClassOfClassClassThe resource is a subclass of a class
rdfs:commentResourceLiteralThe human readable description of the resource
rdfs:labelResourceLiteralThe human readable label (name)  of the resource
rdfs:isDefinedByResourceResourceThe definition of the resource
rdfs:seeAlsoResourceResourceThe additional information about the resource
rdfs:memberResourceResourceThe member of the resource
    
rdf:firstListResource 
rdf:restListList 
rdf:subjectStatementResourceThe subject of the resource in an RDF Statement
rdf:predicateStatementResourceThe predicate of the resource in an RDF Statement
rdf:objectStatement ResourceThe object of the resource in an RDF Statement
rdf:valueResourceResourceThe property used for values
rdf:typeResourceClassThe resource is an instance of a class

RDF 属性

ElementDomainRangeDescription
    
rdf:about  Defines the resource being described
rdf:Description  Container for the description of a resource
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 the element content
    
rdf:aboutEach  (removed)
rdf:aboutEachPrefix  (removed)
rdf:bagID  (removed)