W3C home > Mailing lists > Public > www-rdf-interest@w3.org > November 2001

Re: Triples from DAML

From: Uche Ogbuji <uche.ogbuji@fourthought.com>
Date: Thu, 22 Nov 2001 23:36:40 -0700
Message-Id: <200111230636.fAN6aec26602@localhost.localdomain>
To: "Charlie Abela" <abcharl@maltanet.net>
cc: www-rdf-interest@w3.org
$ cat ex2.daml 
  xmlns:rdf ="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
<daml:Class rdf:ID="Member">
  <rdfs:comment>represents a member of the lecturing staff</rdfs:comment>
  <rdfs:subClassOf rdf:resource="http://www.daml.org/2001/03/daml+oil-ex#Person
" />
  <rdfs:subClassOf rdf:resource="http://cicho0.tripod.com/cs_Staff_ont#Lecturin
g-Staff" />
    <daml:Restriction daml:maxCardinality="1">
      <daml:onProperty rdf:resource="#hasOffice" />

$ 4rdf ex2.daml
The following is a list of remaining tuples, each in the form "subject, 
predicate, object".  If a resource has an rdfs:label, it is presented with 
this label between angle brackets.
("<Member>", "<rdf:type>", "<daml:Class>"),
("<Member>", "<rdfs:label>", "Member"),
("<Member>", "<rdfs:comment>", "represents a member of the lecturing staff"),
("<Member>", "<rdfs:subClassOf>", "http://www.daml.org/2001/03/daml+oil-ex#Pers
("<Member>", "<rdfs:subClassOf>", "http://cicho0.tripod.com/cs_Staff_ont#Lectur
("ANON-1", "<rdf:type>", "<daml:Restriction>"),
("ANON-1", "<daml:maxCardinality>", "1"),
("ANON-1", "<daml:onProperty>", "#hasOffice"),
("<Member>", "<rdfs:subClassOf>", "ANON-1"),

In case you're wondering about the "<Member>", it's because you defined an 
rdfs:label for #Member.

Uche Ogbuji                               Principal Consultant
uche.ogbuji@fourthought.com               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St, Boulder, CO 80301-2537, USA
XML strategy, XML tools (http://4Suite.org), knowledge management
Received on Friday, 23 November 2001 01:46:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:33 UTC