/CSM-H-R

A Context Modeling Framework in Supporting Reasoning Automation of Interoperable Intelligent Systems and Privacy Protection

Primary LanguageJavaBSD 2-Clause "Simplified" LicenseBSD-2-Clause

CSM-H-R

A Context Modeling Framework in Supporting Reasoning Automation for Interoperable Intelligent Systems and Privacy Protection.

Steps to run an example

  1. According to the different input formats selected (Triple-RDF or Triple-HR), DomainInitialization.java or DomainInitializationHR.java can be run to initialize the domain and the context category information. In this implementation, we manually initialize the categories for testing purposes.
  2. BoomWithTripleListCSSM.java or BoomWithTripleListCASMhr.java can be run to build CSSM and CASM for mocked data from config/samplefile(X).json.
  3. After building a CSM file, such as casmfile_domain_4.json, VariousProbabilitiesUtil.java can be run to obtain a naive decision probability.

Steps to generate data for Triple-RDF

  1. context.utility.randomGenerator.java is targeting a file like samplefile1.txt.
  2. convert from text to JSON: context.convertion.ConvertFileToClassToJson targeting a file like samplefile2.json.

Steps to generate data for Triple-HR

PersonActivityGenerator.java targeting a file like samplefile2.json.

A detailed version of the CSM-H-R class diagram Image