Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Willms
hfc
Commits
68eb49f9
Commit
68eb49f9
authored
May 22, 2018
by
Bernd Kiefer
Browse files
clean up dependencies
parent
822fb4a5
Changes
123
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
68eb49f9
...
...
@@ -115,12 +115,6 @@
<version>
3.1.3
</version>
</dependency>
<dependency>
<groupId>
commons-logging
</groupId>
<artifactId>
commons-logging
</artifactId>
<version>
1.0.2
</version>
</dependency>
<dependency>
<groupId>
jline
</groupId>
<artifactId>
jline
</artifactId>
...
...
@@ -128,17 +122,11 @@
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
<version>
3.5
</version>
<groupId>
log4j
</groupId>
<artifactId>
log4j
</artifactId>
<version>
1.2.17
</version>
</dependency>
<dependency>
<groupId>
log4j
</groupId>
<artifactId>
log4j
</artifactId>
<version>
1.2.17
</version>
</dependency>
<dependency>
<groupId>
net.sf.trove4j
</groupId>
<artifactId>
trove4j
</artifactId>
...
...
@@ -153,26 +141,4 @@
</dependency>
</dependencies>
<repositories>
<repository>
<id>
FORSCHUNGSSOFTWARE
</id>
<name>
FORSCHUNGSSOFTWARE
</name>
<url>
http://www.forschungssoftware.de/nexus/content/groups/public/
</url>
</repository>
</repositories>
<distributionManagement>
<snapshotRepository>
<id>
FORSCHUNGSSOFTWARE
</id>
<name>
FORSCHUNGSSOFTWARE
</name>
<url>
http://www.forschungssoftware.de/nexus/content/repositories/snapshots/
</url>
</snapshotRepository>
<repository>
<id>
FORSCHUNGSSOFTWARE
</id>
<name>
FORSCHUNGSSOFTWARE
</name>
<url>
http://www.forschungssoftware.de/nexus/content/repositories/releases/
</url>
</repository>
</distributionManagement>
</project>
src/main/java/de/dfki/lt/hfc/IndexLookup.java
View file @
68eb49f9
...
...
@@ -7,7 +7,6 @@ import gnu.trove.set.hash.TCustomHashSet;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Set
;
import
org.apache.commons.lang3.ArrayUtils
;
import
org.apache.log4j.Level
;
import
org.apache.log4j.LogMF
;
import
org.apache.log4j.Logger
;
...
...
@@ -48,7 +47,7 @@ public class IndexLookup {
QRelation
r
)
{
this
.
tupleStore
=
tupleStore
;
this
.
index
=
index
;
this
.
clause
=
Array
Utils
.
toPrimitive
(
clause
.
toArray
(
new
Integer
[
clause
.
size
()])
);
this
.
clause
=
Utils
.
toPrimitive
(
clause
);
this
.
indexedPosition
=
this
.
indexedPositionEnd
=
position
;
this
.
relation
=
r
;
}
...
...
@@ -67,7 +66,7 @@ public class IndexLookup {
QRelation
r
)
{
this
.
tupleStore
=
tupleStore
;
this
.
index
=
index
;
this
.
clause
=
Array
Utils
.
toPrimitive
(
clause
.
toArray
(
new
Integer
[
clause
.
size
()])
);
this
.
clause
=
Utils
.
toPrimitive
(
clause
);
this
.
indexedPosition
=
position_start
;
this
.
indexedPositionEnd
=
position_end
;
this
.
relation
=
r
;
...
...
src/main/java/de/dfki/lt/hfc/Query.java
View file @
68eb49f9
...
...
@@ -4,7 +4,6 @@ import java.util.*;
import
de.dfki.lt.hfc.qrelations.QRelation
;
import
de.dfki.lt.hfc.qrelations.QRelationFactory
;
import
org.apache.commons.lang3.ArrayUtils
;
...
...
@@ -442,6 +441,7 @@ private boolean parseSelect(StringTokenizer st, HashSet<String> projectedVars)
aggregateClauses
.
add
(
aggregate
);
}
/**
* maps surface WHERE form to internal representation. Further handles the internalization of
* relations and intervals, In case there are relations or intervals, two cases have to be
...
...
@@ -536,7 +536,7 @@ private boolean parseSelect(StringTokenizer st, HashSet<String> projectedVars)
createPattern
=
tupleStore
.
indexStore
.
prepareLookup
(
clause
,
idToRelation
,
lkps
,
relationsToBeRewritten
);
}
if
(!
activeIndex
||
!
relationsToBeRewritten
.
isEmpty
()
||
createPattern
)
{
patterns
.
add
(
Array
Utils
.
toPrimitive
(
clause
.
toArray
(
new
Integer
[
clause
.
size
()])
));
patterns
.
add
(
Utils
.
toPrimitive
(
clause
));
}
}
for
(
QRelation
relation
:
new
HashSet
<>(
idToRelation
.
values
()))
{
...
...
src/main/java/de/dfki/lt/hfc/Utils.java
0 → 100644
View file @
68eb49f9
package
de.dfki.lt.hfc
;
import
java.util.List
;
public
class
Utils
{
public
static
int
[]
toPrimitive
(
List
<
Integer
>
l
)
{
int
[]
result
=
new
int
[
l
.
size
()];
for
(
int
i
=
0
;
i
<
result
.
length
;
++
i
)
result
[
i
]
=
l
.
get
(
i
);
return
result
;
}
}
src/test/java/de/dfki/lt/hfc/BindingTableIteratorTest.java
View file @
68eb49f9
package
de.dfki.lt.hfc
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.*;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.*;
import
static
org
.
junit
.
Assert
.*;
...
...
src/test/java/de/dfki/lt/hfc/BindingTableTest.java
View file @
68eb49f9
package
de.dfki.lt.hfc
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.
getTestResource
;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.
getTestResource
;
import
static
org
.
junit
.
Assert
.*;
import
java.io.FileNotFoundException
;
...
...
src/test/java/de/dfki/lt/hfc/BlankNodeOneTest.java
View file @
68eb49f9
...
...
@@ -6,13 +6,13 @@ import org.junit.AfterClass;
import
org.junit.BeforeClass
;
import
org.junit.Test
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.*;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.*;
public
class
BlankNodeOneTest
{
static
ForwardChainer
fc
;
private
static
String
getResource
(
String
name
)
{
return
Utils
.
getTestResource
(
"BlankNode1"
,
name
);
return
Testing
Utils
.
getTestResource
(
"BlankNode1"
,
name
);
}
/**
...
...
src/test/java/de/dfki/lt/hfc/BlankNodeTwoTest.java
View file @
68eb49f9
...
...
@@ -9,8 +9,8 @@ import org.junit.Test;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.
checkResult
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.
checkResult
;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.
checkResult
;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.
checkResult
;
...
...
@@ -18,7 +18,7 @@ public class BlankNodeTwoTest {
static
ForwardChainer
fc
;
private
static
String
getResource
(
String
name
)
{
return
Utils
.
getTestResource
(
"BlankNode2"
,
name
);
return
Testing
Utils
.
getTestResource
(
"BlankNode2"
,
name
);
}
/**
...
...
src/test/java/de/dfki/lt/hfc/CalcTest.java
View file @
68eb49f9
...
...
@@ -15,7 +15,7 @@ import org.junit.Test;
import
gnu.trove.set.hash.*
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.*;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.*;
public
class
CalcTest
{
...
...
src/test/java/de/dfki/lt/hfc/ClauseComparatorTest.java
View file @
68eb49f9
package
de.dfki.lt.hfc
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.
getTestResource
;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.
getTestResource
;
import
static
org
.
junit
.
Assert
.*;
import
java.io.FileNotFoundException
;
...
...
src/test/java/de/dfki/lt/hfc/ConcatenateFourTest.java
View file @
68eb49f9
...
...
@@ -5,8 +5,8 @@ import org.junit.AfterClass;
import
org.junit.BeforeClass
;
import
org.junit.Test
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.
checkResult
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.
checkResult
;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.
checkResult
;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.
checkResult
;
...
...
@@ -14,7 +14,7 @@ public class ConcatenateFourTest {
static
ForwardChainer
fc
;
private
static
String
getResource
(
String
name
)
{
return
Utils
.
getTestResource
(
"Concatenate4"
,
name
);
return
Testing
Utils
.
getTestResource
(
"Concatenate4"
,
name
);
}
@BeforeClass
public
static
void
init
()
throws
Exception
{
...
...
src/test/java/de/dfki/lt/hfc/ConcatenateOneTest.java
View file @
68eb49f9
...
...
@@ -5,8 +5,8 @@ import org.junit.AfterClass;
import
org.junit.BeforeClass
;
import
org.junit.Test
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.
checkResult
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.
checkResult
;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.
checkResult
;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.
checkResult
;
...
...
@@ -14,7 +14,7 @@ public class ConcatenateOneTest {
static
ForwardChainer
fc
;
private
static
String
getResource
(
String
name
)
{
return
Utils
.
getTestResource
(
"Concatenate1"
,
name
);
return
Testing
Utils
.
getTestResource
(
"Concatenate1"
,
name
);
}
@BeforeClass
public
static
void
init
()
throws
Exception
{
...
...
src/test/java/de/dfki/lt/hfc/ConcatenateTest.java
View file @
68eb49f9
package
de.dfki.lt.hfc
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.*;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.*;
import
de.dfki.lt.hfc.types.XsdString
;
import
static
org
.
junit
.
Assert
.*;
...
...
src/test/java/de/dfki/lt/hfc/ConcatenateThreeTest.java
View file @
68eb49f9
...
...
@@ -5,8 +5,8 @@ import org.junit.AfterClass;
import
org.junit.BeforeClass
;
import
org.junit.Test
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.
checkResult
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.
checkResult
;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.
checkResult
;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.
checkResult
;
...
...
@@ -14,7 +14,7 @@ public class ConcatenateThreeTest {
static
ForwardChainer
fc
;
private
static
String
getResource
(
String
name
)
{
return
Utils
.
getTestResource
(
"Concatenate3"
,
name
);
return
Testing
Utils
.
getTestResource
(
"Concatenate3"
,
name
);
}
@BeforeClass
public
static
void
init
()
throws
Exception
{
...
...
src/test/java/de/dfki/lt/hfc/ConcatenateTwoTest.java
View file @
68eb49f9
...
...
@@ -5,8 +5,8 @@ import org.junit.AfterClass;
import
org.junit.BeforeClass
;
import
org.junit.Test
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.
checkResult
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.
checkResult
;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.
checkResult
;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.
checkResult
;
...
...
@@ -14,7 +14,7 @@ public class ConcatenateTwoTest {
static
ForwardChainer
fc
;
private
static
String
getResource
(
String
name
)
{
return
Utils
.
getTestResource
(
"Concatenate2"
,
name
);
return
Testing
Utils
.
getTestResource
(
"Concatenate2"
,
name
);
}
@BeforeClass
public
static
void
init
()
throws
Exception
{
...
...
src/test/java/de/dfki/lt/hfc/DTIntersectionNotEmptyTest.java
View file @
68eb49f9
package
de.dfki.lt.hfc
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.*;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.*;
import
de.dfki.lt.hfc.types.XsdDateTime
;
import
static
org
.
junit
.
Assert
.*;
...
...
src/test/java/de/dfki/lt/hfc/DTLessEqualTest.java
View file @
68eb49f9
package
de.dfki.lt.hfc
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.*;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.*;
import
de.dfki.lt.hfc.types.XsdDateTime
;
import
static
org
.
junit
.
Assert
.*;
...
...
src/test/java/de/dfki/lt/hfc/DTLessTest.java
View file @
68eb49f9
package
de.dfki.lt.hfc
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.*;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.*;
import
de.dfki.lt.hfc.types.XsdDateTime
;
import
static
org
.
junit
.
Assert
.*;
...
...
src/test/java/de/dfki/lt/hfc/DTMax2Test.java
View file @
68eb49f9
package
de.dfki.lt.hfc
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.*;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.*;
import
de.dfki.lt.hfc.types.XsdDateTime
;
import
static
org
.
junit
.
Assert
.*;
...
...
src/test/java/de/dfki/lt/hfc/DTMin2Test.java
View file @
68eb49f9
package
de.dfki.lt.hfc
;
import
static
de
.
dfki
.
lt
.
hfc
.
Utils
.*;
import
static
de
.
dfki
.
lt
.
hfc
.
Testing
Utils
.*;
import
de.dfki.lt.hfc.types.XsdDateTime
;
import
static
org
.
junit
.
Assert
.*;
...
...
Prev
1
2
3
4
5
…
7
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment