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

Re: Triples from DAML

From: Sean B. Palmer <sean@mysterylights.com>
Date: Thu, 22 Nov 2001 23:41:06 -0000
Message-ID: <06f501c173af$29e30760$deda93c3@localhost>
To: "Charlie Abela" <abcharl@maltanet.net>
Cc: <www-rdf-interest@w3.org>
> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:52 GMT