|
From: Eric Prud'h. <er...@w3...> - 2011-01-16 18:29:18
|
* Eric Prud'hommeaux <er...@w3...> [2011-01-16 12:59-0500]
> * Andrea Splendiani <and...@bb...> [2011-01-16 14:45+0000]
> > Hi,
> >
> > now it works, though at times I had some strange error where in the logs you see some binary blurp (like an image). But that's not so common and reproducible, may be something else around the system.
>
> Is that only when you have --debug enabled?
> If so, it's probably your web browser asking for the favicon and the
> server responding with a silly "mr yuck" face.
>
>
> > a question: is there a way to serve some file through the same http server which serves sparql ?
> > I would need a crossdomain.xml file for flash!
>
> It would be pretty trivial to hack the source to do that (I could help there).
> I'd like to add this functionality in general, but I haven't worked out the packaging issues. Specifically, I'd like to take the favicon and the generated HTML at the root out and put them into the filesystem somewhere. Issues:
> where's that somewhere and how does the executable find it? (it should have a convenient zero-config behavior)
> what's the interaction between named graphs and the filesystem? GET and PUT of some named graph has nice behaviors now; should they be shadowed in the filesystem?
>
> TimBL's leaning on me for the filesystem shadow. I have to write some serializers to make it work.
I forgot to add, there's another possible strategy here, which is to make the sparql executable also be an apache module, leaning on apache for the generic file serving and registering a handler which takes a partition of the web space for named graphs with relative names (e.g. "tree/and/leaf" vs. "/root/tree/and/leaf" or "http://server/root/tree/and/leaf"). I have no idea how easy it is to compile a .so (or .dynlib) for one version of apache and run it on another.
> > ciao,
> > Andrea
> >
> > Il giorno 16/gen/2011, alle ore 04.42, Eric Prud'hommeaux ha scritto:
> >
> > > * Andrea Splendiani <and...@bb...> [2011-01-15 17:30+0000]
> > >> Hi,
> > >>
> > >> I was trying to use the SWObjects that you (tele)presented at the SWAT4LS tutorial in December.
> > >>
> > >> I have a few problems, perhaps I'm getting something wrong:
> > >>
> > >> So, I'm starting a Sparql server with the following command:
> > >>
> > >> ./Sparql --debug 2 -npm /Users/andreasplendiani/Dropbox/WorkingProjects/PhiBase2/phibaseRDFMap.mp --serve http://localhost:8200/SPARQL -i /Users/andreasplendiani/Dropbox/WorkingProjects/PhiBase2/d2r-server-0.7/PhiBaseRDFv003.n3
> > >>
> > >> The maps is something as:
> > >>
> > >> CONSTRUCT
> > >> {
> > >> ?gene <http://www.test.org/causativeOf> ?specGene
> > >> }
> > >> WHERE {
> > >> ?specGene <http://localhost:8180/phibase/hasReferenceGene> ?gene
> > >> }
> > >>
> > >> When I query the endpoint, I get:
> > >>
> > >> (endpoint result):
> > >>
> > >> Q&D SPARQL Server Error
> > >>
> > >> SELECT ?x ?y ?z
> > >> where {?x ?y ?z}
> > >>
> > >> yeilded
> > >>
> > >> failed to match triples prefixed by "!" in
> > >> SELECT ?x ?y ?z
> > >> WHERE
> > >> {
> > >> ! ?x ?y ?z .
> > >> }
> > >
> > > that version didn't support wildcard predicates over mapped rules. could you try the latest?
> > >
> > >> (log):
> > >>
> > >> 127.0.0.1 - - [2011-00-15T17:23:00]"GET /favicon.ico 1.1" 200 620
> > >> GET /favicon.ico HTTP/1.1
> > >> Host: 127.0.0.1:8200
> > >> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
> > >> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> > >> Accept-Language: en-us,en;q=0.5
> > >> Accept-Encoding: gzip,deflate
> > >> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> > >> Keep-Alive: 115
> > >> Connection: keep-alive
> > >> Cookie: __utma=96992031.761815913.1280272954.1288624527.1291566200.4; __utmz=96992031.1280272954.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
> > >>
> > >>
> > >> HTTP/1.0 200 OK
> > >> Content-Type: image/x-icon
> > >>
> > >> ?PNG
> > >>
> > >> (then binary blurp).
> > >>
> > >> Not sure what's going on, any idea ?
> > >> Same things if I try via SERVICE (instead of actually pointing to a local dataset, which I suspect is not read)
> > >>
> > >> Is there a mailing list for SWObjects ?
> > >>
> > >> ciao,
> > >> Andrea
> > >>
> > >>
> > >>
> > >> Andrea Splendiani
> > >> Senior Bioinformatics Scientist
> > >> Centre for Mathematical and Computational Biology
> > >> +44(0)1582 763133 ext 2004
> > >> and...@bb...
> > >>
> > >>
> > >>
> > >
> > > --
> > > -ericP
> >
> > Andrea Splendiani
> > Senior Bioinformatics Scientist
> > Centre for Mathematical and Computational Biology
> > +44(0)1582 763133 ext 2004
> > and...@bb...
> >
> >
> >
>
> --
> -ericP
--
-ericP
|