Monday, May 30, 2016

wget and curl on bshambaugh.rww.io

Using curl pulls in the parent container:

curl -i -H "Accept: text/turtle" http://bshambaugh.rww.io

HTTP/1.1 200 OK
Date: Tue, 31 May 2016 01:49:38 GMT
Server: Apache/2.2.22 (Ubuntu)
X-Powered-By: PHP/5.3.10-1ubuntu3.22
Set-Cookie: SID=a0kehvcpo0pctkrlijd1t2fsb0; expires=Sun, 30-May-2021 01:49:38 GMT; path=/; domain=.rww.io
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: max-age=0
Pragma: no-cache
User: dns:107.196.158.16
Set-Cookie: showMetaFiles=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT
Link: <http://bshambaugh.rww.io/.acl>; rel=acl
MS-Author-Via: DAV, SPARQL
Allow: GET, PUT, POST, OPTIONS, HEAD, MKCOL, DELETE, PATCH
Accept-Patch: application/json, application/sparql-update
Accept-Post: text/turtle;charset=utf-8,text/n3;charset=utf-8,text/nt;charset=utf-8,text/css;charset=utf-8,text/html;charset=utf-8,text/javascript;charset=utf-8,text/plain;charset=utf-8,application/rdf+xml;charset=utf-8,application/json;charset=utf-8,multipart/form-data,image/jpeg,image/jpeg,image/png,image/gif,font/otf
Vary: Accept,Origin,If-Modified-Since,If-None-Match
Link: <http://www.w3.org/ns/ldp#BasicContainer>; rel="type"
Link: <http://www.w3.org/ns/ldp#Resource>; rel="type"
Link: <http://bshambaugh.rww.io/.meta>; rel=meta
Link: <http://bshambaugh.rww.io/?p=1>; rel='first'
Link: <http://bshambaugh.rww.io/?p=1>; rel='last'
ETag: "c6d5ed3581b8c61ff70775a7e43a3cb8"
Last-Modified: Tue, 07 Oct 2014 03:06:33 GMT
Updates-Via: ws://bshambaugh.rww.io:81
Triples: 17
Content-Length: 891
Content-Type: text/turtle

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<>
    a <http://www.w3.org/ns/ldp#BasicContainer>, <http://www.w3.org/ns/ldp#Container>, <http://www.w3.org/ns/posix/stat#Directory> ;
    <http://www.w3.org/ns/ldp#contains> <.acl>, <profile/>, <storage/> ;
    <http://www.w3.org/ns/posix/stat#mtime> 1412651193 ;
    <http://www.w3.org/ns/posix/stat#size> 4096 .

<.acl>
    a <http://www.w3.org/2000/01/rdf-schema#Resource> ;
    <http://www.w3.org/ns/posix/stat#mtime> 1412651193 ;
    <http://www.w3.org/ns/posix/stat#size> 577 .

<profile/>
    a <http://www.w3.org/ns/posix/stat#Directory> ;
    <http://www.w3.org/ns/posix/stat#mtime> 1412651156 ;
    <http://www.w3.org/ns/posix/stat#size> 4096 .

<storage/>
    a <http://www.w3.org/ns/posix/stat#Directory> ;
    <http://www.w3.org/ns/posix/stat#mtime> 1422986228 ;
    <http://www.w3.org/ns/posix/stat#size> 4096 .


But what about recursively pulling in child containers? A discussion on the marmotta users list tells me this is not supported by the Linked Data Platform standard.
 https://lists.apache.org/thread.html/Zbr0lhfsuf2z183 
In any case,, I tried this with wget in the same way I would target a normal web server. It does not appear to behave the same way.


wget -mkq -np -nH -D bshambaugh.rww.io http://bshambaugh.rww.io

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<>
    a <http://www.w3.org/ns/ldp#BasicContainer>, <http://www.w3.org/ns/ldp#Container>, <http://www.w3.org/ns/posix/stat#Directory> ;
    <http://www.w3.org/ns/ldp#contains> <.acl>, <profile/>, <storage/> ;
    <http://www.w3.org/ns/posix/stat#mtime> 1412651193 ;
    <http://www.w3.org/ns/posix/stat#size> 4096 .

<.acl>
    a <http://www.w3.org/2000/01/rdf-schema#Resource> ;
    <http://www.w3.org/ns/posix/stat#mtime> 1412651193 ;
    <http://www.w3.org/ns/posix/stat#size> 577 .

<profile/>
    a <http://www.w3.org/ns/posix/stat#Directory> ;
    <http://www.w3.org/ns/posix/stat#mtime> 1412651156 ;
    <http://www.w3.org/ns/posix/stat#size> 4096 .

<storage/>
    a <http://www.w3.org/ns/posix/stat#Directory> ;
    <http://www.w3.org/ns/posix/stat#mtime> 1422986228 ;
    <http://www.w3.org/ns/posix/stat#size> 4096 .

No comments:

Post a Comment