@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/getTaxonByName_sd/APIService> rdf:type <http://schema.org/SearchAction> ;
rdf:type <http://www.w3.org/ns/hydra/core#IriTemplate> ;
ns1:mapping _:b653 ;
ns1:template "http://api.gbif.org/v1/species?datasetKey=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c&name={name}" .

<https://sparql-micro-services.org/service/gbif/getTaxonByName_sd/> ns2:addProvenance true ;
ns2:cacheExpiresAfter "P2592000S"^^xsd:duration ;
ns2:exampleQuery "\r\n    prefix dwc: <http://rs.tdwg.org/dwc/terms/>\r\n    prefix schema: <http://schema.org/>.\r\n\r\n    SELECT * WHERE {\r\n        ?taxon a dwc:Taxon;\r\n            schema:name                  \"Alburnoides bipunctatus\";\r\n            dwc:scientificName           ?name;\r\n            dwc:scientificNameID         ?nameID;\r\n            dwc:scientificNameAuthorship ?authorship;\r\n            dwc:acceptedNameUsage        ?acceptedName.\r\n    }\r\n        " ;
dc:source _:b652 ;
ns3:description "<p>This service retrieves information about a taxon from <a href=\"https://www.gbif.org/\" target=\"_new\">GBIF</a>'s backbone taxonomy (Global Biodiversity Information Facility). It takes as input a taxon name provided using property schema:name. The reason for using schema:name instead of e.g. dwc:scientificName is that the searched name may be accepted or a synonym. Hence the schema:name property that makes no assumption as to the nature of the name. </p>\r\n    <p>The graph produced may contain multiple taxa represented as instances of the dwc:Taxon class. Each one comes with the following information: 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).</p>" ;
ns3:keywords "sparql" ;
ns3:keywords "microservice" ;
ns3:keywords "biodiversity" ;
ns3:keywords "lifesciences" ;
ns3:keywords "fauna" ;
ns3:keywords "flora" ;
ns3:keywords "species" ;
ns3:keywords "gbif" ;
ns3:keywords "taxon" ;
ns3:keywords "scientific name" ;
ns3:name "SPARQL micro-service to retrieve information from GBIF about a taxon using a scientific name" ;
ns3:publisher _:b650 ;
rdf:type <http://www.w3.org/ns/sparql-service-description#Service> ;
rdf:type ns2:Service ;
ns4:defaultDataset _:b646 ;
ns4:endpoint <https://sparql-micro-services.org/service/gbif/getTaxonByName_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 .

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

_:b650 ns3:contactPoint _:b651 ;
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 .

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

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

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

_:b653 ns3:description "scientific name." ;
skos:example "Alburnoides bipunctatus" ;
ns1:property ns3:name ;
ns1:required true ;
ns1:variable "name" .

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

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