Skip to content
Open
Changes from 1 commit
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
32943fb
add new module to pom
larry-gonzalez May 20, 2020
a1f2fed
Merge branch 'master' into positive-dependency
larry-gonzalez May 20, 2020
3686677
Merge branch 'master' into positive-dependency
larry-gonzalez May 25, 2020
2331438
initial commit on reliances
larry-gonzalez May 27, 2020
4222348
use expressions instead of impl.
larry-gonzalez May 31, 2020
fea8672
add instantiator class
larry-gonzalez May 31, 2020
ca40f06
datasets
larry-gonzalez Jul 21, 2020
563137a
first runable code
larry-gonzalez Jul 21, 2020
be8fa02
bug fix; add run experiments and kb transformer
larry-gonzalez Jul 29, 2020
0b4b72d
add graph class
larry-gonzalez Aug 21, 2020
9e81b3d
add test03
larry-gonzalez Aug 21, 2020
a00387c
debugging
larry-gonzalez Aug 21, 2020
639da92
code for experiments
larry-gonzalez Aug 21, 2020
10ac8c1
Merge branch 'master' into positive-dependency
larry-gonzalez Aug 21, 2020
f92fc2b
add getLiteral methods
larry-gonzalez Aug 21, 2020
96a8838
add getLiterals methods to rule api
larry-gonzalez Aug 21, 2020
e80d139
replace ArrayList with List
larry-gonzalez Aug 21, 2020
b34179c
delete unused imports
larry-gonzalez Aug 21, 2020
829985b
rename methods
larry-gonzalez Aug 21, 2020
15cbc5d
add missing condition; rename variables; update tests
larry-gonzalez Aug 21, 2020
4205995
d
larry-gonzalez Aug 24, 2020
c0af190
add chain experiment
larry-gonzalez Aug 27, 2020
c6c3704
merge master into positive-dependency; fix merge conflict
larry-gonzalez Sep 14, 2020
5679f1a
fix merge conflict
larry-gonzalez Sep 14, 2020
85dc2fd
fix pom version
larry-gonzalez Sep 15, 2020
59a8b9c
Merge branch 'master' into positive-dependency
larry-gonzalez Sep 25, 2020
b0980df
auoformating
larry-gonzalez Sep 29, 2020
8afb6f7
ordering input data files
larry-gonzalez Sep 29, 2020
3060907
ordering data
larry-gonzalez Sep 29, 2020
c346fa7
formating
larry-gonzalez Sep 29, 2020
6f0be8f
fix name error
larry-gonzalez Sep 29, 2020
b1ed97a
ordering
larry-gonzalez Sep 29, 2020
4b68ade
rename files
larry-gonzalez Sep 29, 2020
8207af1
add import
larry-gonzalez Sep 29, 2020
8f67434
Merge branch 'master' into reliances
larry-gonzalez Sep 29, 2020
dc8fec2
add class
larry-gonzalez Sep 29, 2020
7195a3b
Merge branch 'master' into reliances
larry-gonzalez Oct 1, 2020
32eb217
add javadoc; rename parameter
larry-gonzalez Nov 12, 2020
2146547
add test for Restraint
larry-gonzalez Nov 12, 2020
70e3c53
use auto formatting; add TODO note
larry-gonzalez Nov 12, 2020
5b08de6
improve java doc
larry-gonzalez Nov 12, 2020
c837719
Merge branch 'master' of https://bitbucket.org/larryjgonzalez/rulewer…
larry-gonzalez Nov 25, 2020
ca399e5
add tests
larry-gonzalez Nov 25, 2020
927a7ac
Larry loves Sara Al Nassir
larry-gonzalez Nov 25, 2020
dfa2e04
Merge branch 'reliances' of https://github.com/knowsys/rulewerk into …
larry-gonzalez Nov 25, 2020
37d0945
Merge branch 'reliances' of https://github.com/knowsys/rulewerk into …
larry-gonzalez Nov 26, 2020
59e2c78
add tests
larry-gonzalez Nov 26, 2020
602d6f1
rename function
larry-gonzalez Dec 1, 2020
5bb122b
rename Iterator class; use auto-indent
larry-gonzalez Dec 1, 2020
ef86d38
use utilities from Array to print containers
larry-gonzalez Dec 1, 2020
a5d6ae0
remove import warning
larry-gonzalez Dec 1, 2020
d4a6752
use better names
larry-gonzalez Dec 1, 2020
18a934f
use utility function to print array of ints
larry-gonzalez Dec 2, 2020
fd33e6c
rename unifier class
larry-gonzalez Dec 2, 2020
c03cc54
add Assignment class; rename some methods; better codding of iterators
larry-gonzalez Dec 2, 2020
fc76c6b
use better names
larry-gonzalez Dec 2, 2020
c7f0d68
create class Match; use Match class in Assignment
larry-gonzalez Dec 2, 2020
c1d387a
add documentation; improve attribute names
larry-gonzalez Dec 2, 2020
eac6f78
use better names
larry-gonzalez Dec 2, 2020
eaad1d7
improve martelli montanari unifier algorithm; use better names; split…
larry-gonzalez Dec 2, 2020
cfd673a
add option to rename only universal vars
larry-gonzalez Dec 2, 2020
096fb73
improve toString method
larry-gonzalez Dec 2, 2020
37ff605
supress warning
larry-gonzalez Dec 2, 2020
e09dd9e
improve toString method
larry-gonzalez Dec 2, 2020
7768bf9
improve variable names
larry-gonzalez Dec 2, 2020
0d6614a
improve variable names
larry-gonzalez Dec 2, 2020
8007199
fix name error
larry-gonzalez Dec 2, 2020
eb5763a
add javadoc
larry-gonzalez Dec 3, 2020
5532243
simplification of the unifier algorithm;
larry-gonzalez Dec 3, 2020
6d4af0d
simplification of new variable names
larry-gonzalez Dec 3, 2020
d582779
improve names
larry-gonzalez Dec 3, 2020
739693c
use new method name
larry-gonzalez Dec 3, 2020
e6dec7b
add simple implementation of a BCQ
larry-gonzalez Dec 3, 2020
e15f0a0
add class to compute self restraining relation
larry-gonzalez Dec 3, 2020
1e4923d
add method for SBCQ
larry-gonzalez Dec 3, 2020
c242f45
remove duplicated tests; fix test errors; use better names
larry-gonzalez Dec 3, 2020
94cd016
comment printlns
larry-gonzalez Dec 3, 2020
ac3a508
add implementation of restraint relation
larry-gonzalez Dec 3, 2020
6a77f19
add license headers
larry-gonzalez Dec 3, 2020
9337f44
use autoformatting
larry-gonzalez Dec 4, 2020
bd1a647
ordering; add javadoc
larry-gonzalez Dec 4, 2020
a12c798
use {@code splitter} instead of string
larry-gonzalez Dec 4, 2020
4aaba10
add missing case; comment two failing tests; fix test
larry-gonzalez Dec 4, 2020
160b266
add missing functionality
larry-gonzalez Dec 4, 2020
1a44164
cleanning code
larry-gonzalez Dec 4, 2020
b9e1a5a
use autoformating
larry-gonzalez Dec 4, 2020
8fb5992
use autoformating
larry-gonzalez Dec 4, 2020
83b00db
add class Piece to core; add new module rulewerk-utils
larry-gonzalez Dec 4, 2020
55b824e
remove module rulewerk-utils; create package inside core with its fun…
larry-gonzalez Dec 4, 2020
f43f41a
improve {@code RuleImplTest}
larry-gonzalez Dec 4, 2020
6d1c658
add single test for getPieces
larry-gonzalez Dec 4, 2020
c114258
remove print; add test
larry-gonzalez Dec 4, 2020
25c432a
getPieces return set of pieces instead of list
larry-gonzalez Dec 4, 2020
142219a
bug fix: reachable nodes include starting node
larry-gonzalez Dec 4, 2020
4cea656
add tests
larry-gonzalez Dec 4, 2020
4749ac5
remove print
larry-gonzalez Dec 4, 2020
18f6806
remove print
larry-gonzalez Dec 4, 2020
3b03c01
merge pieces into reliances
larry-gonzalez Dec 7, 2020
d7a2b0e
add SelfRestraintTest
larry-gonzalez Dec 7, 2020
7f6575d
fixing merge
larry-gonzalez Dec 7, 2020
ef55f5f
add initial cases
larry-gonzalez Dec 7, 2020
48bceb3
implement code for detecting unconnected pieces
larry-gonzalez Dec 7, 2020
771d0b1
Merge branch 'pieces' into reliances
larry-gonzalez Dec 7, 2020
f3a288c
add initial case; drop prints; add TODOs
larry-gonzalez Dec 7, 2020
885abff
bug fix: condition for datalog rule; remove prints; add TODOs
larry-gonzalez Dec 7, 2020
964edbd
ordering tests
larry-gonzalez Dec 7, 2020
ba326a3
code implementation for rule restraining relation
larry-gonzalez Dec 7, 2020
85b74de
add TODO
larry-gonzalez Dec 7, 2020
d62a47c
refactoring
larry-gonzalez Dec 7, 2020
035a1b1
add new constructor
larry-gonzalez Dec 7, 2020
2187d36
add new filter
larry-gonzalez Dec 7, 2020
77050e2
refactoring
larry-gonzalez Dec 7, 2020
059e7b4
remove print
larry-gonzalez Dec 7, 2020
0f84e6e
add tests; fix test error
larry-gonzalez Dec 7, 2020
abcdb54
add new functional code
larry-gonzalez Dec 7, 2020
4ecd58b
add helper class
larry-gonzalez Dec 7, 2020
4885330
fix test
larry-gonzalez Dec 7, 2020
40c391f
add licence header
larry-gonzalez Dec 7, 2020
39dc238
add licence header
larry-gonzalez Dec 7, 2020
48bb1d6
add licence header
larry-gonzalez Dec 7, 2020
e2d20a0
move code for experiments into another branch
larry-gonzalez Dec 7, 2020
d11e1d7
code refactoring
larry-gonzalez Dec 7, 2020
6b234b1
add rulewerk-reliances dependency into coverage module
larry-gonzalez Dec 7, 2020
1574d5d
spacing
larry-gonzalez Dec 7, 2020
71de944
rename tests
larry-gonzalez Dec 7, 2020
2b96f18
implement order preserving in getPieces; use collector functionality
larry-gonzalez Dec 7, 2020
1f11bfc
fix spacing
larry-gonzalez Dec 7, 2020
f876465
Merge branch 'pieces' into reliances
larry-gonzalez Dec 7, 2020
0ed0131
code factoring
larry-gonzalez Dec 7, 2020
40ab552
delete unused method; code simplification
larry-gonzalez Dec 7, 2020
3ace853
code factorization
larry-gonzalez Dec 8, 2020
21425ca
remove comments
larry-gonzalez Dec 8, 2020
3aca822
add javadoc; use better name
larry-gonzalez Dec 8, 2020
624185e
return all subsets in SubsetIterator
larry-gonzalez Dec 8, 2020
a528169
fix typo
larry-gonzalez Dec 8, 2020
24c4e57
add hashCode and equals to Assignment and Match
larry-gonzalez Dec 8, 2020
5222a24
improve conditions; remove duplicated code; add test
larry-gonzalez Dec 8, 2020
1a7137a
uncomment test
larry-gonzalez Dec 8, 2020
d20a708
clean comments
larry-gonzalez Dec 8, 2020
5244a44
add test
larry-gonzalez Dec 8, 2020
67d0999
refactoring
larry-gonzalez Dec 8, 2020
0cf55a3
add tests
larry-gonzalez Dec 8, 2020
f2d6f6d
code simplification
larry-gonzalez Dec 8, 2020
6a2a5f5
code simplification
larry-gonzalez Dec 8, 2020
acd160f
delete unused imports
larry-gonzalez Dec 8, 2020
0f2f65c
fix spacing
larry-gonzalez Dec 8, 2020
a14701d
add tests
larry-gonzalez Dec 8, 2020
a034b4e
delete dead code
larry-gonzalez Dec 8, 2020
fa319ac
add missing cases
larry-gonzalez Dec 8, 2020
df0897d
add doc
larry-gonzalez Dec 8, 2020
a85b62e
add documentation; add tests; code simplification
larry-gonzalez Dec 8, 2020
358b721
improve sufix renaming; bug fix: remove condition on unconnected pieces
larry-gonzalez Dec 14, 2020
612733b
add two more tests
larry-gonzalez Dec 14, 2020
434dab1
code simplification
larry-gonzalez Dec 14, 2020
c3c4784
add missing test; restore code
larry-gonzalez Dec 14, 2020
e9c7b2f
rename test
larry-gonzalez Dec 14, 2020
b46e849
add optimization condition
larry-gonzalez Dec 14, 2020
e077272
add optimization condition
larry-gonzalez Dec 14, 2020
eac8070
use streams; add javadoc
larry-gonzalez Jan 5, 2021
a088d16
use better names; add auxiliary methods; improve code quality
larry-gonzalez Jan 7, 2021
307c9b6
improve order and comments; clean code; use better names
larry-gonzalez Jan 12, 2021
709cf46
rename files
larry-gonzalez Jan 19, 2021
aacf071
work on the math package; organize classes and code; use better names
larry-gonzalez Jan 19, 2021
9e9931e
add empty classes for testing the math package
larry-gonzalez Jan 19, 2021
9487967
ordering files
larry-gonzalez Jan 19, 2021
6c8952a
package ordering; use better names
larry-gonzalez Jan 19, 2021
50a9d1f
package ordering; use better names;
larry-gonzalez Jan 19, 2021
d4874a6
delete old file
larry-gonzalez Jan 19, 2021
ffe5095
classes and code ordering; use better names
larry-gonzalez Jan 19, 2021
cba40e6
remove file from tracked files
larry-gonzalez Jan 19, 2021
5c51f2b
add test
larry-gonzalez Jan 19, 2021
480d816
rename test files
larry-gonzalez Jan 29, 2021
b4d8a1c
return PositiveLiteral instead of Literal in Rule.getPositiveBodyLite…
larry-gonzalez Jan 29, 2021
3471ad3
re-implementation of PartialMapping classes
larry-gonzalez Feb 23, 2021
2f59f25
throw ParseException when the same variable name is used in a single …
larry-gonzalez Feb 25, 2021
c6e6c00
add default methods isExistentialVariable and isUniversalVariable
larry-gonzalez Feb 25, 2021
9119830
improve names; ordering; add todo; add one test
larry-gonzalez Feb 26, 2021
3017a39
create empty class; add todo
larry-gonzalez Feb 26, 2021
92a04c1
ordering
larry-gonzalez Mar 1, 2021
778fa53
create Unifier interface
larry-gonzalez Mar 1, 2021
99481ac
delete UnifierBasedVariableRenamer class. Use Substitution class instead
larry-gonzalez Mar 1, 2021
aaf1479
create Substitution class; create empty SubstitutionTest class
larry-gonzalez Mar 1, 2021
e842a7c
add todo
larry-gonzalez Mar 1, 2021
28d48e9
improve ordering; delete depreceted method; update tests
larry-gonzalez Mar 1, 2021
0a3c7c3
remove unused validators
larry-gonzalez Mar 1, 2021
bfcde2a
add missing condition for negated literals
larry-gonzalez Mar 2, 2021
9a09af6
create RespectingUnifier class and RespectingUnifierTest
larry-gonzalez Mar 2, 2021
ba2e772
extend methods
larry-gonzalez Mar 3, 2021
f9786e9
add TODOs; improve names; improve code quality
larry-gonzalez Mar 3, 2021
02d5462
fix imports
larry-gonzalez Mar 3, 2021
816b397
add licenses
larry-gonzalez Mar 3, 2021
ab65a6b
add license; change class name
larry-gonzalez Mar 3, 2021
6bff75e
use Validate instead of assert
larry-gonzalez Mar 3, 2021
b76a8f3
make class public
larry-gonzalez Mar 3, 2021
e8aeea8
make class public
larry-gonzalez Mar 3, 2021
a0c28ae
add empty class
larry-gonzalez Mar 3, 2021
11a1de3
add tests; improve code
larry-gonzalez Mar 3, 2021
7ff35fe
update code; improve names, todos
larry-gonzalez Mar 3, 2021
abf7c35
improve comments
larry-gonzalez Mar 3, 2021
67fc952
add tests for RuleUtil.isRuleApplicable
larry-gonzalez Mar 3, 2021
7016ce8
add todos
larry-gonzalez Mar 3, 2021
fe71ad9
extend MartelliMontanariUnifier
larry-gonzalez Mar 3, 2021
0478c18
extend constructor
larry-gonzalez Mar 3, 2021
0aab3d3
drop old commented code
larry-gonzalez Mar 4, 2021
ecd58c9
do not replace universals with existentials in substitution
larry-gonzalez Mar 4, 2021
120b3fc
update TODOs; ordering code
larry-gonzalez Mar 4, 2021
59cc58d
working reliance code
larry-gonzalez Mar 4, 2021
31d3a73
add missing condition; update code
larry-gonzalez Mar 4, 2021
66b3362
improve methods
larry-gonzalez Mar 4, 2021
81ffb54
add todo
larry-gonzalez Mar 4, 2021
7c8f3a3
add tests
larry-gonzalez Mar 4, 2021
490f845
add Term.isNull() default method
larry-gonzalez Apr 29, 2021
cc1759b
delete mapping class files, respectingunifier class files; rename BCQ…
larry-gonzalez May 27, 2021
c9992ed
delete respecting unifier test class
larry-gonzalez May 27, 2021
490ee97
add slf4j-log4j12 dependency in rulewerk-reliance; delete rulewerk-ow…
larry-gonzalez May 27, 2021
7babe82
improve unification and substitution code
larry-gonzalez May 27, 2021
856b720
add recursive implementation for positive reliance
larry-gonzalez May 27, 2021
a83ed85
delete unused file
larry-gonzalez May 27, 2021
f4ddbbf
improve code on RuleUtils
larry-gonzalez May 27, 2021
2e17185
add tests
larry-gonzalez May 27, 2021
3fae9db
ordering code
larry-gonzalez May 27, 2021
f083ee3
rename file
larry-gonzalez May 27, 2021
a21fed5
add Transform class
larry-gonzalez May 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
d
  • Loading branch information
larry-gonzalez committed Aug 24, 2020
commit 42059951365e852c19c4a3f242bce6220cd0a7f8
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ static private void print(long[] array) {
System.out.println(content);
}

// not stratifiable.
// not stratifiable. Is it?
static private void chasingSets() throws ParsingException, IOException {
String base = "/home/lgonzale/ontologies/chasing-sets/";
// normal
long first[] = new long[10];
long second[] = new long[10];
for (int i = 0; i < 10; i++) {
for (int i = 0; i < 1; i++) {
first[i] = materialize(base + "original/rules.rls", base + "original/data.lp", base + "logs/data-ori.log");
System.out.println(first[i]);
second[i] = materialize(base + "transformed/rules.rls", base + "transformed/data.lp",
Expand Down Expand Up @@ -239,11 +239,11 @@ static private void hamiltonianPowerLaw() throws ParsingException, IOException {
}

public static void main(final String[] args) throws IOException, ParsingException {
// chasingSets(); // error in c? - it was non stratifiable
// crossword(); // it was non stratifiable
// threeColErdos();
// threeColPowerLaw();
// hamiltonianErdos(); // it was not stratifiable
hamiltonianPowerLaw(); // it was not stratifiable
// chasingSets(); // error in c?
// crossword(); // slower with our transformation. more rule executions also
// threeColErdos(); // better with big graphs
// threeColPowerLaw(); // better only in special cases
// hamiltonianErdos(); // slower
// hamiltonianPowerLaw(); // slower
}
}