On Wednesday 31 December 2008 00:58:33 you wrote:
> It seems to me that the problem is not in DESCRIBE but in the browser
> that is unable to render an RDF/XML so it displays an empty page.
Err, if that was the case, it would be extremely embarrassing :-)
> The
> problem is that SPARQL web service protocol do not allow returning of
> result of DESCRIBE as an HTML. I've tried your endpoint and found that
>
> DESCRIBE ?uri WHERE { ?g a
> <http://msone.computas.no/graphs/vocab/mediasone#InstanceGraph> .
> GRAPH ?g { ?uri <http://www.computas.com/mediasone#coverArt>
> <http://ruby3.computas.no/covers/nfi/48739.jpg> . } }
>
> actually returns the proper result but the browser may show a white page if
> "Display Results As" dropdown is set to HTML.
Actually, that's not the correct result. That happens because some triples
have been entered into the "default default" graph. If the default graph URI
is set to http://msone.computas.no/graphs/ which is a graph that contains the
graph names, it returns "# Empty TURTLE".
BTW, I have written a simple test framework with Perl (Test::More and
RDF::Redland), which tests if one gets the expected result from a query:
https://submarine.computas.com/mediasone-maven/trunk/backend/src/test/perl/testqueries.pl
To use this, you just put a query into a filename.rq and the expected result
into filename.ttl ("filename" must be the same) and the you run the script on
the directory where the files are. So, I'm not just testing with a
browser :-)
Kind regards
Kjetil Kjernsmo
--
Senior Knowledge Engineer
Mobile: +47 986 48 234
Email: [email protected]
Web: http://www.computas.com/
| SHARE YOUR KNOWLEDGE |
Computas AS PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783
1001