- From: ben syverson <w3@likn.org>
- Date: Mon, 7 Mar 2005 15:36:40 -0600
- 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: RDFs_spec_1029385 RDFS_spec_1028345 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#" xmlns:dc="http://purl.org/dc/elements/1.1" xmlns="http://likn.org/owl/" xml:base="http://likn.org/owl/"> <rdf:Description rdf:about="becca"> <dc:title>Becca</dc:title> <rdf:type rdf:resource="person" /> <eyes> <rdf:Description> <color rdf:resource="brown" /> <color rdf:resource="green" /> </rdf:Description> </eyes> <owns rdf:nodeID="beccaowns1" /> </rdf:Description> <rdf:Description rdf:nodeID="beccaowns1"> <rdf:type rdf:resource="car" /> <licenseplate>BEX</licenseplate> <color rdf:resource="brown" /> <purchased> <rdf:Description> <purchasedFrom rdf:resource="http://cars.example.org" /> <cost rdf:parseType="Resource"> <rdf:value>2000</rdf:value> <currency rdf:resource="dollars" /> </cost> </rdf:Description> </purchased> </rdf:Description> </rdf:RDF> - ben
Received on Monday, 7 March 2005 21:36:44 UTC