-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release v0.4.0
- Loading branch information
Showing
20 changed files
with
330 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/python | ||
{ | ||
"name": "Python 3", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/python:1-3.9-bookworm", | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
"features": { "ghcr.io/devcontainers-contrib/features/poetry": "latest" }, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "poetry install", | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
"remoteUser": "vscode", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-python.python", | ||
"vector-of-bool.gitflow" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "dwcahandler" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
description = "Python package to handle Darwin Core Archive (DwCA) operations. This includes creating a DwCA zip file from one or more csvs, reading a DwCA, merge two DwCAs, validate DwCA and delete records from DwCA based on one or more key columns" | ||
authors = ["Atlas of Living Australia data team <[email protected]>"] | ||
maintainers = ["Atlas of Living Australia data team <[email protected]>"] | ||
|
@@ -26,4 +26,4 @@ requires = ["poetry-core"] | |
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.pytest.ini_options] | ||
pythonpath = "src" | ||
pythonpath = "src" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<archive xmlns="http://rs.tdwg.org/dwc/text/"> | ||
<core rowType="http://rs.tdwg.org/dwc/terms/Occurrence" encoding="utf-8" fieldsTerminatedBy="," linesTerminatedBy="\n" fieldsEnclosedBy="" ignoreHeaderLines="1"> | ||
<files> | ||
<location>occurrence.txt</location> | ||
</files> | ||
<id index="0" /> | ||
<field index="1" term="http://rs.tdwg.org/dwc/terms/occurrenceID"/> | ||
<field index="2" term="http://rs.tdwg.org/dwc/terms/scientificName"/> | ||
<field index="3" term="http://rs.tdwg.org/dwc/terms/decimalLatitude"/> | ||
<field index="4" term="http://rs.tdwg.org/dwc/terms/decimalLongitude"/> | ||
<field index="5" term="http://rs.tdwg.org/dwc/terms/eventDate"/> | ||
<field index="6" term="http://rs.tdwg.org/dwc/terms/recordedBy"/> | ||
<field index="7" term="http://rs.tdwg.org/dwc/terms/geodeticDatum"/> | ||
<field index="8" term="http://rs.tdwg.org/dwc/terms/basisOfRecord"/> | ||
</core> | ||
</archive> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
id,occurrenceID,scientificName,decimalLatitude,decimalLongitude,eventDate,recordedBy,geodeticDatum,basisOfRecord | ||
1,1001,SpeciesA,12.34,-56.78,2023-01-01,John Doe,WGS84,PreservedSpecimen | ||
2,1002,SpeciesB,-34.56,78.90,2023-02-15,Jane Smith,WGS84,HumanObservation | ||
3,1003,SpeciesC,0.123,45.678,2023-03-20,Bob Johnson,WGS84,FossilSpecimen | ||
4,1004,SpeciesD,-23.456,-12.345,2023-04-10,Alice Brown,WGS84,MachineObservation | ||
5,1005,SpeciesE,89.012,-67.890,2023-05-25,Charlie White,WGS84,PreservedSpecimen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<archive xmlns="http://rs.tdwg.org/dwc/text/" metadata="metadata.xml"> | ||
<core encoding="UTF-8" fieldsTerminatedBy="\t" linesTerminatedBy="\n" fieldsEnclosedBy="" ignoreHeaderLines="1" rowType="http://rs.tdwg.org/dwc/terms/Occurrence"> | ||
<files> | ||
<location>occurrence.txt</location> | ||
</files> | ||
<id index="0" /> | ||
<field default="WGS84" term="http://rs.tdwg.org/dwc/terms/geodeticDatum"/> | ||
<field index="0" term="http://rs.gbif.org/terms/1.0/gbifID"/> | ||
<field index="1" term="http://rs.tdwg.org/dwc/terms/occurrenceID"/> | ||
<field index="2" term="http://purl.org/dc/terms/scientificName"/> | ||
<field index="3" term="http://purl.org/dc/terms/decimalLatitude"/> | ||
<field index="4" term="http://purl.org/dc/terms/decimalLongitude"/> | ||
<field index="5" term="http://purl.org/dc/terms/basisOfRecord"/> | ||
</core> | ||
</archive> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gbifID occurrenceID scientificName decimalLatitude decimalLongitude basisOfRecord | ||
1 occ1 Euphorbia paralias -36.00000 150.5678 Observations | ||
2 occ2 Acaciella angustissima -20.0000 145.1234 Observations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<archive xmlns="http://rs.tdwg.org/dwc/text/" metadata="metadata.xml"> | ||
<core encoding="UTF-8" fieldsTerminatedBy="\t" linesTerminatedBy="\n" fieldsEnclosedBy="" ignoreHeaderLines="1" rowType="http://rs.tdwg.org/dwc/terms/Occurrence"> | ||
<files> | ||
<location>occurrence.txt</location> | ||
</files> | ||
<id index="0" /> | ||
<field default="WGS84" term="http://rs.tdwg.org/dwc/terms/geodeticDatum"/> | ||
<field index="0" term="http://rs.gbif.org/terms/1.0/gbifID"/> | ||
<field index="1" term="http://rs.tdwg.org/dwc/terms/occurrenceID"/> | ||
<field index="2" term="http://purl.org/dc/terms/scientificName"/> | ||
<field index="3" term="http://purl.org/dc/terms/decimalLatitude"/> | ||
<field index="4" term="http://purl.org/dc/terms/decimalLongitude"/> | ||
<field index="5" term="http://purl.org/dc/terms/basisOfRecord"/> | ||
</core> | ||
</archive> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
gbifID occurrenceID scientificName decimalLatitude decimalLongitude basisOfRecord | ||
1 Euphorbia paralias -36.00000 150.5678 Observations | ||
2 occ2 Acaciella angustissima -20.0000 145.1234 Observations | ||
3 occ3 Acaciella angustissima -20.0000 145.1234 Observations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<archive xmlns="http://rs.tdwg.org/dwc/text/"> | ||
<core rowType="http://rs.tdwg.org/dwc/terms/Occurrence" encoding="utf-8" fieldsTerminatedBy="," linesTerminatedBy="\n" fieldsEnclosedBy="" ignoreHeaderLines="1"> | ||
<files> | ||
<location>occurrence.csv</location> | ||
</files> | ||
<id index="3" /> | ||
<field index="0" term="http://rs.tdwg.org/dwc/terms/eventDate"/> | ||
<field index="1" term="http://rs.tdwg.org/dwc/terms/basisOfRecord"/> | ||
<field index="2" term="http://rs.tdwg.org/dwc/terms/scientificName"/> | ||
<field index="3" term="http://rs.tdwg.org/dwc/terms/catalogNumber"/> | ||
<field index="4" term="http://rs.tdwg.org/dwc/terms/decimalLatitude"/> | ||
<field index="5" term="http://rs.tdwg.org/dwc/terms/decimalLongitude"/> | ||
</core> | ||
</archive> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
eventDate,basisOfRecord,scientificName,catalogNumber,decimalLatitude,decimalLongitude | ||
2015-07-18T12:58:00+00:00,Human Observation,Species A,014800,-30.00000,144 | ||
2015-07-18T12:58:31+00:00,Human Observation,Species B,,-31.00000,145 | ||
2015-07-18T18:16:52+00:00,Human Observation,Species C,014824,-32.00000,100.828059 | ||
2015-07-19T04:28:19+00:00,Human Observation,Species D,014823,-33.00000,101.820888 | ||
2015-07-19T18:29:25+00:00,Human Observation,Species A1,014822,-34.00000,102.821654 | ||
2015-07-20T18:03:12+00:00,Human Observation,Species A2,014821,-35.00000,104.999974 | ||
2015-07-21T18:06:58+00:00,Human Observation,Species A3,014802,-34.00000,120.889354 | ||
2015-07-22T04:42:47+00:00,Human Observation,Species B1,014800,-36.00000,150.308848 | ||
2015-07-22T17:54:18+00:00,Human Observation,Species B2,014800,-30.00000,146.240159 | ||
2015-07-22T23:09:51+00:00,Human Observation,Species C1,014799,-31.00000,150.783246 | ||
2015-07-23T17:37:26+00:00,Human Observation,Species D,014798,-40.00000,150.823468 | ||
2015-07-24T13:10:00+00:00,Human Observation,Species E,014823,-28.00000,115 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<archive xmlns="http://rs.tdwg.org/dwc/text/"> | ||
<core rowType="http://rs.tdwg.org/dwc/terms/Occurrence" encoding="utf-8" fieldsTerminatedBy="," linesTerminatedBy="\n" fieldsEnclosedBy="" ignoreHeaderLines="1"> | ||
<files> | ||
<location>occurrence.csv</location> | ||
</files> | ||
<field index="0" term="http://rs.tdwg.org/dwc/terms/eventDate"/> | ||
<field index="1" term="http://rs.tdwg.org/dwc/terms/basisOfRecord"/> | ||
<field index="2" term="http://rs.tdwg.org/dwc/terms/scientificName"/> | ||
<field index="3" term="http://rs.tdwg.org/dwc/terms/catalogNumber"/> | ||
<field index="4" term="http://rs.tdwg.org/dwc/terms/catalogNumber"/> | ||
<field index="5" term="http://rs.tdwg.org/dwc/terms/decimalLongitude"/> | ||
</core> | ||
</archive> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
eventDate,basisOfRecord,scientificName,catalogNumber,decimalLatitude,decimalLongitude | ||
2015-07-18T12:58:00+00:00,Human Observation,Species A,014826,-30,144 | ||
2015-07-18T12:58:31+00:00,Human Observation,Species A1,014825,-31.1111,145 | ||
2015-07-18T18:16:52+00:00,Human Observation,Species A2,014824,-32.085431,100.828059 | ||
2015-07-19T04:28:19+00:00,Human Observation,Species A3,014823,-33.097233,101.820888 | ||
2015-07-19T18:29:25+00:00,Human Observation,Species B1,014822,-34.099936,102.821654 | ||
2015-07-20T18:03:12+00:00,Human Observation,Species B2,014821,-35.893671,104.999974 | ||
2015-07-21T18:06:58+00:00,Human Observation,Species C,014820,-34.113747,120.889354 | ||
2015-07-22T04:42:47+00:00,Human Observation,Species C2,014810,-36,144.308848 | ||
2015-07-22T17:54:18+00:00,Human Observation,Species C3,014800,-30.440251,146.240159 | ||
2015-07-22T23:09:51+00:00,Human Observation,Species D,014799,-31.547195,150.783246 | ||
2015-07-23T17:37:26+00:00,Human Observation,Species D1,-40.481117,150.823468 | ||
2015-07-24T13:10:00+00:00,Human Observation,Species D2,014792,-28,115 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
catalogNumber ,identifier, format ,type | ||
C4,https://images.ala.org.au/image/proxyImageThumbnailLarge?imageId=XXX,image/jpeg,StillImage | ||
C5,https://images.ala.org.au/image/proxyImageThumbnailLarge?imageId=XYZ,image/jpeg,StillImage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
catalogNumber ,basisOfRecord,scientificName ,license,decimalLatitude,decimalLongitude | ||
C3,Human Observation,Ageratina adenophora,CC-BY 4.0 (Int),-10.0000,120.0000 | ||
C4,Human Observation,Ageratina adenophora,CC-BY 4.0 (Int),-11.1111,125.0000 | ||
C5,Human Observation,Delairea odorata,CC-BY 4.0 (Int),-12.085431,130.828059 |
Oops, something went wrong.