12.1.5. Main elements of RDF

发布时间 :2025-10-25 12:23:46 UTC      

RDF 的主要元素是 <RDF> 以及可表示某个资源的 <Description> 元素。

< rdf:RDF > element

< rdf:RDF > is the root element of the RDF document. It defines an XML document as an RDF document. It also contains references to the RDF namespace:

<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  ... *Description goes here...*
</rdf:RDF>

< rdf:Description > element

The < rdf:Description > element identifies a resource by the about attribute.

The < rdf:Description > element can contain those elements that describe the resource:

<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cd="http://www.recshop.fake/cd#">
<rdf:Description
rdf:about="http://www.recshop.fake/cd/Empire Burlesque">
  <cd:artist>Bob Dylan</cd:artist>
  <cd:country>USA</cd:country>
  <cd:company>Columbia</cd:company>
  <cd:price>10.90</cd:price>
  <cd:year>1985</cd:year>
</rdf:Description>
</rdf:RDF>

The elements artist, country, company, price, and year are defined in the namespace http://www.recshop.fake /cd#. This namespace is outside of RDF (not part of RDF). RDF only defines this framework. The elements artist, country, company, price, and year must be defined by others (companies, organizations, individuals, etc.).

Attribute (property) to define the attribute (attribute)

Attribute elements (property elements) can also be defined as attributes (instead of elements) as attributes (attributes):

<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cd="http://www.recshop.fake/cd#">
<rdf:Description
rdf:about="http://www.recshop.fake/cd/Empire Burlesque"
cd:artist="Bob Dylan" cd:country="USA"
cd:company="Columbia" cd:price="10.90"
cd:year="1985" />
</rdf:RDF>

Attribute (property) to define the attribute (attribute)

Attribute elements (property elements) can also be defined as attributes (instead of elements) as attributes (attributes):

<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cd="http://www.recshop.fake/cd#">
<rdf:Description
rdf:about="http://www.recshop.fake/cd/Empire Burlesque">
  <cd:artist rdf:resource="http://www.recshop.fake/cd/dylan" />
  ...
  ...
</rdf:Description>
</rdf:RDF>

In the above example, the attribute artist has no value, but references a resource that contains information about the artist.

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.