在 fuseki 中编辑示例查询
edit example queries in fuseki
有没有办法更改 jena fuseki 中的默认示例查询?
我想包含一组示例查询,供人们在演示期间 运行 而无需跳转到另一个 window 来复制查询。
在 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"]
}
]
};
} );
有没有办法更改 jena fuseki 中的默认示例查询?
我想包含一组示例查询,供人们在演示期间 运行 而无需跳转到另一个 window 来复制查询。
在 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"]
}
]
};
} );