I have been developing routines to work with Linked Data technologies in Mathematica. The following mappings appear to be the most natural:
- SPARQL SELECT: This is the simplest case as the result can be simple CSV with most SPARQL query services.
- SPARQL CONSTRUCT: A function is needed to convert the returned graph into a Mathematica Graph symbol.
- RDF: A function is needed to convert to and from RDF into Mathematica Entity symbols.
I have been writing a Linked Data Package to hold some utility functions that these mappings need. So far this just includes a custom StringReplace to convert Mathematica strings to RDF Literals. However, I am still struggling to develop consistency in how URIs are handled. The "%20" versus "+" encoding for URIs is causing me some confusion.
Would it be useful to start a Linked Data Package with some functions to the Wolfram Demonstrations Project or another location?