Thanks for the pointer.
(Won’t actually look at the ARC code at the moment, as it may be hard to comply
with Benji’s license.)
However, rather than being as clever as possible, somehow I thought I should
respect what the publisher said, so perhaps first Content-Type, then extension,
rather
Hi Hugh,
There is a trace option in rapper.
You can do something like :
jambi:~ mmt$ rapper --trace --guess http://mmt.me.uk/foaf.rdf lame.nt
rapper: Parsing URI http://mmt.me.uk/foaf.rdf with parser guess
rapper: Serializing with serializer ntriples
rapper: Processing URI
Hello Hugh!
Did you try EasyRDF?
http://code.google.com/p/easyrdf/
It was coded by Nicholas Humfrey from the BBC and has quite a lot of
cool features whilst being very lightweight - it also handles
cURL-ing/parsing for you.
Cheers,
y
On Mon, Jan 25, 2010 at 6:10 PM, Hugh Glaser
+1 for Moriarty, whether you're working with the Platform or not. Ian
and the other contributors have done a great job - personally I'd
start here before writing any new code.
My 2p worth :)
Tom.
2010/1/26 Ian Davis li...@iandavis.com:
You may find something useful in my Moriarty project:
Hugh,
The ARC2 parser has a built-in RDF format detector [1]. You might want to
look at the code to see how it's done.
Why not using the --guess option of rapper?
Steph.
[1] http://arc.semsol.org/docs/v2/parsing
On Wed, Jan 27, 2010 at 9:08 PM, Hugh Glaser h...@ecs.soton.ac.uk wrote:
On
You may find something useful in my Moriarty project:
http://code.google.com/p/moriarty/
It's geared towards the Talis Platform but there is a lot of code in
there that has no dependencies on the platform, e.g.:
http://code.google.com/p/moriarty/source/browse/trunk/httprequest.class.php
some
OK, here’s some fun for you...
(Excuse me if it has been discussed before, and just point me at it :-) )
Having struggled through the php manual for cURL, I have come up with the
following draft for getting an RDF document, given a URI.
$ch = curl_init();
Thanks mate.
On 25/01/2010 20:01, Mischa Tuffield mmt...@ecs.soton.ac.uk wrote:
Hi Hugh,
The code you posted seems sane to me. It is very similar to the php we use to
make sparql-queries. My only comment being that you probably want to have a
line which closes curl connection after you
Hi Hugh,
Been meaning to knock up a proper class for this for ages; here's one I
just made that should do the trick for you; supports GET POST + params
+ any headers you like (attached w/ example). Will flesh it out a bit
and create an open source documented class in the near future.
Hope it's
To add my 2 cents, with my PEAR hat on...
HTTP_Request2 - http://pear.php.net/package/http_request2
and
http://pear.php.net/manual/en/package.http.http-request2.intro.php
It's got a bunch of drivers (sockets, curl extension, mock for unit tests),
and is fairly solid.
10 matches
Mail list logo