[semweb4j] Serialise RDF2Go Query Results as XML

6 views
Skip to first unread message

Dong LIU

unread,
Apr 23, 2010, 11:38:12 AM4/23/10
to Max Voelkel, RDF2Go and RDFReactor (part of semweb4j)
Hi Max and all,

I am a user of RDF2Go. Could somebody let me know if there is a simple way to serialise QueryResultTable to SPARQL Result XML (http://www.w3.org/TR/rdf-sparql-XMLres/). I have seen there is a java class in Sesame API can do that: http://www.openrdf.org/doc/sesame2/2.3.1/apidocs/org/openrdf/query/resultio/sparqlxml/SPARQLResultsXMLWriter.html

Best Regards,
Dong LIU

--
You received this message because you are subscribed to the Google Groups "RDF2Go and RDFReactor (part of semweb4j)" group.
To post to this group, send email to semw...@googlegroups.com.
To unsubscribe from this group, send email to semweb4j+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/semweb4j?hl=en.

Max Voelkel

unread,
Apr 23, 2010, 11:46:18 AM4/23/10
to Dong LIU, RDF2Go and RDFReactor (part of semweb4j)
Hi, no, there is not Sparql XML result format support directly in RFD2Go.

For this case, the easiest way to proceed is to call  model.getUnderlyingImplementation (or similar) and then type-cast to the specific model that is used (sesame or jena). Then call their API for just this part.
That keeps your code still 98% portable and allows you to do all you need.
We can also always discuss to extend the RDF2Go API,
any proposal is welcome.

Kind Regards,
Max


On Fri, Apr 23, 2010 at 17:38, Dong LIU <liu.d...@gmail.com> wrote:
Hi Max and all,

I am a user of RDF2Go. Could somebody let me know if there is a simple way to serialise QueryResultTable to SPARQL Result XML (http://www.w3.org/TR/rdf-sparql-XMLres/). I have seen there is a java class in Sesame API can do that: http://www.openrdf.org/doc/sesame2/2.3.1/apidocs/org/openrdf/query/resultio/sparqlxml/SPARQLResultsXMLWriter.html

Best Regards,
Dong LIU



--
FZI Forschungszentrum Informatik an der Universität Karlsruhe
Haid-und-Neu-Str. 10-14, D-76131 Karlsruhe
Tel.: +49-721-9654-0, Fax: +49-721-9654-959
Stiftung des bürgerlichen Rechts, Stiftung Az: 14-0563.1 Regierungspräsidium Karlsruhe
Vorstand: Prof. Dr.-Ing. Rüdiger Dillmann, Dipl. Wi.-Ing. Michael Flor,
Prof. Dr. rer. nat. Dr. h.c. Wolffried Stucky, Prof. Dr. rer. nat. Rudi Studer
Vorsitzender des Kuratoriums: Ministerialdirigent Günther Leßnerkraus
Reply all
Reply to author
Forward
0 new messages