我真的很生气! 我需要使用rdf库为一个图创建一个查询。以下是查询:
queryCompetence = """prefix context: <http://www.ontologydesignpatterns.org/ont/mine/context.owl#>
select ?score where { <""" + \
str(elem) + """> context.hasProperty ?MyProperty. ?MyProperty ttt:hasScore ?score}."""
其中elem是URI。 我得到错误:“ParseException:Expected”}(在char 129处)(行:2, 列:51),对应于查询中元素URI的开头。 有人能帮我吗?你知道吗
这篇文章的作者找到了答案。问题是
context.hasProperty
应该是context:hasProperty
相关问题 更多 >
编程相关推荐