【发布时间】:2014-05-16 16:58:45
【问题描述】:
基本上我有一些数据,例如:
:student1 :hasAScore "4.1"
:student2 :hasAScore "2.7"
:student2 :hasBScore "2.1"
但在我的查询中,我想
select * where{
?a :hasAScore ?score1
?b :hasBScore ?score2
//bind ?score1 as ?score and bind ?score2 as ?score too, so they can be ranked by "order by"
} order by(?score)
基本上我是说我希望能够按分数对学生进行排名,分数可以是 AScore 或 BScore。无论如何我可以将 ?score1 和 ?score2 结合为 ?score 以便我可以按 ?score 排名
【问题讨论】:
标签: rdf sparql semantic-web