Closed jhpoelen closed 3 years ago
With recent changes, I was able to produce the following output, using the (attached) properties file:
$ cat my.properties
nomer.append.schema.output.example.taxon.rank.order=[{"column":0,"type":"path.order.id"},{"column": 1,"type":"path.order.name"},{"column": 2,"type":"path.order"}]
nomer.append.schema.output=[{"column":0,"type":"externalId"},{"column": 1,"type":"name"},{"column": 2,"type":"authorship"},{"column":3,"type":"rank"}]
nomer.schema.input=[{"column":0,"type":"externalId"},{"column": 1,"type":"name"},{"column": 2,"type":"authorship"},{"column": 3, "type":"rank"}]
and nomer:
$ nomer list --properties my.properties discoverlife | head
https://www.discoverlife.org/mp/20q?search=Acamptopoeum+argentinum Acamptopoeum argentinum (Friese, 1906) species HAS_ACCEPTED_NAME https://www.discoverlife.org/mp/20q?search=Acamptopoeum+argentinum Acamptopoeum argentinum (Friese, 1906) species
https://www.discoverlife.org/mp/20q?search=Acamptopoeum+calchaqui Acamptopoeum calchaqui Compagnucci, 2004 species HAS_ACCEPTED_NAME https://www.discoverlife.org/mp/20q?search=Acamptopoeum+calchaqui Acamptopoeum calchaqui Compagnucci, 2004 species
https://www.discoverlife.org/mp/20q?search=Acamptopoeum+colombiense Acamptopoeum colombiense Shinn, 1965 species HAS_ACCEPTED_NAME https://www.discoverlife.org/mp/20q?search=Acamptopoeum+colombiense Acamptopoeum colombiense Shinn, 1965 species
https://www.discoverlife.org/mp/20q?search=Acamptopoeum+colombiensis Acamptopoeum colombiensis Shinn, 1965 species SYNONYM_OF https://www.discoverlife.org/mp/20q?search=Acamptopoeum+colombiense Acamptopoeum colombiense Shinn, 1965 species
https://www.discoverlife.org/mp/20q?search=Acamptopoeum+fernandezi Acamptopoeum fernandezi Gonzalez, 2004 species HAS_ACCEPTED_NAME https://www.discoverlife.org/mp/20q?search=Acamptopoeum+fernandezi Acamptopoeum fernandezi Gonzalez, 2004 species
https://www.discoverlife.org/mp/20q?search=Acamptopoeum+inauratum Acamptopoeum inauratum (Cockerell, 1926) species HAS_ACCEPTED_NAME https://www.discoverlife.org/mp/20q?search=Acamptopoeum+inauratum Acamptopoeum inauratum (Cockerell, 1926) species
https://www.discoverlife.org/mp/20q?search=Acamptopoeum+melanogaster Acamptopoeum melanogaster Compagnucci, 2004 species HAS_ACCEPTED_NAME https://www.discoverlife.org/mp/20q?search=Acamptopoeum+melanogaster Acamptopoeum melanogaster Compagnucci, 2004 species
https://www.discoverlife.org/mp/20q?search=Acamptopoeum+nigritarse Acamptopoeum nigritarse (Vachal, 1909) species HAS_ACCEPTED_NAME https://www.discoverlife.org/mp/20q?search=Acamptopoeum+nigritarse Acamptopoeum nigritarse (Vachal, 1909) species
https://www.discoverlife.org/mp/20q?search=Acamptopoeum+prinii Acamptopoeum prinii (Holmberg, 1884) species HAS_ACCEPTED_NAME https://www.discoverlife.org/mp/20q?search=Acamptopoeum+prinii Acamptopoeum prinii (Holmberg, 1884) species
https://www.discoverlife.org/mp/20q?search=Acamptopoeum+submetallicum Acamptopoeum submetallicum (Spinola, 1851) species HAS_ACCEPTED_NAME https://www.discoverlife.org/mp/20q?search=Acamptopoeum+submetallicum Acamptopoeum submetallicum (Spinola, 1851) species
In table form this would look something like:
Where the table is formatted in (left name) -[:relation] -> (right name)
.
See also attached discover.tsv.gz produced using:
$ nomer list --properties my.properties discoverlife | gzip > discoverlife.tsv.gz
fyi @seltmann @egbot
(note that these nomer features are supported in upcoming release v0.2.8)
Described functionality available in Nomer v0.2.8 . Please close this issue after review, or share review comments below.
@jhpoelen looks good! There are some unexpected rows in the output. I checked a few of the taxa and they look like ones that are contain relationship HOMONYM_OF
@jhpoelen a few homonyms look like they are still not being picked up. I am seeing _homonym in the provided:authorName and resolved:dwc:taxonName fields.
@seltmann thanks for sharing your notes on unexpected _homonym . Because these are not related to this particular issue (e.g., adding columns for authorship etc), I've opened a separate issue.
I am assuming that you were able to access the desired columns (e.g., providedTaxonRank, providedTaxonAuthorship) so I am closing this issue. Please feel free to re-open or comment if there's more work needed on this specific issue related to column definitions / views.
oh, for related issue see https://github.com/globalbioticinteractions/nomer/issues/63 .
Thanks for being patient as I am trying to document and address these related, but separate, issues.
as discussed with @seltmann
Desired: