123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- group = "Service"
- name = "Outlier 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#>
- '''
- query = '''
- SELECT ?outlier ?outlier_relation ?outlier_value WHERE {
- SERVICE <{{ service_endpoint }}> {
- SELECT ?outlier ?outlier_relation ?outlier_value WHERE {
- BIND(dtf:outlier("{{ outlier_file }}", "{{ outlier_column }}", "{{ outlier_artifact }}") AS ?outlier)
- }
- }
- }
- '''
- query_with_filter = '''
- SELECT ?outlier ?outlier_relation ?outlier_value WHERE {
- SERVICE <{{ service_endpoint }}> {
- SELECT ?outlier ?outlier_relation ?outlier_value WHERE {
- BIND(dtf:outlier("{{ outlier_file }}", "{{ outlier_column }}", "{{ outlier_artifact }}") AS ?outlier) .
- FILTER (?outlier_relation IN (tabular:holdsContent, tabular:hasRowPosition))
- }
- }
- }
- '''
- description = "Find an outlier in a tabular format."
- visual_support = true
- [[replacements]]
- placeholder = 'service_endpoint'
- suggestion = 'http://127.0.0.1:8000/'
- description = 'Which service do you want to use?'
- [[replacements]]
- placeholder = 'outlier_file'
- suggestion = 'rotation.csv'
- description = 'In which file is the outlier located?'
- [[replacements]]
- placeholder = 'outlier_column'
- suggestion = '2'
- description = 'In which column?'
- [[replacements]]
- placeholder = 'outlier_artifact'
- suggestion = '<http://ua.be/drivetrain/description/artifacts/artifacts#drivetrain-sensor-data-v1>'
- description = 'In which artifact?'
|