Accurate Design Pattern Detection Based on Idiomatic Implementation Matching in Java Language Context
收藏资源简介:
本数据集用于精确检测基于Java语言上下文中惯用实现匹配的设计模式。数据集结构包括分层知识图(LKG)、生成的本体、评估结果和SparT的截图。LKG包含本体模型、推理规则、模式模板和词汇描述。生成的本体包括JHotDraw、JUnit等系统的本体。评估结果包括检测到的模式实例和运行时性能统计。
This dataset is designed for the precise detection of design patterns based on idiomatic implementation matches within Java language contexts. The dataset structure includes a Layered Knowledge Graph (LKG), generated ontologies, evaluation results, and screenshots of SparT. The LKG encompasses ontology models, inference rules, pattern templates, and lexical descriptions. The generated ontologies include those of systems such as JHotDraw and JUnit. The evaluation results comprise detected pattern instances and runtime performance statistics.
数据集概述
1. 数据集结构
-
a. Layered Knowledge Graph (LKG):
- Ontology Models (*.owl)
- Inference Rules (Java.qrules, Java.StaticBehavior.qules)
- Pattern Templates (Java.DesignPattern.qrules)
- Description of Vocabularies.pdf
-
b. Generated Ontologies:
- 针对JHotDraw, JUnit, JRefactory, QuickUML, PMD的推断生成的本体。
-
c. Evaluation Results:
- Pattern Instances Detected by RaM, DPD, DPF and SparT.pdf
- Statistics on Pattern Instances Detected by RaM, DPD, DPF and SparT.pdf
- Statistics on Runtime Performance of SparT.pdf
-
d. Screenshots of SparT:
- Fig.a Pattern Detection.png
- Fig.b Ontology Browser.png
- Fig.c SPARQL Query.png
- Fig.d Ontology Trace.png
-
Readme.txt
2. 数据浏览方式
- ".qrules" 文件为纯文本,可用任意文本查看器打开。
- ".owl" 文件为RDF/XML语法文本,推荐使用Protégé或文本查看器打开。
- 通过 "Pattern Instances Detected by RaM, DPD, DPF and SparT.pdf" 或使用Protégé浏览Generated Ontologies目录中的本体,可查看SparT检测到的实例。
3. 数据集详细描述
-
3.1 Layered Knowledge Graph:
- 使用Protégé开发的Ontology Models (*.owl)。
- 基于SPARQL更新语言的Inference Rules和Pattern Templates (.qrules)。
- 通过SHA1签名结合关键角色名称唯一标识Pattern Instances。
- Description of Vocabularies.pdf 描述了每个本体模型中的词汇(本体类和属性)。
-
3.2 Generated Ontologies:
- 包含从源代码提取的信息、推断的知识和检测结果。
- 由Ontology Generator自动生成,并由推理引擎推断。
-
3.3 Evaluation Results:
- 包含对每个评估系统和设计模式的实例报告的详细调查、统计以及SparT的运行时性能统计。
-
3.4 Screenshots of SparT:
- 包含SparT设计模式检测子系统的截图,展示了LKG的构建、检测结果的存储以及三种浏览本体的方式:Ontology Browser, SPARQL Query, Ontology Trace。




