
xsparql.dblp.dblp-distinct.xsparql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xsparql-test-suite Show documentation
Show all versions of xsparql-test-suite Show documentation
XSPARQL compliance test suite
The newest version!
prefix foaf:
prefix dc:
(: get the authors that co-author publications with Axel Polleres:)
let $ds := for * from
where { $pub dc:creator [] }
construct {
{ for * from $pub where { $p dc:creator $o . }
construct { $p dc:creator $o } }
}
let $allauthors := for distinct $o from $ds where {$p dc:creator $o}
order by $o
return $o
for $auth at $auth_pos in $allauthors
for $coauth in $allauthors[position() > $auth_pos]
let $commonPubs :=
{ for $pub from $ds where { $pub dc:creator $auth, $coauth } return $pub }
where ($commonPubs > 0)
construct { [ :author1 $auth; :author2 $coauth; :commonPubs $commonPubs ] }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy