OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: Standard way to express object, not resource, rels in XML?

[ Lists Home | Date Index | Thread Index ]
  • From: Jonathan Borden <jborden@mediaone.net>
  • To: Mike Brown <mbrown@corp.webb.net>, xml-dev@lists.xml.org
  • Date: Fri, 18 Aug 2000 22:25:43 -0400

Mike Brown wrote:

> I want to use XML to express relationships between instances of the
> conceptual/abstract objects that are each modeled by separate XML
> documents
> (or separate collections of documents). I was about to make something up
> that was specific to my application, but I was wondering if there was a
> standard way to do this.

RDF Schemas are designed for this. In this case the models are contained
within the same document, and referred to by identifiers. The models could
just as easily be contained in distinct documents.

Is this example explanatory? http://www.w3.org/TR/rdf-schema/#s7.1

<rdf:RDF xml:lang="en"

<rdfs:Class rdf:ID="Person">
  <rdfs:comment>The class of people.</rdfs:comment>

<rdf:Property ID="maritalStatus">
  <rdfs:range rdf:resource="#MaritalStatus"/>
  <rdfs:domain rdf:resource="#Person"/>

<rdf:Property ID="ssn">
  <rdfs:comment>Social Security Number</rdfs:comment>
  <rdfs:domain rdf:resource="#Person"/>

<rdf:Property ID="age">
  <rdfs:domain rdf:resource="#Person"/>

<rdfs:Class rdf:ID="MaritalStatus"/>

<MaritalStatus rdf:ID="Married"/>
<MaritalStatus rdf:ID="Divorced"/>
<MaritalStatus rdf:ID="Single"/>
<MaritalStatus rdf:ID="Widowed"/>


Jonathan Borden
The Open Healthcare Group



News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS