explaination.ttl 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. @prefix : <http://example.org/explainability#> .
  2. @prefix dave-instances: <http://example.org/> .
  3. @prefix dave: <http://theme-e.adaptcentre.ie/dave#> .
  4. @prefix prov: <http://www.w3.org/ns/prov#> .
  5. @prefix dvex: <http://example.org/dvex#> .
  6. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
  7. @prefix foaf: <http://xmlns.com/foaf/0.1/>.
  8. @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
  9. :dataValueCalculation1 a dvex:DataValueCalculation ;
  10. prov:wasAssociatedWith [
  11. a foaf:Person ;
  12. foaf:givenName "Joe Doe" .
  13. ] .
  14. :explainableEntity a dvex:Explainability ;
  15. dvex:on dave-instances:25184a4c-aebb-49ec-81a7-9eaf56beb925-DataValue ;
  16. prov:wasGeneratedBy :dataValueCalculation1 ;
  17. prov:qualifiedGeneration :generation1 .
  18. # prov:wasInvalidatedBy (this may be used either when we have a new calculation or new observations)
  19. # prov:qualifiedInvalidation
  20. :generation1 a dvex:TraceableExplainability ;
  21. dvex:definedWeights :customWeight1 , :customWeight2 , :customWeight3 , :customWeight4 ; # even if customweight is 0, add it here
  22. dvex:observedMeasurements dave-instances:measurement1 , dave-instances:measurement5 ; # add all measurements observed
  23. dvex:generatedDataValue "75"^^xsd:integer ;
  24. prov:atTime "2019-06-22T00:00:00"^^xsd:dateTime ;
  25. prov:activity :dataValueCalculation1 .
  26. :customWeight1 a dvex:CustomWeight ;
  27. dvex:value "0.8"^^xsd:double ;
  28. dvex:for dave:Quality . # this will indicate whether the weight is set for dimension, metric group, or metric
  29. ####
  30. - Based on the current dimensions weights settings, Data Asset <name> has an overall data value of <overall_value>
  31. - The overall value is distributed over the following dimensions/<types> (types [granularity] should be found by querying DAVE)
  32. for all {
  33. - <dimension_name>: <weight>
  34. - <dimension_description>
  35. - The dimension weight share is equally [eventually this needs to be changed] split for the following metrics :
  36. - Metric : <metric_name>
  37. - <metric_description> (metric description should describe exactly how the metric is calculated)
  38. - Reading from DGC metadata : <metadata_reading>
  39. - Calculated metric value : <metric_value>. Value <increase_decrease> from previous observation (if there is a previous observation).
  40. }
  41. # dvex:TraceableExplainability rdfs:subClassOf prov:Generation
  42. # dvex:on rdfs:subPropertyOf prov:wasDerivedFrom
  43. # dvex:Explainability rdfs:subClassOf prov:Entity
  44. # dvex:DataValueCalculation rdfs:subClassOf prov:Activity