We have OpenLink Virtuoso version 06.01.3127 installed.
There is a small inconvenience we are experiencing when the response of our sparql endpoint is in XML format.
Here is a sample response:
- Code: Select all
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<rdf:Description rdf:about="http://<host>/nda/resource/data/124"><dcterms:type xmlns:dcterms="http://purl.org/dc/terms/" rdf:resource="http://purl.org/dc/dcmitype/Sound"/></rdf:Description>
<rdf:Description rdf:about="http://<host>/nda/resource/data/124"><dcterms:language xmlns:dcterms="http://purl.org/dc/terms/" rdf:resource="http://lexvo.org/id/iso639-3/hun"/></rdf:Description>
<rdf:Description rdf:about="http://<host>/nda/resource/data/124"><dcterms:type xmlns:dcterms="http://purl.org/dc/terms/">Magazin</dcterms:type></rdf:Description>
<rdf:Description rdf:about="http://<host>/nda/resource/data/124"><dcterms:format xmlns:dcterms="http://purl.org/dc/terms/">audio/mpeg</dcterms:format></rdf:Description>
<rdf:Description rdf:about="http://<host>/nda/resource/data/124"><dcterms:date xmlns:dcterms="http://purl.org/dc/terms/">2003-12-04 06:00:00+01</dcterms:date></rdf:Description>
<rdf:Description rdf:about="http://<host>/nda/resource/data/124"><dcterms:subject xmlns:dcterms="http://purl.org/dc/terms/">tulku</dcterms:subject></rdf:Description>
</rdf:RDF>
As you can see, the triples have the same subjects and namespaces, yet they are not grouped into one Description tag. Also, the namespaces should be defined first, and then they would not need to be defined in every tag. Is there a way to change this output format the way I described? It would be much easier to read and the response would be a lot shorter as well.
(In NTriples format it displays the triples grouped and with the namespaces defined first).
Thank you in advance!
Kind regards,
Zoltan

