If your input is in an XML format, you could use XSLT for this. But your favorite programming language could help too. This is a piece of Groovy code I wrote yesterday to convert a JSON format in N3: http://chem-bla-ics.blogspot.com/2009...
- Egon Willighagen
Fair point... I was thinking about something fancier than a simple HTML table output, but was certainly not clear about that in the question... XSLT could take care of converting a image field into an <img> tag, but perhaps there is more possible... ? For example, convert a xsd:date into a calendar widget?
- Egon Willighagen
I am looking for an overview of solutions for Open Source web frameworks which use some HTML template mechanism and creates the content HTML directly from a SPARQL query I define? That is, I want to pass the web framework the SPARQL query and not have to care about creating the HTML GUI stuff for displaying the results. The framework would analyze the SPARQL itself, see how many fields it can expect and create HTML accordingly, allowing me to simply care about the SPARQL itself. Preferably, the output would be Ajax-using XHTML+RDFa output, but at the moment I would settle for anything. The framework should allow something along the lines of this pseudo code: sparql = "SELECT WHERE ..."; insert("header"); insert(query(remoteServerURL, sparql)); insert("footer");
- Egon Willighagen
Hi Jean-Claude, but this information is already digitized... I want articles with interesting data which can be converted into an electronic form without chemistry knowledge. Like a simple table with SMILES in one column and property in a second...
- Egon Willighagen
OK got it Egon. If I come across anything I'll let you know. The Seidell book has plenty of tables but those do require chemical knowledge to process as we discussed.
- Jean-Claude Bradley
OWL Full sameAs seems also possible for rdfs:Class, not? From the OWL recommendation (W3C Recommendation 10 February 2004) "In OWL Full, where a class can be treated as instances of (meta)classes, we can use the owl:sameAs construct to define class equality, thus indicating that two concepts have the same intensional meaning." ...
- Egon Willighagen
With the numerous ontologies being set up (which I do not see as bad), we also see the need to map ontologies. I am aware of the use of upper-ontologies (like UMBEL) to help make such mappings, and I am aware that I can use owl:sameAs to make rdfs:Resource-s and rdfs:Class-es. What I am looking for is a literature on good-practices in this area, and in particular about alternatives to the use of owl:sameAs. If the documentation has theoretical arguments for the various options, that would be rather interesting. Is there such information available?
- Egon Willighagen