Reputation: 189
Is there a way to change the default example queries in jena fuseki?
I'd like to include a set of sample queries for people to run during a demonstration without popping into another window to copy over the queries.
Upvotes: 1
Views: 187
Reputation: 11479
On Windows: %FUSEKI_HOME%\webapp\js\app\qonsole-config.js
:
/** Standalone configuration for qonsole on index page */
define( [], function() {
return {
prefixes: {
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"owl": "http://www.w3.org/2002/07/owl#",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
queries: [
{ "name": "Selection of triples",
"query": "SELECT ?subject ?predicate ?object\nWHERE {\n" +
" ?subject ?predicate ?object\n}\n" +
"LIMIT 25"
},
{ "name": "Selection of classes",
"query": "SELECT DISTINCT ?class ?label ?description\nWHERE {\n" +
" ?class a owl:Class.\n" +
" OPTIONAL { ?class rdfs:label ?label}\n" +
" OPTIONAL { ?class rdfs:comment ?description}\n}\n" +
"LIMIT 25",
"prefixes": ["owl", "rdfs"]
}
]
};
} );
Upvotes: 1