
xsparql.dblp.dblp.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!
(: List the number of publications the co-authors of Axel Polleres share between them
This is currently restricted to publications Axel is an author :)
prefix foaf:
prefix dc:
(: $ds will contain all 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 } }
}
(: allauthors contains the distinct authors :)
let $allauthors := distinct-values(
for $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 := count(
{ 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