RE: [arc-dev] Query of a local RDF file
From: "J. Philip"
Subject: RE: [arc-dev] Query of a local RDF file
Date: Fri, 10 Jul 2009 18:38:28 -0800
Thanks, I don't need this for a real project, I am reading the book
Programming The Semantic Web where the examples are in Java and as I go
I try to implement the parts I can in PHP with arc as well.
Jacques
-----Original Message-----
From: Patrick Murray-John [mailto:pgosetti@umw.edu]
Sent: Friday, July 10, 2009 12:51 PM
To: arc-dev
Subject: Re: [arc-dev] Query of a local RDF file
In the past, I've tackled this in one of two ways...
If I know I'm going to want it in the ARC store, and if the file is
small enough, I've just copied it into ARC's endpoint with INSERT. Not
elegant, but does the job.
For general just querying around rdf files before I know I want them in
the store, I've often used Twinkle [1] . It's a java app that'll let
you query local files directly.
Patrick
[1] http://www.ldodds.com/projects/twinkle/
J.Philip wrote:
>
> Hello,
>
>
>
> Is it possible to query a local RDF file without having the data in
> MySql?
>
>
>
> I could parse the data and get the triples, but I did not find how to
> query it.
>
>
>
> One problem I ran into to parse a file on Window was that I had to use
> a full local URL like file://c:/data/myfile.owl
> <file:///c:%5Cdata%5Cmyfile.owl> because if I used just
> c:/data/myfile.owl or a relative path, PHP changed it into
> file://c:\data\myfile.owl <file:///c:%5Cdata%5Cmyfile.owl> which
> causes the parse_url function to fail.
>