Open
Description
For instance using this naive SPARQL that finds workflows using the same docker images:
PREFIX cwl: <https://w3id.org/cwl/cwl#>
PREFIX docker: <https://w3id.org/cwl/cwl#DockerRequirement/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?g2 (COUNT(?image2NoVersion) AS ?c)
WHERE {
BIND(<http://sparql:3030/cwlviewer/github.com/genome/cancer-genomics-workflow/blob/202b43b7449485a317c857d62ca7d39196764e65/varscan/bgzip_and_index.cwl> AS ?g1)
GRAPH ?g1 {
[] docker:dockerPull ?image1 .
BIND (REPLACE (?image1, ":.*", "") AS ?image1NoVersion)
}
GRAPH ?g2 {
[] docker:dockerPull ?image2 .
BIND (REPLACE (?image2, ":.*", "") AS ?image2NoVersion)
}
FILTER (?g1 != ?g2)
FILTER (?image1NoVersion = ?image2NoVersion)
}
GROUP BY ?g2
ORDER BY DESC(?c)
Gives with ranking: