| STEP/SGML harmonization - Data Architecture or Product Documentation? | Table of contents | Indexes | Achieving Individualized, Timely Web Delivery | |||
W3C's Resource Description Framework Schemas: DTDs for the 21st Century |
|
David Singer |
| Senior Technical Staff Member |
| IBM Internet Division 650 Harry Road San Jose California 95120 USA Phone: +1 408 927 2509 Fax: +1 408 927 4073 Email: singer@almaden.ibm.com |
Biographical notice: |
David Singer |
IBM Tokyo Research Laboratory Japan ![]() Tokyo ![]() Uramoto, Naohiko |
Naohiko Uramoto |
| Research Staff Member |
| IBM Tokyo Research Laboratory 5-19 Sanbancho Chiyoda-ku Tokyo Japan 102 Phone: +81 462 73 4564 Email: uramoto@jp.ibm.com |
Biographical notice: |
Naohiko Uramoto |
ABSTRACT: |
What is RDF? |
|
The RDF Data Model |
|
The RDF data model provides some additional basic concepts, such as collections of nodes (nodes are resources, objects, or RDF statements), as well as primitive data types (such as string). |
The RDF Schema |
|
The underlying concepts of the RDF Schema are described in the following sections. |
Class |
|
This corresponds to the generic concept of a "type" or a "category". Classes represent kinds of resources, such as web pages or people. |
instanceOf |
|
This is a relationship between a resource and a Class, indicating that the resource is a member of the Class. A resource may be an instanceOf more than one Class. |
subClassOf |
|
Resource |
|
This is the class of things that RDF can describe. |
PropertyType |
|
This is the class of properties that RDF can ascribe to Resources. |
Primitive Data Types |
|
There are a number of classes whose instances are primitive objects, such as strings, whole numbers, and dates. |
Constraints |
|
Comments |
|
One can add human-readable comments to schemas using this property. This property should be freely used! |
Collections |
|
There are classes defined for "Collection", "Bag" (multi-set), "List", and "Alternatives". |
Deploying RDF and RDF Schemas |
|
In XML documents, RDF will use the namespace mechanism to be proposed by the XML Working Group (see http://www.w3.org/XML/Activity.html). |
It is interesting to note that, except within an RDF Sequence, the order of RDF and RDF Schema elements in the XML data stream has no effect on the meaning of the RDF statements. |
A sample RDF Schema |
|
<Class id="Person">
<description>Class for representing people. Instances correspond
to a single person.</description>
<subTypeOf href="#Animal"/>
<allowedPropertyType>
<PropertyType id="age">
<range href="#Integer"/>
</PropertyType>
</allowedPropertyType>
<allowedPropertyType>
<PropertyType id="ssn">
<range href="#Integer"/>
<neccesity href="#OccursExactlyOnce"/>
</PropertyType>
</allowedPropertyType>
<allowedPropertyType>
<PropertyType id="martialStatus">
<neccesity href="#OptionalAtMostOnce" />
<isFrom>
<Collection>
<LI id="Married"/>
<LI id="Divorced"/>
<LI id="Single"/>
<LI id="Widowed"/>
</Collection>
</isFrom>
</PropertyType>
</allowedPropertyType>
</Class> |
Translating this schema into English gives us this: |
There is a Class named "Person", which is the class for representing people. Instances of this class represent a single person. |
"Person" is a subclass of "Animal" (which is not included in this example). |
The properties that a "Person" may have are: |
In addition, any properties allowed for an "Animal" are also allowable for a "Person". In the example following, we assume that "name" is an allowable property of an "Animal". |
A sample RDF file |
|
Here is a description of a person using the schema above: |
<?xml:namespace name="http://www.w3.org/RDF" as="RDF"?>
<?xml:namespace name="http://hypothetical.net/#person" as="WHO"?>
<RDF:RDF xml:lang="en"/>
<RDF:Description id="Number6"/>
<RDFS:instanceOf href="http://hypothetical.net/#person"/>
<WHO:name>Number Six</WHO:name>
<WHO:age>45</WHO:age>
<WHO:ssn>6</WHO:ssn>
</RDF:Description>
</RDF:RDF> |
RDF implementations |
|
Conclusion |
|
Acknowledgements |
|
References |
|
RDF Web page: http://www.w3.org/RDF |
RDF Model and Syntax: http://www.w3.org/TR/WD-rdf-syntax |
RDF Schema: http://www.w3.org/TR/WD-rdf-schema |
HTML 4.0 Recommendation: http://www.w3.org/TR/REC-html40/struct/global.html |
Rating Services and Rating Systems (and Their Machine Readable Descriptions): http://www.w3.org/TR/REC-PICS-services-961031 |
XML Activity Statement: http://www.w3.org/XML/Activity.html |
W3C Workshop on the Future of HTML: http://www.w3.org/MarkUp/future/ |
Reggie - The Metadata Editor: http://metadata.net/dstc/ |
| STEP/SGML harmonization - Data Architecture or Product Documentation? | Table of contents | Indexes | Achieving Individualized, Timely Web Delivery | |||