ceurws / lod

Anything we need to maintain the Linked Open Data (LOD) publication of CEUR-WS.org
16 stars 2 forks source link

Try out content negotation in docker image #17

Closed WolfgangFahl closed 4 years ago

WolfgangFahl commented 4 years ago

wget --header 'Accept: application/rdf+xml' -O - http://ceur-ws.org/Vol-1191/ or

curl -L -H "Accept: application/rdf+xml" http://ceur-ws.org/Vol-1191/

already gives:

<rdf:RDF xmlns="http://swrc.ontoware.org/ontology#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

    <InProceedings rdf:about="http://ceur-ws.org/Vol-1191/paper99">
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Document"/>
    </InProceedings>
</rdf:RDF>

This principle should also work for the docker image

WolfgangFahl commented 4 years ago

E.g.

curl -sL -H "Accept: application/rdf+xml" http://capri:8880/Vol-2610
<rdf:RDF xmlns='http://swrc.ontoware.org/ontology#'
  xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
 <InProceedings rdf:about='http://ceur-ws.org/Vol-2610/index.html'>
<rdf:type rdf:resource='http://xmlns.com/foaf/0.1/Document'/>
</InProceedings>
</rdf:RDF>
WolfgangFahl commented 4 years ago
curl -sL -H "Accept: application/json" http://capri:8880/Vol-2610
{
    "proceedings": {
        "url": "http://ceur-ws.org/Vol-2610"
    }
}