njh / redstore

RedStore is a lightweight RDF triplestore written in C using the Redland library.
https://www.aelius.com/njh/redstore/
GNU General Public License v3.0
62 stars 6 forks source link

Negotiating for RDF/XML returns the xmpmeta variant by default. #25

Closed njh closed 13 years ago

njh commented 13 years ago

Negotiating for RDF/XML returns the xmpmeta variant by default.

~/Projects/redstore(master) $ curl -D - -H 'Accept: application/rdf+xml' http://127.0.0.1:8080/data/?graph=http%3A%2F%2Flocalhost%3A8080%2Fdata%2Ffoobar.rdf
HTTP/1.0 200 OK
Content-Type: application/rdf+xml
Date: Tue, 19 Apr 2011 21:48:11 GMT
Connection: Close
Server: RedStore/0.5.4

<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x='adobe:ns:meta/'>
<rdf:RDF
   xmlns:format="http://www.w3.org/ns/formats/"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:sd="http://www.w3.org/ns/sparql-service-description#">
  <ns1:Person xmlns:ns1="http://xmlns.com/foaf/0.1/">
    <ns1:currentProject>
      <ns1:Project>
        <ns1:homepage rdf:resource="http://www.example.com/project"/>
        <ns1:name>Joe's Current Project</ns1:name>
      </ns1:Project>
    </ns1:currentProject>
    <ns1:family_name>Bloggs</ns1:family_name>
    <ns1:firstName>Joe</ns1:firstName>
    <ns1:homepage rdf:resource="http://www.example.com/joe/"/>
    <ns1:name>Joe Bloggs</ns1:name>
    <ns1:title>Mr</ns1:title>
  </ns1:Person>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end='r'?>
njh commented 13 years ago

Fixed in 0896a3213bdfc4097de96de4deb8e6de2916c949