【发布时间】:2009-12-07 19:19:23
【问题描述】:
我正在对包含的文件运行 sparql 查询
<User rdf:about="#RJ">
<hasName rdf:datatype="http://www.w3.org/2001/XMLSchema#string">RJ</hasName>
</User>
我只想返回名称,即“RJ”,但是当我输入查询时
SELECT ?name
FROM <example.com>
WHERE {
assign:RJ assign:hasName ?name .
}
其中 assign 是我返回的正确命名空间:
"RJ" ^^<http://www.w3.org/2001/XMLSchema#string>
有人对如何删除 sparql noob 的 xml 模式类型有任何建议吗?
提前致谢
【问题讨论】:
标签: xsd rdf semantic-web sparql owl