W3C home > Mailing lists > Public > semantic-web@w3.org > March 2005

Re: Style question

From: ben syverson <w3@likn.org>
Date: Mon, 7 Mar 2005 15:36:40 -0600
Message-Id: <5141dcbd53206f9762080c3ad1c115d9@likn.org>
To: semantic-web@w3.org

On Mar 7, 2005, at 5:51 AM, Geoff Chappell wrote:

> You could use http://likn.org/owl/" as the default namespace - e.g.:

Cool -- I was wondering about that. But to clarify, the reason I don't 
want to use Qnames (or even standard xml names) is that I then have to 
turn node names into an xml name, which is not always easy, even though 
each node name is unique -- because a node name can contain lots of 
illegal characters for an xml name. So those have to be omitted or 
turned into something else (like an underscore).

For example, the two following nodes are probably very different:
RDF's spec
RDFS spec
So omission is out of the question. But simply turning RDF's into RDF_S 
is out of the question as well, since there might also be something 
like an RDF:s node. One solution is to simply append the node's 
internal ID to its name (minus the illegals), like so:
But that's kind of ugly...

I'm also trying to figure out how to work in N-ary assertions, and this 
what I've come up with so far. This should express in RDF the English 
"Becca is a person with blue and green eyes. She owns a car with the 
license plate "BEX" and the color brown, which was purchased for 
US$2000 from http://cars.example.com."

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	<rdf:Description rdf:about="becca">
		<rdf:type rdf:resource="person" />
				<color rdf:resource="brown" />
				<color rdf:resource="green" />
		<owns rdf:nodeID="beccaowns1" />
	<rdf:Description rdf:nodeID="beccaowns1">
		<rdf:type rdf:resource="car" />
		<color rdf:resource="brown" />
				<purchasedFrom rdf:resource="http://cars.example.org" />
				<cost rdf:parseType="Resource">
					<currency rdf:resource="dollars" />

- ben
Received on Monday, 7 March 2005 21:36:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 07:41:45 UTC