Re: Triples from DAML

> Since DAML is based on XML [...]

I'd argue that it isn't - I can use DAML terms in any RDF graph, and
RDF can be serialized into formats other than XML RDF. For example,
further down in this email, I restate the triples in your second
example in another format called NTriples. There's also another format
called Notation3 [1], which is a superset of NTriples. Any of these
are fine for expressing an RDF graph, although people tend to prefer
one format above the others.

You're right that XML RDF can be parsed using an XML parser, but the
main purpose of XML RDF is to just serialize the triples. XML RDF is
not a linear document format: the position of each triple does not
matter.

> Which other triples can be stated from the above
> code?

Try running it through the RDF Validator [2]. You get the following
triples:-

[[[
<online:#Member> <label> "Member" .
<online:#Member> <comment> "represents a member of the lecturing
staff" .
<online:#Member> <subClassOf>
<http://www.daml.org/2001/03/daml+oil-ex#Person> .
<online:#Member> <subClassOf>
<http://cicho0.tripod.com/cs_Staff_ont#Lecturing-Staff> .
_:j11091 <http://www.daml.org/2001/03/daml+oil#maxCardinality> "1" .
_:j11091 <http://www.daml.org/2001/03/daml+oil#onProperty>
<online:#hasOffice> .
_:j11091 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.daml.org/2001/03/daml+oil#Restriction> .
<online:#Member> <subClassOf> _:j11091 .
<online:#Member> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.daml.org/2001/03/daml+oil#Class> .
]]]

The "online:" scheme is a terrible bit of chaff that the validator
added to your input. It can be excused since you used "rdf:id", which
is fine in an example, but I would advocate using "rdf:about" in real
life code, for obvious portability reasons.

[1] http://www.w3.org/2000/10/swap/Primer
[2] http://www.w3.org/RDF/Validator/

--
Kindest Regards,
Sean B. Palmer
@prefix : <http://webns.net/roughterms/> .
:Sean :hasHomepage <http://purl.org/net/sbp/> .

Received on Thursday, 22 November 2001 18:41:50 UTC