[
Lists Home |
Date Index |
Thread Index
]
> How does one write a document in RDF friendly ways?
Does the example I just presented help give the literal approach to this?
Basic rules I applied in my manual transform:
* Use rdf:about or rdf:ID for ID-type attributes
* Use rdf:resource for linking
* watch out for base URI resolution (which is why I used xml:base). This is
not strictly necessary unless you are aggregating more than one document into
a database, but I generally do it as a good practice.
Now, having said all that, I completely reject the notion that all XML
designers need to follow all these rules. That would be far too limiting and
alien, and espcially since they are so trivial to apply using transforms (we
do this so often at 4Suite that we've built in a special system for it in
4Suite).
So my *real* conclusion is:
To write an XML document in an RDF-friendly way, just write the XML document
as you would if you'd never heard of RDF. Then write the usually simple
transform it takes to represent that document in familiar RDF syntax.
--
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://4Suite.org http://fourthought.com
Track chair, XML/Web Services One Boston: http://www.xmlconference.com/
Basic XML and RDF techniques for knowledge management, Part 7 -
http://www-106.ibm.com/developerworks/xml/library/x-think12.html
Keeping pace with James Clark - http://www-106.ibm.com/developerworks/xml/libra
ry/x-jclark.html
Python and XML development using 4Suite, Part 3: 4RDF -
http://www-105.ibm.com/developerworks/education.nsf/xml-onlinecourse-bytitle/8A
1EA5A2CF4621C386256BBB006F4CEC
|