[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: [xtm-wg] Naive approach to representing XTM 1.0 as RDF
(cross posted to www-rdf-interest@w3.org) After a fascinating dinner between RDF and XTM executives and a night dreaming of XTM and RDF, I have decided, before the breakfast, to try a simple approach described a while ago in an article published on XML.com to translate an extract of the XTM topic map I have presented at KT 2001 into RDF. This is nothing but a quick hack that basically consist in replacing ids by rdf:about, xlink:href by rdf:resource and moving some elements around to work around the RDF limitations about references included in embedded description. I find the result quite encouraging, though and the topic map structure appears well in the generated triples (to give it a try, just past the RDF document into the online SIRPAC interface [2] that will also give you a graphical representation of these triples). I attach: - a copy of the portion of XTM used for this example (map.xtm) - a copy of the RDF version of this example (map.rdf) - the result of the SIRPAC interface (without the picture: SiRPACServlet.html). Again, the right way to define a RDF representation of Topic Maps is probably to derive a syntax from the TM data model rather than using a simple transformation working on the syntax like I have done, but I see this as an encouraging sign or proof of concept to show that Topic Maps can be represented in RDF. Eric [1] http://www.xml.com/pub/a/2000/10/04/linking/index.html [2] http://www.w3.org/RDF/Implementations/SiRPAC/ -- See you in Austin (Knowledge Technologies 2001) http://www.gca.org/attend/2001_conferences/kt_2001/mon.htm ------------------------------------------------------------------------ Eric van der Vlist Dyomedea http://dyomedea.com http://xmlfr.org http://4xt.org http://ducotede.com ------------------------------------------------------------------------ ------------------------ Yahoo! Groups Sponsor ---------------------~-~> Find software faster. Search more than 20,000 software solutions on KnowledgeStorm. Register now and get started. http://us.click.yahoo.com/ee3V2C/RNSCAA/2h4EAA/2n6YlB/TM ---------------------------------------------------------------------_-> To Post a message, send it to: xtm-wg@eGroups.com To Unsubscribe, send a blank message to: xtm-wg-unsubscribe@eGroups.com Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
<?xml version="1.0" encoding="utf-8"?> <topicMap xmlns:xlink="http://www.w3.org/1999/xlink"> <topic id="news.story.topic"> <baseName> <baseNameString>Topic XMLNews-Story</baseNameString> </baseName> </topic> <topic id="object.title"> <instanceOf> <topicRef xlink:href="#news.story.topic"/> </instanceOf> <baseName> <baseNameString>Objet</baseNameString> </baseName> </topic> <topic id="story"> <baseName> <baseNameString>Article</baseNameString> </baseName> </topic> <topic id="related"> <baseName> <baseNameString>Sujets voisins</baseNameString> </baseName> </topic> <topic id="from"> <baseName> <baseNameString>Sujet</baseNameString> </baseName> </topic> <topic id="to"> <baseName> <baseNameString>Voisin</baseNameString> </baseName> </topic> <topic id="object.title-topic+maps"> <instanceOf> <topicRef xlink:href="#object.title"/> </instanceOf> <baseName> <baseNameString>topic maps (object.title)</baseNameString> </baseName> <occurrence id="object.title-topic+maps-1"> <instanceOf> <topicRef xlink:href="#story"/> </instanceOf> <resourceRef xlink:href="http://xmlfr.org/actualites/tech/001207-0002"/> </occurrence> <occurrence id="object.title-topic+maps-2"> <instanceOf> <topicRef xlink:href="#story"/> </instanceOf> <resourceRef xlink:href="http://xmlfr.org/actualites/tech/000706-0002"/> </occurrence> </topic> <association id="assoc-object.title-topic+maps-2"> <instanceOf> <topicRef xlink:href="#related"/> </instanceOf> <member> <roleSpec> <topicRef xlink:href="#from"/> </roleSpec> <topicRef xlink:href="#object.title-topic+maps"/> </member> <member> <roleSpec> <topicRef xlink:href="#to"/> </roleSpec> <topicRef xlink:href="#object.title-xml"/> </member> </association> <association id="assoc-object.title-topic+maps-6"> <instanceOf> <topicRef xlink:href="#related"/> </instanceOf> <member> <roleSpec> <topicRef xlink:href="#from"/> </roleSpec> <topicRef xlink:href="#object.title-topic+maps"/> </member> <member> <roleSpec> <topicRef xlink:href="#to"/> </roleSpec> <topicRef xlink:href="#object.title-xlink"/> </member> </association> <association id="assoc-object.title-topic+maps-7"> <instanceOf> <topicRef xlink:href="#related"/> </instanceOf> <member> <roleSpec> <topicRef xlink:href="#from"/> </roleSpec> <topicRef xlink:href="#object.title-topic+maps"/> </member> <member> <roleSpec> <topicRef xlink:href="#to"/> </roleSpec> <topicRef xlink:href="#object.title-xtm"/> </member> </association> <topic id="object.title-xtm"> <instanceOf> <topicRef xlink:href="#object.title"/> </instanceOf> <baseName> <baseNameString>xtm(object.title)</baseNameString> </baseName> <occurrence id="object.title-xtm+1.0-1"> <instanceOf> <topicRef xlink:href="#story"/> </instanceOf> <resourceRef xlink:href="http://xmlfr.org/actualites/tech/001207-0002"/> </occurrence> </topic> </topicMap>
<?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns="http://dyomedea.com/ns/rdftm#"> <topic rdf:about="#news.story.topic"> <baseName> <baseNameString>Topic XMLNews-Story</baseNameString> </baseName> </topic> <topic rdf:about="#object.title"> <instanceOf rdf:resource="#news.story.topic"/> <baseName> <baseNameString>Objet</baseNameString> </baseName> </topic> <topic rdf:about="#story"> <baseName> <baseNameString>Article</baseNameString> </baseName> </topic> <topic rdf:about="#related"> <baseName> <baseNameString>Sujets voisins</baseNameString> </baseName> </topic> <topic rdf:about="#from"> <baseName> <baseNameString>Sujet</baseNameString> </baseName> </topic> <topic rdf:about="#to"> <baseName> <baseNameString>Voisin</baseNameString> </baseName> </topic> <topic rdf:about="#object.title-topic+maps"> <instanceOf rdf:resource="#object.title"/> <baseName> <baseNameString>topic maps (object.title)</baseNameString> </baseName> <occurrence rdf:resource="object.title-topic+maps-1"/> <occurrence rdf:resource="object.title-topic+maps-2"/> </topic> <occurrence rdf:about="#object.title-topic+maps-1"> <instanceOf rdf:resource="#story"/> <resourceRef rdf:resource="http://xmlfr.org/actualites/tech/001207-0002"/> </occurrence> <occurrence rdf:about="#object.title-topic+maps-2"> <instanceOf rdf:resource="#story"/> <resourceRef rdf:resource="http://xmlfr.org/actualites/tech/000706-0002"/> </occurrence> <association rdf:about="#assoc-object.title-topic+maps-2"> <instanceOf rdf:resource="#related"/> <member rdf:resource="#assoc-object.title-topic+maps-2-1"/> <member rdf:resource="#assoc-object.title-topic+maps-2-2"/> </association> <member rdf:about="#assoc-object.title-topic+maps-2-1"> <roleSpec rdf:resource="#from"/> <topicRef rdf:resource="#object.title-topic+maps"/> </member> <member rdf:about="#assoc-object.title-topic+maps-2-1"> <roleSpec rdf:resource="#to"/> <topicRef rdf:resource="#object.title-xml"/> </member> <association rdf:about="#assoc-object.title-topic+maps-6"> <instanceOf rdf:resource="#related"/> <member rdf:resource="#assoc-object.title-topic+maps-6-1"/> <member rdf:resource="#assoc-object.title-topic+maps-6-2"/> </association> <member rdf:about="#assoc-object.title-topic+maps-6-1"> <roleSpec rdf:resource="#from"/> <topicRef rdf:resource="#object.title-topic+maps"/> </member> <member rdf:about="#assoc-object.title-topic+maps-6-2"> <roleSpec rdf:resource="#to"/> <topicRef rdf:resource="#object.title-xlink"/> </member> <association rdf:about="#assoc-object.title-topic+maps-7"> <instanceOf rdf:resource="#related"/> <member rdf:resource="#assoc-object.title-topic+maps-7-1"/> <member rdf:resource="#assoc-object.title-topic+maps-7-2"/> </association> <member rdf:rabout="#assoc-object.title-topic+maps-7-1"> <roleSpec rdf:resource="#from"/> <topicRef rdf:resource="#object.title-topic+maps"/> </member> <member rdf:rabout="#assoc-object.title-topic+maps-7-2"> <roleSpec rdf:resource="#to"/> <topicRef rdf:resource="#object.title-xtm"/> </member> <topic rdf:about="#object.title-xtm"> <instanceOf rdf:resource="#object.title"/> <baseName> <baseNameString>xtm(object.title)</baseNameString> </baseName> <occurrence rdf:resource="#object.title-xtm+1.0-1"/> </topic> <occurrence rdf:about="#object.title-xtm+1.0-1"> <instanceOf rdf:resource="#story"/> <resourceRef rdf:resource="http://xmlfr.org/actualites/tech/001207-0002"/> </occurrence> </rdf:RDF>Title: RDF creation
1: <?xml version="1.0" encoding="UTF-8"?> 2: <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns="http://dyomedea.com/ns/rdftm#"> 3: <topic rdf:about="#news.story.topic"> 4: <baseName> 5: <baseNameString>Topic XMLNews-Story</baseNameString> 6: </baseName> 7: </topic> 8: <topic rdf:about="#object.title"> 9: <instanceOf rdf:resource="#news.story.topic"/> 10: <baseName> 11: <baseNameString>Objet</baseNameString> 12: </baseName> 13: </topic> 14: <topic rdf:about="#story"> 15: <baseName> 16: <baseNameString>Article</baseNameString> 17: </baseName> 18: </topic> 19: <topic rdf:about="#related"> 20: <baseName> 21: <baseNameString>Sujets voisins</baseNameString> 22: </baseName> 23: </topic> 24: <topic rdf:about="#from"> 25: <baseName> 26: <baseNameString>Sujet</baseNameString> 27: </baseName> 28: </topic> 29: <topic rdf:about="#to"> 30: <baseName> 31: <baseNameString>Voisin</baseNameString> 32: </baseName> 33: </topic> 34: <topic rdf:about="#object.title-topic+maps"> 35: <instanceOf rdf:resource="#object.title"/> 36: <baseName> 37: <baseNameString>topic maps (object.title)</baseNameString> 38: </baseName> 39: <occurrence rdf:resource="object.title-topic+maps-1"/> 40: <occurrence rdf:resource="object.title-topic+maps-2"/> 41: </topic> 42: <occurrence rdf:about="#object.title-topic+maps-1"> 43: <instanceOf rdf:resource="#story"/> 44: <resourceRef rdf:resource="http://xmlfr.org/actualites/tech/001207-0002"/> 45: </occurrence> 46: <occurrence rdf:about="#object.title-topic+maps-2"> 47: <instanceOf rdf:resource="#story"/> 48: <resourceRef rdf:resource="http://xmlfr.org/actualites/tech/000706-0002"/> 49: </occurrence> 50: <association rdf:about="#assoc-object.title-topic+maps-2"> 51: <instanceOf rdf:resource="#related"/> 52: <member rdf:resource="#assoc-object.title-topic+maps-2-1"/> 53: <member rdf:resource="#assoc-object.title-topic+maps-2-2"/> 54: </association> 55: <member rdf:about="#assoc-object.title-topic+maps-2-1"> 56: <roleSpec rdf:resource="#from"/> 57: <topicRef rdf:resource="#object.title-topic+maps"/> 58: </member> 59: <member rdf:about="#assoc-object.title-topic+maps-2-1"> 60: <roleSpec rdf:resource="#to"/> 61: <topicRef rdf:resource="#object.title-xml"/> 62: </member> 63: <association rdf:about="#assoc-object.title-topic+maps-6"> 64: <instanceOf rdf:resource="#related"/> 65: <member rdf:resource="#assoc-object.title-topic+maps-6-1"/> 66: <member rdf:resource="#assoc-object.title-topic+maps-6-2"/> 67: </association> 68: <member rdf:about="#assoc-object.title-topic+maps-6-1"> 69: <roleSpec rdf:resource="#from"/> 70: <topicRef rdf:resource="#object.title-topic+maps"/> 71: </member> 72: <member rdf:about="#assoc-object.title-topic+maps-6-2"> 73: <roleSpec rdf:resource="#to"/> 74: <topicRef rdf:resource="#object.title-xlink"/> 75: </member> 76: <association rdf:about="#assoc-object.title-topic+maps-7"> 77: <instanceOf rdf:resource="#related"/> 78: <member rdf:resource="#assoc-object.title-topic+maps-7-1"/> 79: <member rdf:resource="#assoc-object.title-topic+maps-7-2"/> 80: </association> 81: <member rdf:rabout="#assoc-object.title-topic+maps-7-1"> 82: <roleSpec rdf:resource="#from"/> 83: <topicRef rdf:resource="#object.title-topic+maps"/> 84: </member> 85: <member rdf:rabout="#assoc-object.title-topic+maps-7-2"> 86: <roleSpec rdf:resource="#to"/> 87: <topicRef rdf:resource="#object.title-xtm"/> 88: </member> 89: <topic rdf:about="#object.title-xtm"> 90: <instanceOf rdf:resource="#object.title"/> 91: <baseName> 92: <baseNameString>xtm(object.title)</baseNameString> 93: </baseName> 94: <occurrence rdf:resource="#object.title-xtm+1.0-1"/> 95: </topic> 96: <occurrence rdf:about="#object.title-xtm+1.0-1"> 97: <instanceOf rdf:resource="#story"/> 98: <resourceRef rdf:resource="http://xmlfr.org/actualites/tech/001207-0002"/> 99: </occurrence> 100: </rdf:RDF>
The number of triples = 77
If you suspect that SiRPAC produced an error, please enter an explanation below and then press the Submit problem report button, to mail the report (and listing) to barstow@w3.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC