Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit aff4614

Browse files
committed
renaming and updates according to 2.0 release
1 parent 25610d3 commit aff4614

57 files changed

Lines changed: 7943 additions & 20 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# 2.0.0
2+
3+
## 2018-07-06
4+
5+
### changes
6+
7+
* adopted to the changes in solr 7.2.0
8+
* solr configuration files are now added in the configuration itself
9+
10+
### bugfixes
11+
12+
* remove the last references to the projects working title "kownledgefinderII"
13+
114
# 1.0.0
215

316
## 2017-03-10
@@ -12,4 +25,4 @@
1225
* Facets filter
1326
* Date range filter
1427
* Full-text search
15-
* Metadata graph
28+
* Metadata graph

portlet-config/pom.xml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,31 @@
1818

1919
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2020
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
21+
<modelVersion>4.0.0</modelVersion>
22+
2123
<parent>
22-
<groupId>de.dlr.knowledgefinderII</groupId>
24+
<groupId>de.dlr.knowledgefinder</groupId>
2325
<artifactId>webapp</artifactId>
24-
<version>1.0.0-SNAPSHOT</version>
26+
<version>2.0.0</version>
2527
<relativePath>../../knowledgefinder-webapp/pom.xml</relativePath>
2628
</parent>
27-
<modelVersion>4.0.0</modelVersion>
29+
30+
<groupId>de.dlr.knowledgefinder.webapp</groupId>
2831
<artifactId>portlet.example</artifactId>
2932
<packaging>war</packaging>
30-
<name>KnowledgeFinderII Portlet Example</name>
33+
<version>2.0.0</version>
34+
<name>KnowledgeFinder Portlet Example</name>
3135

3236
<build>
33-
<finalName>KnowledgeFinderFrontend</finalName>
37+
<finalName>KnowledgeFinder-portlet</finalName>
3438
<plugins>
3539
<plugin>
3640
<artifactId>maven-war-plugin</artifactId>
3741
<configuration>
38-
<finalName>KnowledgeFinderPortlet</finalName>
42+
<finalName>KnowledgeFinder-portlet</finalName>
3943
<overlays>
4044
<overlay>
41-
<groupId>de.dlr.knowledgefinderII.webapp</groupId>
45+
<groupId>de.dlr.knowledgefinder.webapp</groupId>
4246
<artifactId>portlet</artifactId>
4347
</overlay>
4448
</overlays>
@@ -52,9 +56,9 @@
5256

5357
<dependencies>
5458
<dependency>
55-
<groupId>de.dlr.knowledgefinderII.webapp</groupId>
59+
<groupId>de.dlr.knowledgefinder.webapp</groupId>
5660
<artifactId>portlet</artifactId>
57-
<version>1.0.0-SNAPSHOT</version>
61+
<version>2.0.0</version>
5862
<type>war</type>
5963
<scope>runtime</scope>
6064
</dependency>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
host=http://localhost:8080
2-
url=/api/jsonws/KnowledgeFinderWebservice.knowledgefinder/
2+
url=/api/jsonws/KnowledgeFinderWebservice-portlet.knowledgefinder/
33
urlDocuments=get-documents/
44
urlNodes=get-nodes/
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<!--
2+
Copyright 2016 DLR - German Aerospace Center
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
<dataConfig>
17+
<script><![CDATA[
18+
function split(row) {
19+
var pieces;
20+
var arr;
21+
if(row.containsKey("keywordsText")){
22+
pieces = row.get("keywordsText").split(',');
23+
arr = new java.util.ArrayList();
24+
for (var i=0; i<pieces.length; i++) {
25+
arr.add(pieces[i].trim());
26+
}
27+
row.put("keywords", arr);
28+
}
29+
if(row.containsKey("categoriesText")){
30+
pieces = row.get("categoriesText").split(',');
31+
arr = new java.util.ArrayList();
32+
for (var i=0; i<pieces.length; i++) {
33+
arr.add(pieces[i].trim());
34+
}
35+
row.put("categories", arr);
36+
}
37+
return row;
38+
}
39+
]]></script>
40+
<dataSource type="FileDataSource" />
41+
<document>
42+
<!-- the same transformers need to be defined for all entities -->
43+
<!-- the order of the transformer is the order in which they are executed.
44+
The order of the fields are not important -->
45+
<entity name="file" processor="FileListEntityProcessor"
46+
baseDir="path/to/metadata/files"
47+
fileName=".*xml" rootEntity="false" datasource="null"
48+
transformer="de.dlr.knowledgefinder.dataimport.utils.transformer.FilePathTransformer">
49+
50+
<field column="filePath"
51+
filePrefix="path/to/document/files"
52+
fileSuffix=".pdf" oldFileSuffix=".xml" srcColName="file"/>
53+
54+
<!-- import file content -->
55+
<entity name="metadataImport" processor="XPathEntityProcessor"
56+
forEach="/documents/document" url="${file.fileAbsolutePath}"
57+
transformer="TemplateTransformer,
58+
script:split,
59+
DateFormatTransformer,
60+
de.dlr.knowledgefinder.dataimport.utils.transformer.CategoriesSeparatedTransformer,
61+
de.dlr.knowledgefinder.dataimport.utils.transformer.ArrayToStringTransformer">
62+
63+
<field column="id" xpath="/documents/document/id" />
64+
<field column="title" xpath="/documents/document/title" />
65+
<!-- FormatingDictTransformer -->
66+
<field column="authors" xpath="/documents/document/authors" />
67+
<field column="description" xpath="/documents/document/description" />
68+
<field column="externalLink" xpath="/documents/document/externalLink" />
69+
<field column="publisher" xpath="/documents/document/publisher" />
70+
<field column="categories" xpath="/documents/document/categoriesText" />
71+
<field column="categoriesText" xpath="/documents/document/categoriesText" />
72+
<field column="keywords" xpath="/documents/document/keywordsText" />
73+
<field column="keywordsText" xpath="/documents/document/keywordsText" />
74+
<field column="license" xpath="/documents/document/license" />
75+
<field column="publishDate" xpath="/documents/document/publishDate"
76+
dateTimeFormat="MMMM dd, yyyy" locale="en" />
77+
78+
<field column="categories" categories="import/categories.json"
79+
categories_split_prefix="category_" concatArrayFromSource="contentCategories" />
80+
81+
<entity name="documentImport" processor="CustomTikaEntityProcessor"
82+
url="${file.filePath}" format="text" dataSource="files">
83+
<field column="text" name="content" />
84+
</entity>
85+
</entity>
86+
87+
88+
89+
</entity>
90+
</document>
91+
</dataConfig>
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"categories":[
3+
{
4+
"id": "A",
5+
"name": "drugs",
6+
"categories": [
7+
{"id": "A1", "name": "drug dependence"},
8+
{"id": "A2", "name": "drug metabolism"},
9+
{"id": "A3", "name": "drug marketing"},
10+
{"id": "A4", "name": "drug therapy"},
11+
{"id": "A5", "name": "drug discovery"},
12+
{"id": "A6", "name": "cancer drug discovery"},
13+
{"id": "A7", "name": "drug interactions"}
14+
]
15+
},
16+
{
17+
"id": "B",
18+
"name": "forecasting",
19+
"categories": [
20+
{"id": "B1", "name": "signaling networks"},
21+
{"id": "B2", "name": "genetic networks"},
22+
{"id": "B3", "name": "protein structure prediction"},
23+
{"id": "B4", "name": "network analysis"},
24+
{"id": "B5", "name": "evolutionary genetics"},
25+
{"id": "B6", "name": "evolutionary immunology"},
26+
{"id": "B7", "name": "immune system"},
27+
{"id": "B8", "name": "forecasting"},
28+
{"id": "B9", "name": "protein interaction networks"}
29+
]
30+
},
31+
{
32+
"id": "C",
33+
"name": "data management",
34+
"categories": [
35+
{"id": "C1", "name": "graphs"},
36+
{"id": "C2", "name": "lexicons"},
37+
{"id": "C3", "name": "machine learning algorithms"},
38+
{"id": "C4", "name": "database searching"},
39+
{"id": "C5", "name": "machine learning"},
40+
{"id": "C6", "name": "kernel methods"},
41+
{"id": "C7", "name": "peptide libraries"},
42+
{"id": "C8", "name": "parsers"}
43+
]
44+
},
45+
{
46+
"id": "D",
47+
"name": "molecular particles",
48+
"categories": [
49+
{"id": "D1", "name": "tubulins"},
50+
{"id": "D2", "name": "antimicrobials"},
51+
{"id": "D3", "name": "cluster compounds"},
52+
{"id": "D4", "name": "microtubules"},
53+
{"id": "D5", "name": "oncogenes"},
54+
{"id": "D6", "name": "polmerization"},
55+
{"id": "D7", "name": "colchicine"},
56+
{"id": "D8", "name": "protein interactions"},
57+
{"id": "D9", "name": "peptide synthesis"}
58+
]
59+
}
60+
]
61+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Set of Catalan contractions for ElisionFilter
2+
# TODO: load this as a resource from the analyzer and sync it in build.xml
3+
d
4+
l
5+
m
6+
n
7+
s
8+
t
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Set of French contractions for ElisionFilter
2+
# TODO: load this as a resource from the analyzer and sync it in build.xml
3+
l
4+
m
5+
t
6+
qu
7+
n
8+
s
9+
j
10+
d
11+
c
12+
jusqu
13+
quoiqu
14+
lorsqu
15+
puisqu
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Set of Irish contractions for ElisionFilter
2+
# TODO: load this as a resource from the analyzer and sync it in build.xml
3+
d
4+
m
5+
b
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Set of Italian contractions for ElisionFilter
2+
# TODO: load this as a resource from the analyzer and sync it in build.xml
3+
c
4+
l
5+
all
6+
dall
7+
dell
8+
nell
9+
sull
10+
coll
11+
pell
12+
gl
13+
agl
14+
dagl
15+
degl
16+
negl
17+
sugl
18+
un
19+
m
20+
t
21+
s
22+
v
23+
d
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?xml version="1.0" ?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one or more
4+
contributor license agreements. See the NOTICE file distributed with
5+
this work for additional information regarding copyright ownership.
6+
The ASF licenses this file to You under the Apache License, Version 2.0
7+
(the "License"); you may not use this file except in compliance with
8+
the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
18+
19+
<!-- Example exchange rates file for CurrencyField type named "currency" in example schema -->
20+
21+
<currencyConfig version="1.0">
22+
<rates>
23+
<!-- Updated from http://www.exchangerate.com/ at 2011-09-27 -->
24+
<rate from="USD" to="ARS" rate="4.333871" comment="ARGENTINA Peso" />
25+
<rate from="USD" to="AUD" rate="1.025768" comment="AUSTRALIA Dollar" />
26+
<rate from="USD" to="EUR" rate="0.743676" comment="European Euro" />
27+
<rate from="USD" to="BRL" rate="1.881093" comment="BRAZIL Real" />
28+
<rate from="USD" to="CAD" rate="1.030815" comment="CANADA Dollar" />
29+
<rate from="USD" to="CLP" rate="519.0996" comment="CHILE Peso" />
30+
<rate from="USD" to="CNY" rate="6.387310" comment="CHINA Yuan" />
31+
<rate from="USD" to="CZK" rate="18.47134" comment="CZECH REP. Koruna" />
32+
<rate from="USD" to="DKK" rate="5.515436" comment="DENMARK Krone" />
33+
<rate from="USD" to="HKD" rate="7.801922" comment="HONG KONG Dollar" />
34+
<rate from="USD" to="HUF" rate="215.6169" comment="HUNGARY Forint" />
35+
<rate from="USD" to="ISK" rate="118.1280" comment="ICELAND Krona" />
36+
<rate from="USD" to="INR" rate="49.49088" comment="INDIA Rupee" />
37+
<rate from="USD" to="XDR" rate="0.641358" comment="INTNL MON. FUND SDR" />
38+
<rate from="USD" to="ILS" rate="3.709739" comment="ISRAEL Sheqel" />
39+
<rate from="USD" to="JPY" rate="76.32419" comment="JAPAN Yen" />
40+
<rate from="USD" to="KRW" rate="1169.173" comment="KOREA (SOUTH) Won" />
41+
<rate from="USD" to="KWD" rate="0.275142" comment="KUWAIT Dinar" />
42+
<rate from="USD" to="MXN" rate="13.85895" comment="MEXICO Peso" />
43+
<rate from="USD" to="NZD" rate="1.285159" comment="NEW ZEALAND Dollar" />
44+
<rate from="USD" to="NOK" rate="5.859035" comment="NORWAY Krone" />
45+
<rate from="USD" to="PKR" rate="87.57007" comment="PAKISTAN Rupee" />
46+
<rate from="USD" to="PEN" rate="2.730683" comment="PERU Sol" />
47+
<rate from="USD" to="PHP" rate="43.62039" comment="PHILIPPINES Peso" />
48+
<rate from="USD" to="PLN" rate="3.310139" comment="POLAND Zloty" />
49+
<rate from="USD" to="RON" rate="3.100932" comment="ROMANIA Leu" />
50+
<rate from="USD" to="RUB" rate="32.14663" comment="RUSSIA Ruble" />
51+
<rate from="USD" to="SAR" rate="3.750465" comment="SAUDI ARABIA Riyal" />
52+
<rate from="USD" to="SGD" rate="1.299352" comment="SINGAPORE Dollar" />
53+
<rate from="USD" to="ZAR" rate="8.329761" comment="SOUTH AFRICA Rand" />
54+
<rate from="USD" to="SEK" rate="6.883442" comment="SWEDEN Krona" />
55+
<rate from="USD" to="CHF" rate="0.906035" comment="SWITZERLAND Franc" />
56+
<rate from="USD" to="TWD" rate="30.40283" comment="TAIWAN Dollar" />
57+
<rate from="USD" to="THB" rate="30.89487" comment="THAILAND Baht" />
58+
<rate from="USD" to="AED" rate="3.672955" comment="U.A.E. Dirham" />
59+
<rate from="USD" to="UAH" rate="7.988582" comment="UKRAINE Hryvnia" />
60+
<rate from="USD" to="GBP" rate="0.647910" comment="UNITED KINGDOM Pound" />
61+
62+
<!-- Cross-rates for some common currencies -->
63+
<rate from="EUR" to="GBP" rate="0.869914" />
64+
<rate from="EUR" to="NOK" rate="7.800095" />
65+
<rate from="GBP" to="NOK" rate="8.966508" />
66+
</rates>
67+
</currencyConfig>

0 commit comments

Comments
 (0)