All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xsparql.dblp.dblp-distinct.xsparql Maven / Gradle / Ivy

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