-
Notifications
You must be signed in to change notification settings - Fork 0
/
query.sparql
43 lines (41 loc) · 1.88 KB
/
query.sparql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
PREFIX dwc: <http://rs.tdwg.org/dwc/terms/>
PREFIX col: <https://terms.catalogueoflife.org/>
PREFIX dcterms: <http://purl.org/dc/terms/>
CONSTRUCT {
?taxon
dwc:taxonName ?dwc_scientificName;
dwc:parent ?parent;
dwc:acceptedName ?acceptedName;
dwc:originalName ?originalName;
dwc:rank ?dwc_taxonRank;
dwc:genus ?gbif_genericName;
dwc:species ?dwc_specificEpithet;
# 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)
}