Hi Ben, On Wed, Feb 8, 2012 at 12:52 AM, Ben Coman <btc@openinworld.com> wrote:
Is there much being done with Resource Description Framework in Squeak/Pharo?  I have some RDF data files that I need to load for my masters project and am seeking advice on how to approach this.  I am only just learning about RDF for the first time.  For anyone else interested the best short overview I found so far is  [ http://logicerror.com/semanticWeb-webdev ]
Apparently it this is a Simplified RDF Syntax as described at  [ http://www.langdale.com.au/CIMXML/PSModelExchange.pdf ]
A data file looks like like this...
<?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" Â Â Â Â Â Â Â xmlns:cim="http://iec.ch/TC57/2007/CIM-schema-cim12#"> Â <cim:ACLineSegment rdf:ID="_7814201"> Â Â Â <cim:Conductor.length>95</cim:Conductor.length> Â Â Â <cim:IdentifiedObject.name>AMHE400MARCLINE</cim:IdentifiedObject.name> Â Â Â <cim:ConductingEquipment.BaseVoltage rdf:resource="#_400000302"/> Â Â Â <cim:Equipment.MemberOf_EquipmentContainer rdf:resource="#_487038201"/> Â </cim:ACLineSegment>
The most obvious project on Squeaksource is Rakaiko [a] which says "RDF is an essential part of the new web technologies and a fundamental layer of the semantic Web 2.0 [...] Â This API, compliant with the W3C RDF specification will allow a developer to handle an RDF graph in its various forms (RDF/XML, N3, abstract graph). In other words, it would be the Squeak equivalent of the Jena Java RDF API." Â Â However there has been no activity on Rakaiko since 2007 and there is no apparent documentation. Â Has anyone used this and/or is this abandoned? Page 20 of "ESUG 2006 Welcome" mentions a "RDF Framework for Smalltalk." Â Did anything come of this?
This framework was done by one of my former student, Julien Bourdon who is currently finishing his PhD thesis in Kyoto. I put him in CC, but not sure that he has time at the moment to help you.
Alternatively I could fake it and learn just how to parse the XML directly and manually translate it into the class model. Â (It seems processing an a RDF Schema might be able to automatically create the class definition as well as the instance creation )
There is PetitXML, which however is not included by ConfigurationOfPetitParser.24 loaded on Moose 4.6. Â What is the status of PetitXML ?
Also Moose 4.6 has XML-Parser. Â Which of XML-Parser or PetitXML would be the better approach ?
I've watched http://www.tudorgirba.com/blog/simple-xml-browser-with-glamour but not sure whether than will help me actually load the data into a model.
You opinion of these various approaches would be appreciated, and of course pointers to any examples/documentation.
Regards, -- Serge Stinckwich UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam Matsuno Laboratory, Kyoto University, Japan (until 12/2011) http://www.mechatronics.me.kyoto-u.ac.jp/ Every DSL ends up being Smalltalk http://doesnotunderstand.org/