jena icon indicating copy to clipboard operation
jena copied to clipboard

try it! link

Open WolfgangFahl opened this issue 3 years ago • 3 comments

Version

Apache Jena Fuseki 4.3.1

Question

I'd like to use a try it button for queries as it is possible for some other RDF triplestores.

E.g.

With Fuseki i get an XML result by default. Would it be possible to get an HTML result or end up in the gui instead?

WolfgangFahl avatar Aug 01 '22 10:08 WolfgangFahl

To get HTML, use parameters in the URL request: ...&output=xml&stylesheet=%2Fxml-to-html.xsl

afs avatar Aug 01 '22 14:08 afs

@afs - thanks for the hint -

I am trying e.g: count of beer instances in wikidata

and hoped: beer instance count with styleseheet

would work but i get:

XML-Verarbeitungsfehler: Syntax-Fehler
Adresse: https://confident.dbis.rwth-aachen.de/xml-to-html.xsl
Zeile Nr. 1, Spalte 50:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
-------------------------------------------------^

WolfgangFahl avatar Aug 02 '22 06:08 WolfgangFahl

That's an HTML document - it says two lines further down <title>404 Not Found</title>.

https://confident.dbis.rwth-aachen.de/ is a gateway proxy (Apache httpd) so it will need to route the request to Fuseki and Fuseki will need to have that file in-place or the server have the file itself.

xml-to-html.xsl turns XML into HTML - e.g. at http://www.sparql.org/sparql.html

Example file: http://www.sparql.org/xml-to-html.xsl

No need to paste 60-70 line query string - any short SELECT query will work for getting setup.

afs avatar Aug 02 '22 07:08 afs