|
|
@@ -0,0 +1,49 @@
|
|
|
+group = "Service"
|
|
|
+name = "Conversion Function"
|
|
|
+prefix = '''
|
|
|
+PREFIX dtf: <https://ontology.rys.app/dt/function/>
|
|
|
+PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
|
|
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
|
+PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
|
|
|
+PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
|
+PREFIX art: <http://ua.be/drivetrain/description/artifacts/artifacts#>
|
|
|
+PREFIX tabular: <http://ua.be/sdo2l/vocabulary/base/tabular#>
|
|
|
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
|
|
|
+PREFIX ftg: <http://ua.be/sdo2l/vocabulary/ftg#>
|
|
|
+PREFIX base: <http://ua.be/sdo2l/vocabulary/base#>
|
|
|
+PREFIX vim4: <http://bipm.org/jcgm/vim4#>
|
|
|
+PREFIX comp: <http://ua.be/sdo2l/vocabulary/component#>
|
|
|
+PREFIX code: <http://ua.be/sdo2l/vocabulary/base/code#>
|
|
|
+PREFIX script: <http://ua.be/sdo2l/vocabulary/base/script#>
|
|
|
+PREFIX file: <http://ua.be/sdo2l/vocabulary/base/file#>
|
|
|
+PREFIX swrl: <http://www.w3.org/2003/11/swrl#>
|
|
|
+PREFIX traces: <http://ua.be/sdo2l/vocabulary/processtraces#>
|
|
|
+PREFIX wf: <http://ua.be/sdo2l/vocabulary/workflow#>
|
|
|
+PREFIX text: <http://ua.be/sdo2l/vocabulary/base/text#>
|
|
|
+PREFIX federation: <http://ua.be/sdo2l/vocabulary/federation#>
|
|
|
+PREFIX dftg: <http://ua.be/drivetrain/description/ftg#>
|
|
|
+'''
|
|
|
+query = '''
|
|
|
+SELECT ?conversion ?conversion_input ?conversion_output ?conversion_duration ?conversion_success WHERE {
|
|
|
+ BIND(dtf:conversion("{{ input_file }}", "{{ output_file }}") AS ?conversion)
|
|
|
+}
|
|
|
+'''
|
|
|
+q_wi_serivece = '''
|
|
|
+SELECT ?conversion ?conversion_input ?conversion_output ?conversion_duration ?conversion_success WHERE {
|
|
|
+ SERVICE <http://localhost:8000/> {
|
|
|
+ BIND(dtf:conversion("{{ input_file }}", "{{ output_file }}") AS ?conversion)
|
|
|
+ }
|
|
|
+}
|
|
|
+'''
|
|
|
+description = "Convert from one file format to another."
|
|
|
+visual_support = true
|
|
|
+
|
|
|
+[[replacements]]
|
|
|
+placeholder = "input_file"
|
|
|
+suggestion = "example.csv"
|
|
|
+description = ""
|
|
|
+
|
|
|
+[[replacements]]
|
|
|
+placeholder = "output_file"
|
|
|
+suggestion = "example.parquet"
|
|
|
+description = ""
|