Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Devrim Gunyel
core
Commits
a82625d3
Commit
a82625d3
authored
Sep 12, 2018
by
Piotr Gawron
Browse files
taxonomy changed html response
parent
608161ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
annotation/src/main/java/lcsb/mapviewer/annotation/services/TaxonomyBackend.java
View file @
a82625d3
...
...
@@ -108,7 +108,7 @@ public class TaxonomyBackend extends CachableInterface implements IExternalServi
queryTerm
=
URLEncoder
.
encode
(
queryTerm
,
"UTF-8"
);
String
url
=
"https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?lvl=0&name="
+
queryTerm
;
String
page
=
getWebPageContent
(
url
);
Pattern
idPattern
=
Pattern
.
compile
(
"
<em>
Taxonomy ID:
</em>
([0-9]+)"
);
Pattern
idPattern
=
Pattern
.
compile
(
"Taxonomy ID: ([0-9]+)"
);
Matcher
matcher
=
idPattern
.
matcher
(
page
);
if
(!
matcher
.
find
())
{
logger
.
warn
(
"Unknown organism: "
+
term
);
...
...
Write
Preview
Markdown
is supported
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