Re: Vocabulary for HTTP headers

I'm not sure if you got what you want, but this also might be related 
and useful:

http://www.lsrn.org/semweb/rdfpost.html



12.02.2014 23:21 tarihinde, Martynas Jusevičius yazdı:
> 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


-- 
Umutcan ŞİMŞEK

Software Specialist
Aura Informatics, Izmir, Turkey

Blog(Turkish): http://blog.umutcansimsek.com
LinkedIn: http://www.linkedin.com/pub/umutcan-%C5%9Fim%C5%9Fek/53/199/26a

Received on Wednesday, 12 February 2014 22:43:37 UTC