Mercurial > repos > shellac > sam_consensus_v3
diff env/lib/python3.9/site-packages/cwltool/rdfqueries/get_inner_edges.sparql @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/env/lib/python3.9/site-packages/cwltool/rdfqueries/get_inner_edges.sparql Mon Mar 22 18:12:50 2021 +0000 @@ -0,0 +1,50 @@ +PREFIX ArraySchema: <https://w3id.org/cwl/salad#ArraySchema/> +PREFIX CommandLineBinding: <https://w3id.org/cwl/cwl#CommandLineBinding/> +PREFIX CommandLineTool: <https://w3id.org/cwl/cwl#CommandLineTool/> +PREFIX CommandOutputBinding: <https://w3id.org/cwl/cwl#CommandOutputBinding/> +PREFIX Directory: <https://w3id.org/cwl/cwl#Directory/> +PREFIX Dirent: <https://w3id.org/cwl/cwl#Dirent/> +PREFIX DockerRequirement: <https://w3id.org/cwl/cwl#DockerRequirement/> +PREFIX EnumSchema: <https://w3id.org/cwl/salad#EnumSchema/> +PREFIX EnvVarRequirement: <https://w3id.org/cwl/cwl#EnvVarRequirement/> +PREFIX EnvironmentDef: <https://w3id.org/cwl/cwl#EnvironmentDef/> +PREFIX ExpressionTool: <https://w3id.org/cwl/cwl#ExpressionTool/> +PREFIX File: <https://w3id.org/cwl/cwl#File/> +PREFIX InlineJavascriptRequirement: <https://w3id.org/cwl/cwl#InlineJavascriptRequirement/> +PREFIX LinkMergeMethod: <https://w3id.org/cwl/cwl#LinkMergeMethod/> +PREFIX Parameter: <https://w3id.org/cwl/cwl#Parameter/> +PREFIX RecordSchema: <https://w3id.org/cwl/salad#RecordSchema/> +PREFIX ResourceRequirement: <https://w3id.org/cwl/cwl#ResourceRequirement/> +PREFIX ScatterMethod: <https://w3id.org/cwl/cwl#ScatterMethod/> +PREFIX SchemaDefRequirement: <https://w3id.org/cwl/cwl#SchemaDefRequirement/> +PREFIX SoftwarePackage: <https://w3id.org/cwl/cwl#SoftwarePackage/> +PREFIX SoftwareRequirement: <https://w3id.org/cwl/cwl#SoftwareRequirement/> +PREFIX Workflow: <https://w3id.org/cwl/cwl#Workflow/> +PREFIX cwl: <https://w3id.org/cwl/cwl#> +PREFIX dct: <http://purl.org/dc/terms/> +PREFIX ns1: <http://commonwl.org/cwltool#> +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> +PREFIX sld: <https://w3id.org/cwl/salad#> +PREFIX xml: <http://www.w3.org/XML/1998/namespace> +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> +PREFIX foaf: <http://xmlns.com/foaf/0.1/> + +# GET EDGES +SELECT DISTINCT ?source_label ?target_label ?source_step ?target_step ?target_ref_input ?output_ref ?workflow +WHERE { + ?workflow Workflow:steps ?step . + { + ?step cwl:in ?target_ref_input . + ?target_ref_input cwl:source ?output_ref . + ?source_step cwl:out ?output_ref . + ?source_step cwl:run ?source_step_node . + ?target_step cwl:in ?target_ref_input . + ?target_step cwl:run ?target_step_node . + OPTIONAL {?source_step_node rdfs:label ?source_label} . + OPTIONAL {?target_step_node rdfs:label ?target_label} . + } . + # root_graph is binded in python + FILTER(?workflow = ?root_graph) . +} +ORDER BY ?source_node ?target_node