[英]SPARQL query in Protege
I am trying to query my ontology through the Protégé Tool. 我试图通过Protégé工具查询我的本体。 But the result I am getting for my queries is "No Match Found". 但我得到的结果是“找不到匹配”。
My SPARQL query is given below. 我的SPARQL查询如下。
SELECT ?g
WHERE { ?g rdfs:subClassOf "#bomb" . }
Please can anyone tel me why am I getting the result as this. 请任何人都可以打电话给我,为什么我得到这样的结果。
Thanks in advance. 提前致谢。
The graph pattern 图形模式
?g rdfs:subClassOf "#bomb" .
tries to matche a statement with literal string " #bomb
". 尝试使用文字字符串“ #bomb
”来匹配语句。 Since the predicate is rdfs:subClassOf
, you probably want to match a class URI. 由于谓词是rdfs:subClassOf
,您可能希望匹配类URI。 So, change "#bomb"
to <your-full-uri-here>
. 因此,将"#bomb"
更改为<your-full-uri-here>
。
Protege 4 don't have support for SPARQL language. Protege 4不支持SPARQL语言。 Now you might use simples queries like that: 现在您可以使用这样的简单查询:
Person that hasChild some True 人士认为 hasChild 一些 真实
The result is a list of individuals that are father. 结果是父亲的个人名单。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.