Re: Vocabulary for HTTP headers

I'm not sure what you intend to use the vocabulary for, but for
logging there are templates:

Turtle access log formatter for Apache:
http://www.ebremer.com/paladin/pipelogger/2013-04-08
Turtle access log formatter for Tomcat: https://gist.github.com/pumba-lt/5656373

On Wed, Feb 12, 2014 at 10:17 PM, Richard Smith <richard@ex-parrot.com> wrote:
> Martynas Jusevičius wrote:
>
>> HTTP Vocabulary in RDF 1.0?
>>
>> http://www.w3.org/TR/HTTP-in-RDF10/
>
>
> I should have mentioned that I was aware of that.  It's much more a
> vocabulary for encoding whole HTTP messages, than for metadata about the
> resource in the message body.  So for example, if
> <http://example.com/foo.jpg> is served with:
>
>   Content-Length: 514090
>
> this translates to RDF as:
>
>   @prefix http: <http://www.w3.org/2011/http#> .
>   [ a http:Connection ;
>     http:connectionAuthority "example.com" ;
>     http:requests (
>       [ a http:Request ;
>         http:absolutePath "/foo.jpg" ;
>         http:headers (
>           [ a http:RequestHeader ;
>             http:hdrName
>               <http://www.w3.org/2011/http-headers#content-length> ;
>             http:fieldValue "514090" ] ) ] ) ] .
>
> I dare say that has uses, but it's a long hugely over-complicated for what I
> want.
>
> I wondered whether it might be possible to extract from that the following:
>
>   @prefix hdr: <http://www.w3.org/2011/http-headers#> .
>   <http://example.com/foo.jpg> hdr:content-length 514090 .
>
> But it isn't, as hdr:content-length is declared an http:HeaderName which is
> an rdfs:Class, not a subtype of rdf:Property.
>
> Richard

Received on Wednesday, 12 February 2014 21:22:15 UTC