[英]edit example queries in fuseki
有没有办法更改 jena fuseki 中的默认示例查询?
我想包含一组示例查询,供人们在演示期间运行,而无需弹出另一个窗口来复制查询。
在 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"]
}
]
};
} );
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.