Re: Triples from DAML

$ cat ex2.daml 
<rdf:RDF
  xmlns:rdf ="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xmlns:daml="http://www.daml.org/2001/03/daml+oil#"
>
<daml:Class rdf:ID="Member">
  <rdfs:label>Member</rdfs:label>
  <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" />
  <rdfs:subClassOf>
    <daml:Restriction daml:maxCardinality="1">
      <daml:onProperty rdf:resource="#hasOffice" />
    </daml:Restriction>
  </rdfs:subClassOf>
</daml:Class>
</rdf:RDF>

$ 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
on"),
("<Member>", "<rdfs:subClassOf>", "http://cicho0.tripod.com/cs_Staff_ont#Lectur
ing-Staff"),
("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