Skip to content

Commit

Permalink
use link to plazi treatment uris; include treatment deprecations for …
Browse files Browse the repository at this point in the history
…now; #23
  • Loading branch information
jhpoelen committed Sep 30, 2020
1 parent 450f256 commit 43f016c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -37,8 +37,7 @@ public static void importTreatment(InputStream treatmentGraph, TaxonCacheListene
"PREFIX dwc: <http://rs.tdwg.org/dwc/terms/>\n" +
"PREFIX dc: <http://purl.org/dc/elements/1.1/>\n" +
"SELECT * WHERE { \n" +
" ?treatment (trt:augmentsTaxonConcept|trt:definesTaxonConcept) ?tc .\n" +
// " ?treatment (trt:augmentsTaxonConcept|trt:definesTaxonConcept|trt:deprecates) ?tc .\n" +
" ?treatment (trt:augmentsTaxonConcept|trt:definesTaxonConcept|trt:deprecates) ?tc .\n" +
" ?tc trt:hasTaxonName ?tn .\n" +
" ?tc a fp:TaxonConcept .\n" +
" ?treatment trt:publishedIn ?publication .\n" +
Expand Down
Expand Up @@ -50,7 +50,7 @@ public void finish() {
assertThat(counter.get(), Is.is(1));

Taxon taxon = taxa.get(0);
assertThat(taxon.getExternalId(), Is.is("http://taxon-concept.plazi.org/id/Animalia/Carvalhoma_Slater_1977"));
assertThat(taxon.getExternalId(), Is.is("http://treatment.plazi.org/id/000087F6E320FF95FF7EFDC1FAE4FA7B"));
assertThat(taxon.getName(), Is.is("Carvalhoma"));
assertThat(taxon.getRank(), Is.is("genus"));

Expand Down

0 comments on commit 43f016c

Please sign in to comment.