forked from kai-vu/companion-planting-decision-support
-
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.
add GloBI index config related to globalbioticinteractions/globalbiot…
- Loading branch information
Jorrit Poelen
committed
Nov 4, 2024
1 parent
437342c
commit d0c91ca
Showing
5 changed files
with
146 additions
and
0 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,41 @@ | ||
# This workflow will review a GloBI indexed dataset. | ||
# For more information see: https://globalbioticinteractions.org | ||
|
||
name: GloBI review by Elton | ||
|
||
on: | ||
push: | ||
branches: [ '*' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
schedule: | ||
- cron: "0 0 * * 1" | ||
|
||
jobs: | ||
review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '8' | ||
- name: download review script | ||
run: curl --silent -L "https://raw.githubusercontent.com/globalbioticinteractions/globinizer/master/check-dataset.sh" > check-dataset.sh | ||
- name: download network compiler script | ||
run: | | ||
curl --silent -L "https://raw.githubusercontent.com/globalbioticinteractions/globinizer/master/compile-network.sh" > compile-network.sh | ||
chmod +x compile-network.sh | ||
- name: review dataset | ||
run: bash check-dataset.sh "${GITHUB_REPOSITORY}" | ||
- name: Share review report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: review-report | ||
path: | | ||
README.txt | ||
datasets/ | ||
index.* | ||
indexed-* | ||
review* |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ sources/ | |
**/target/** | ||
**/.idea/** | ||
.vscode/** | ||
datasets/ |
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,91 @@ | ||
{ | ||
"@context" : [ "http://www.w3.org/ns/csvw", { | ||
"@language" : "en" | ||
} ], | ||
"rdfs:comment" : [ "inspired by https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/" ], | ||
"tables" : [ { | ||
"@context" : [ "http://www.w3.org/ns/csvw", { | ||
"@language" : "en" | ||
} ], | ||
"rdfs:comment" : [ "inspired by https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/" ], | ||
"url" : "datasets/eppo-practicalplants-hosts.csv", | ||
"dcterms:bibliographicCitation" : "Configuration to help GloBI index Companion Planting Ontology, a resource developed by the Knowledge in AI group of Vrije Universiteit Amsterdam.", | ||
"delimiter" : ",", | ||
"headerRowCount" : 1, | ||
"null" : [ "" ], | ||
"tableSchema" : { | ||
"foreignKeys": [ | ||
{ | ||
"columnReference": "targetTaxonId", | ||
"reference": { | ||
"columnReference": "targetTaxonId" | ||
} | ||
} | ||
], | ||
"columns" : [ { | ||
"name" : "", | ||
"titles" : "", | ||
"datatype" : "string" | ||
}, { | ||
"name" : "codeid", | ||
"titles" : "codeid", | ||
"datatype" : "string" | ||
}, { | ||
"name" : "targetTaxonName", | ||
"titles" : "fullname", | ||
"datatype" : "string" | ||
}, { | ||
"name" : "targetTaxonId", | ||
"titles" : "eppocode", | ||
"datatype": { | ||
"base" : "string", | ||
"valueUrl" : "https://gd.eppo.int/taxon/{targetTaxonId}" | ||
} | ||
} ] | ||
} | ||
}, { | ||
"@context" : [ "http://www.w3.org/ns/csvw", { | ||
"@language" : "en" | ||
} ], | ||
"rdfs:comment" : [ "inspired by https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/" ], | ||
"url" : "datasets/eppo-practicalplants-pests.csv", | ||
"dcterms:bibliographicCitation" : "Configuration to help GloBI index Companion Planting Ontology, a resource developed by the Knowledge in AI group of Vrije Universiteit Amsterdam.", | ||
"delimiter" : ",", | ||
"headerRowCount" : 1, | ||
"null" : [ "" ], | ||
"tableSchema" : { | ||
"primaryKey": "targetTaxonId", | ||
"columns" : [ { | ||
"name" : "", | ||
"titles" : "", | ||
"datatype" : "string" | ||
}, { | ||
"name" : "targetTaxonId", | ||
"titles" : "eppocode", | ||
"datatype": { | ||
"base" : "string", | ||
"valueUrl" : "https://gd.eppo.int/taxon/{targetTaxonId}" | ||
} | ||
}, { | ||
"name" : "sourceTaxonId", | ||
"titles" : "pests_eppocode", | ||
"datatype": { | ||
"base" : "string", | ||
"valueUrl" : "https://gd.eppo.int/taxon/{sourceTaxonId}" | ||
} | ||
}, { | ||
"name" : "idclass", | ||
"titles" : "idclass", | ||
"datatype" : "string" | ||
}, { | ||
"name" : "interactionTypeName", | ||
"titles" : "labelclass", | ||
"datatype" : "string" | ||
}, { | ||
"name" : "sourceTaxonName", | ||
"titles" : "fullname", | ||
"datatype" : "string" | ||
} ] | ||
} | ||
} ] | ||
} |
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,7 @@ | ||
provided_interaction_type_label,provided_interaction_type_id,mapped_to_interaction_type_label,mapped_to_interaction_type_id | ||
Alternate,,interactsWith,http://purl.obolibrary.org/obo/RO_0002437 | ||
Doubtful host,,interactsWith,http://purl.obolibrary.org/obo/RO_0002437 | ||
Experimental,,interactsWith,http://purl.obolibrary.org/obo/RO_0002437 | ||
Host,,hasHost,http://purl.obolibrary.org/obo/RO_0002454 | ||
Major host,,hasHost,http://purl.obolibrary.org/obo/RO_0002454 | ||
Wild/Weed,,interactsWith,http://purl.obolibrary.org/obo/RO_0002437 |