-
Notifications
You must be signed in to change notification settings - Fork 0
/
ORDER.txt
66 lines (55 loc) · 4.27 KB
/
ORDER.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Documentation to understand the order in which to read files :-
1) Inside Package owlapi -> app.java
Order in which to read functions :-
1) - generate
2) - generateOntology
3) - loadMainNecessaryThings
2) Inside Package owlapi.Features.BoilerplateCode -> Util.java
Order in which to read functions :-
1) - initializeGlobalHashMaps
2) - initialUserInputCount
3) - initialAxiomsCount
4) - randomizeMapping
IGNORE - readUserInputFile
3) Inside Package owlapi.Features.BoilerplateCode -> TextFileProcessor.java
Order in which to read functions :-
1) - readTxtFile
2) - rankAxioms
3) - loadGlobalCommons
4) - saveGlobalCommons
5) - insertIntoGlobalCommons
IGNORE insertIntoGlobalHashMaps for NOW.
4) Inside Package owlapi.Features.BoilerplateCode -> CommonFramework.java
Order in which to read functions :-
1) - addToOntology
2) - insertAxiomIntoOntology
IGNORE - filterGlobalHashMapConcepts
NOTE :-
* CommonFramework.java's "addToOntology" function corresponds to TextFileProcessor.java's "insertIntoGlobalCommons". They are functioning similar.
* CommonFramework.java's "insertAxiomIntoOntology" function corresponds to TextFileProcessor.java's "insertIntoGlobalHashMaps". They are functioning similar.
( A Bit To Difficult One To Understand, but if you are CLEAR till above, it could be easily understood with a of bit efforts. )
5) Inside Package owlapi.Features.BoilerplateCode -> LastDance.java
Order in which to read functions :-
1) - oneLastTime
2) - constructAxiomsHashMap
3) - addGlobalToOntologyDomainRange
4) - addGlobalToOntologySubOf ( especially ONLY this function )
6) - FilenameConstructMapping.java -> No need to go into details. Just skim it. What we are basically doing here,
For each category of constructs, we have defined its corresponding axiom 'txt' file and 'separator' used to PARSE the Axioms.
Because ALL Axioms 'txt' file is IN FORMAT :-
Term1 'SEPARATOR' Terms......... ( Could be from emty to 5 terms ).
There we are making these two Hashmaps
1) - fileMap ( key - constructName ( without Owl/Feature Term in them) , value - fileName to read axioms from )
2) - separatorMap ( key - constructName ( without Owl/Feature Term in them) , value - 'SEPARATOR' to parse the axiom in their 'txt' file )
7) - Reasoner.java -> This File Just Has Ma'am's Reasoning Logic Copy/Pasted , NO NEED To Read This File.
8) - owlapi.Features.Features -> This is the PACKAGE NAME, under which we have written Category JAVA Files.
For example :- ClassEnumerationcategory.java, ClassExpressionAxiomsCategory.java, DataRangesCategory.java like 8 files. "AssertionCategory.java" file IS NOT currently being used.
List of constructs UNDER EACH category java file is mentioned below.
In each method, we have written logic TO INSERT that CONSTRUCT into ONTOLOGY. In each method , we are taking ArrayList Of Terms ( Part Of Single Axiom ) As Argument.
ClassEnumerationcategory = {"OwlClass","ObjectComplement","ObjectIntersection","ObjectOneOf","ObjectUnionOf"};
ClassExpressionAxiomsCategory = {"AllDisjointClasses","DisjointUnion","DisjointWith","EquivalentClass","RdfsSubClassOf"};
ObjectPropertyAxiomCategory = {"AsymmetricProperty","EquivalentObjectProperty","FunctionalObjectProperty","InverseFunctionalProperty","InverseOfProperty","IrreflexiveProperty","ObjectPropertyDisjointWith","ReflexiveProperty","SymmetricProperty","TransitiveProperty","RdfsObjectDomain","RdfsObjectRange","PropertyChainAxiom","RdfsObjectSubPropertyOf","AllDisjointObjectProperties","ObjectProperty"};
ObjectPropertyRestrictinoCategory = {"ObjectAllValuesFrom","ObjectHasSelf","ObjectHasValue","ObjectSomeValuesFrom","ObjectQualifiedCardinality","ObjectMaxQualifiedCardinality","ObjectMinQualifiedCardinality"};
DataPropertyAxiomsCategory = {"AllDisjointDataProperties","EquivalentDataProperty","FunctionalDataProperty","DataPropertyDisjointWith","RdfsDataDomain","RdfsDataRange","RdfsDataSubPropertyOf"};
DataPropertyRestrictionCategory = {"DataAllValues","DataHasValue", "DataMaxQualifiedCardinality","DataMinQualifiedCardinality","DataQualifiedCardinality","DataSomeValuesFrom"};
DataRangesCategory = {"DataComplementOf","DataIntersectionOf", "DataOneOf","DataUnionOf"};