@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix ns2: <http://ns.inria.fr/sparql-micro-service#> .
@prefix ns1: <http://www.w3.org/ns/hydra/core#> .
@prefix ns4: <http://www.w3.org/ns/sparql-service-description#> .
@prefix ns3: <http://schema.org/> .
@prefix ns5: <http://rdfs.org/ns/void#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dc: <http://purl.org/dc/terms/> .


<https://sparql-micro-services.org/service/gbif/getClassificationByID_sd/APIService> rdf:type <http://schema.org/SearchAction> ;
rdf:type <http://www.w3.org/ns/hydra/core#IriTemplate> ;
ns1:mapping _:b685 ;
ns1:template "http://api.gbif.org/v1/species/{id}/parents" .

<https://sparql-micro-services.org/service/gbif/getClassificationByID_sd/> ns2:addProvenance true ;
ns2:cacheExpiresAfter "P2592000S"^^xsd:duration ;
ns2:exampleQuery "\n    prefix dwc: <http://rs.tdwg.org/dwc/terms/>\n\n    SELECT * WHERE {\n      ?taxon a dwc:Taxon;\n        dwc:scientificNameID      \"2360305\";\n        skos:broader+ [\n            dwc:scientificName   ?parentName;\n            dwc:scientificNameID ?parentNameID;\n            taxrefp:hasRank      ?rankUri;\n        ]\n    }\n    " ;
dc:source _:b684 ;
ns3:description "The result is a list of instances of dwc:Taxon, one for each parent of the taxon. Each taxon belonging to the classification comes with the following information: scientific name (dwc:scientificNameID), scientific name (dwc:scientificName), the URL of the taxon Web page (schema:sameAs), taxonomic rank, parent taxon (skos:broader).<br>Compared to the gbif/getTaxonByID micro-service that provides, together with the taxon information, the names of the taxa corresponding to the major taxonomic ranks (kingdom, phylum, class, order, family, genus), this service provides the whole classification, including taxa corresponding to secondary ranks (superfamily, subfamily, subgenus, etc.)." ;
ns3:keywords "biodiversity" ;
ns3:keywords "lifesciences" ;
ns3:keywords "fauna" ;
ns3:keywords "flora" ;
ns3:keywords "species" ;
ns3:keywords "gbif" ;
ns3:keywords "taxonomy" ;
ns3:keywords "sparql" ;
ns3:keywords "microservice" ;
ns3:keywords "taxon" ;
ns3:keywords "scientific name" ;
ns3:name "Retrieve from <a href=\"https://www.gbif.org/\" target=\"_new\">GBIF</a> (Global Biodiversity Information Facility) the classification of a taxon given by its taxon name identifier." ;
ns3:publisher _:b682 ;
rdf:type <http://www.w3.org/ns/sparql-service-description#Service> ;
rdf:type ns2:Service ;
ns4:defaultDataset _:b679 ;
ns4:endpoint <https://sparql-micro-services.org/service/gbif/getClassificationByID_sd/> ;
ns4:feature ns4:BasicFederatedQuery ;
ns4:feature ns4:EmptyGraphs ;
ns4:resultFormat <http://www.w3.org/ns/formats/SPARQL_Results_XML> ;
ns4:resultFormat <http://www.w3.org/ns/formats/SPARQL_Results_JSON> ;
ns4:resultFormat <http://www.w3.org/ns/formats/SPARQL_Results_CSV> ;
ns4:resultFormat <http://www.w3.org/ns/formats/SPARQL_Results_TSV> ;
ns4:resultFormat <http://www.w3.org/ns/formats/RDF_XML> ;
ns4:resultFormat <http://www.w3.org/ns/formats/Turtle> ;
ns4:resultFormat <http://www.w3.org/ns/formats/JSON-LD> ;
ns4:resultFormat <http://www.w3.org/ns/formats/Trig> ;
ns4:supportedLanguage ns4:SPARQL11Query .

_:b685 ns3:description "taxon name identifier (GBIF key)." ;
skos:example "2360305" ;
ns1:property <http://rs.tdwg.org/dwc/terms/scientificNameID> ;
ns1:required true ;
ns1:variable "id" .

_:b684 ns3:name "GBIF API" ;
ns3:potentialAction <https://sparql-micro-services.org/service/gbif/getClassificationByID_sd/APIService> ;
ns3:url <https://www.gbif.org/developer/summary> ;
rdf:type ns3:WebAPI .

_:b683 ns3:contactType "technical support" ;
ns3:email "franck.michel@cnrs.fr" ;
ns3:name "Franck Michel" ;
ns3:url <https://w3id.org/people/franckmichel> ;
rdf:type ns3:ContactPoint .

_:b682 ns3:contactPoint _:b683 ;
ns3:logo "http://univ-cotedazur.fr/fr/university/communication-presse/charte-et-logos/logo/png/uca-logo-large" ;
ns3:logo "https://iww.inria.fr/dircom/logoinria-eng.png" ;
ns3:logo "http://www.cnrs.fr/themes/custom/cnrs/logo.svg" ;
ns3:name "Université Côte d'Azur, CNRS, Inria, I3S" ;
rdf:type ns3:Organization .

_:b681 rdf:type ns4:Graph ;
ns4:name <https://sparql-micro-services.org/service/gbif/getClassificationByID_sd/ServiceDescription> .

_:b680 rdf:type ns4:Graph .

_:b679 ns5:sparqlEndpoint <https://sparql-micro-services.org/service/gbif/getClassificationByID_sd/> ;
ns5:vocabulary <http://schema.org/> ;
ns5:vocabulary <http://www.w3.org/ns/shacl#> ;
ns5:vocabulary <http://www.w3.org/ns/hydra/core#> ;
ns5:vocabulary <http://rs.tdwg.org/dwc/terms/> ;
rdf:type ns4:Dataset ;
rdf:type ns5:Dataset ;
ns4:defaultGraph _:b680 ;
ns4:namedGraph _:b681 .