@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsh: <http://www.w3.org/ns/shacl#> .
@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 sh: <http://www.w3.org/ns/shacl#> .
@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/getTaxonByID_sd/APIService> rdf:type <http://schema.org/SearchAction> ;
rdf:type <http://www.w3.org/ns/hydra/core#IriTemplate> ;
ns1:mapping _:b708 ;
ns1:template "http://api.gbif.org/v1/species/{id}" .

<https://sparql-micro-services.org/service/gbif/getTaxonByID_sd/> ns2:addProvenance true ;
ns2:cacheExpiresAfter "P2592000S"^^xsd:duration ;
ns2:exampleQuery "\r\n    prefix dwc: <http://rs.tdwg.org/dwc/terms/>\r\n\r\n    SELECT * WHERE {\r\n      ?taxon a dwc:Taxon;\r\n        dwc:scientificNameID         \"2360305\";\r\n        dwc:scientificName           ?name;\r\n        dwc:scientificNameAuthorship ?authorship;\r\n        dwc:acceptedNameUsage        ?acceptedName.\r\n    }\r\n        " ;
ns2:exampleURI "https://sparql-micro-services.org/ld/gbif/id/2360305" ;
dc:source _:b707 ;
ns3:description "This service retrieves information about a taxon from <a href=\"https://www.gbif.org/\" target=\"_new\">GBIF</a> (Global Biodiversity Information Facility). It takes as input a name identifier (GBIF key) provided using property dwc:scientificNameID.<br>\r\n    In the graph produced, the taxon is represented as an instance of the dwc:Taxon and comes with the following information:\r\n    currently accepted/valid name (dwc:acceptedNameUsage and dwc:acceptedNameUsageID), scientific name (dwc:scientificName and dwc:scientificNameID), scientific name authorhip (dwc:scientificNameAuthorship), article in which the name was published (dwc:namePublishedIn), source (dwc:nameAccordingTo), classification (dwc:kingdom, dwc:phylum, dwc:class, dwc:order, dwc:family, dwc:genus), parent taxon (skos:broader), taxonomic rank (dwc:taxonRank and taxrefp:hasRank), URL of the taxon name web page (schema:sameAs)." ;
ns3:keywords "biodiversity" ;
ns3:keywords "lifesciences" ;
ns3:keywords "fauna" ;
ns3:keywords "flora" ;
ns3:keywords "species" ;
ns3:keywords "gbif" ;
ns3:keywords "sparql" ;
ns3:keywords "microservice" ;
ns3:keywords "taxon" ;
ns3:keywords "scientific name" ;
ns3:name "SPARQL micro-service to retrieve information from GBIF about a taxon using its name identifier (GBIF key)" ;
ns3:publisher _:b705 ;
rdf:type <http://www.w3.org/ns/sparql-service-description#Service> ;
rdf:type ns2:Service ;
ns4:defaultDataset _:b701 ;
ns4:endpoint <https://sparql-micro-services.org/service/gbif/getTaxonByID_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 .

_:b708 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" .

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

_:b706 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 .

_:b705 ns3:contactPoint _:b706 ;
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 .

_:b704 rdf:type ns4:Graph ;
ns4:name <https://sparql-micro-services.org/service/gbif/getTaxonByID_sd/ShapesGraph> .

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

_:b702 rdf:type ns4:Graph ;
sh:shapesGraph <https://sparql-micro-services.org/service/gbif/getTaxonByID_sd/ShapesGraph> .

_:b701 ns5:sparqlEndpoint <https://sparql-micro-services.org/service/gbif/getTaxonByID_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 _:b702 ;
ns4:namedGraph _:b703 ;
ns4:namedGraph _:b704 .