Skip to content

Commit

Permalink
Added all tsv columns
Browse files Browse the repository at this point in the history
  • Loading branch information
nleanba authored Jul 13, 2024
1 parent b842165 commit 32a2dd6
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions query.sparql
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
PREFIX dwc: <http://rs.tdwg.org/dwc/terms/>
PREFIX col: <https://terms.catalogueoflife.org/>
PREFIX dcterms: <http://purl.org/dc/terms/>

CONSTRUCT {
?taxon
Expand All @@ -8,15 +10,34 @@ CONSTRUCT {
dwc:originalName ?originalName;
dwc:rank ?dwc_taxonRank;
dwc:genus ?gbif_genericName;
dwc:infragenericEpithet ?dwc_infragenericEpithet;
dwc:species ?dwc_specificEpithet;
dwc:infraspecificEpithet ?dwc_infraspecificEpithet;
dwc:cultivarEpithet ?dwc_cultivarEpithet;
dwc:taxonomicStatus ?dwc_taxonomicStatus;
dwc:scientificNameAuthorship ?dwc_scientificNameAuthorship.

# All tsv columns in order:
dwc:taxonID ?dwc_taxonID ;
dwc:parentNameUsageID ?dwc_parentNameUsageID ;
dwc:acceptedNameUsageID ?dwc_acceptedNameUsageID ;
dwc:originalNameUsageID ?dwc_originalNameUsageID ;
dwc:scientificNameID ?dwc_scientificNameID ;
dwc:datasetID ?dwc_datasetID ;
dwc:taxonomicStatus ?dwc_taxonomicStatus ;
dwc:taxonRank ?dwc_taxonRank ;
dwc:scientificName ?dwc_scientificName ;
dwc:scientificNameAuthorship ?dwc_scientificNameAuthorship ;
col:notho ?col_notho ;
dwc:genericName ?dwc_genericName ;
dwc:infragenericEpithet ?dwc_infragenericEpithet ;
dwc:specificEpithet ?dwc_specificEpithet ;
dwc:infraspecificEpithet ?dwc_infraspecificEpithet ;
dwc:cultivarEpithet ?dwc_cultivarEpithet ;
dwc:nameAccordingTo ?dwc_nameAccordingTo ;
dwc:namePublishedIn ?dwc_namePublishedIn ;
dwc:nomenclaturalCode ?dwc_nomenclaturalCode ;
dwc:nomenclaturalStatus ?dwc_nomenclaturalStatus ;
dwc:taxonRemarks ?dwc_taxonRemarks ;
dcterms:references ?dcterms_references ;
} WHERE {
bind(iri(concat("https://www.catalogueoflife.org/data/taxon/",?dwc_taxonID)) as ?taxon)
bind(iri(concat("https://www.catalogueoflife.org/data/taxon/",?dwc_parentNameUsageID)) as ?parent)
bind(iri(concat("https://www.catalogueoflife.org/data/taxon/",?dwc_acceptedNameUsageID)) as ?acceptedName)
bind(iri(concat("https://www.catalogueoflife.org/data/taxon/",?dwc_originalNameUsageID)) as ?originalName)
}
}

0 comments on commit 32a2dd6

Please sign in to comment.