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

<https://sparql-micro-services.org/service/gbif/getSynonymsByID_sd/> ns2:addProvenance true ;
ns2:cacheExpiresAfter "P2592000S"^^xsd:duration ;
ns2:exampleQuery "\r\n    prefix dwc: <http://rs.tdwg.org/dwc/terms/>\r\n    prefix taxrefp: <http://taxref.mnhn.fr/lod/property/> .\r\n\r\n    SELECT * WHERE {\r\n        ?taxon a dwc:Taxon;\r\n            dwc:acceptedNameUsageID     \"7707728\";\r\n            dwc:acceptedNameUsage       ?acceptedName;\r\n            taxrefp:hasSynonym          ?synonym.\r\n\r\n        ?synonym\r\n            dwc:scientificName           ?name;\r\n            dwc:scientificNameAuthorship ?authorship.\r\n    }\r\n        " ;
dc:source _:b699 ;
ns3:description "<p>This service retrieves the list of synonyms of a taxon from <a href=\"https://www.gbif.org/\" target=\"_new\">GBIF</a>'s backbone taxonomy (Global Biodiversity Information Facility). It takes as input the accepted name identifier (GBIF key) provided using property dwc:acceptedNameUsageID.</p>\r\n    <p>In the graph produced, the taxon is represented as an instance of the dwc:Taxon class, related to the synonyms with the http://taxref.mnhn.fr/lod/property/hasSynonym property. Each synonym comes with the following information: scientific name (dwc:scientificName and dwc:scientificNameID), scientific name authorship  (dwc:scientificNameAuthorship), URL of the taxon name web page (`schema:sameAs`).</p>" ;
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 from GBIF the synonyms of a taxon using its name identifier (GBIF key)" ;
ns3:publisher _:b697 ;
rdf:type <http://www.w3.org/ns/sparql-service-description#Service> ;
rdf:type ns2:Service ;
ns4:defaultDataset _:b693 ;
ns4:endpoint <https://sparql-micro-services.org/service/gbif/getSynonymsByID_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 .

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

_:b697 ns3:contactPoint _:b698 ;
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 .

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

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

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

_:b693 ns5:sparqlEndpoint <https://sparql-micro-services.org/service/gbif/getSynonymsByID_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 _:b694 ;
ns4:namedGraph _:b695 ;
ns4:namedGraph _:b696 .

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

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