Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also pull Prussian districts from Wikidata for matching #854

Merged
merged 3 commits into from
Jul 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ public class WikidataGeodata2Es {

{
put("99", "Q22865 Q262166 Q253019 Q1852178 Q15632166");
put("97", "Q106658");
put("97", "Q106658 Q5283531");
put("96", "Q829277");
put("36", "Q3146899 Q2072238");
put("97", "Q106658");
put("35", "Q1380992 Q1381014");

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ WHERE {
{ ?item p:P31 [ ps:P31 wd:Q829277 ] . } # Regierungsbezirk in NRW
UNION
{ ?item p:P31 [ ps:P31 wd:Q106658 ] . } # Landkreis
UNION
{ ?item p:P31 [ ps:P31 wd:Q5283531 ] . } # Landkreis in Preußen
UNION
{ ?item p:P31 [ ps:P31 wd:Q262166 ] . } # Gemeinde
UNION
Expand Down
19 changes: 11 additions & 8 deletions src/test/resources/buildAndETLTestSet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ PROJECT_ROOT=$WORKING_DIR/../../..
TEST_FILE="test.tar.bz2"

# build test set:
cd $PROJECT_ROOT
mvn clean assembly:assembly -DdescriptorId=jar-with-dependencies -DskipTests
mvn exec:java -Dexec.mainClass="org.lobid.resources.run.DownloadTestSet"
cd $WORKING_DIR/$DATA_DIR
tar xfj $WORKING_DIR/hbz01XmlClobs.tar.bz2
cd $WORKING_DIR
rm $TEST_FILE || true
tar cfj $TEST_FILE $DATA_DIR
function buildTestSet() {
cd $PROJECT_ROOT
mvn clean assembly:assembly -DdescriptorId=jar-with-dependencies -DskipTests
mvn exec:java -Dexec.mainClass="org.lobid.resources.run.DownloadTestSet"
cd $WORKING_DIR/$DATA_DIR
tar xfj $WORKING_DIR/hbz01XmlClobs.tar.bz2
cd $WORKING_DIR
rm $TEST_FILE || true
tar cfj $TEST_FILE $DATA_DIR
}

buildTestSet
# index test resources:
cd $PROJECT_ROOT
mkdir -p log
Expand Down