@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/getOccurrencesByName_sd/APIService> rdf:type <http://schema.org/SearchAction> ;
rdf:type <http://www.w3.org/ns/hydra/core#IriTemplate> ;
ns1:mapping _:b692 ;
ns1:template "http://api.gbif.org/v1/occurrence/search?q={name}&limit=5000" .

<https://sparql-micro-services.org/service/gbif/getOccurrencesByName_sd/> ns2:addProvenance false ;
ns2:cacheExpiresAfter "P2592000S"^^xsd:duration ;
ns2:exampleQuery "\r\nPREFIX dct:     <http://purl.org/dc/terms/>.\r\nPREFIX dsw:     <http://purl.org/dsw/>.\r\nPREFIX dwc:     <http://rs.tdwg.org/dwc/terms/>.\r\nPREFIX dwciri:  <http://rs.tdwg.org/dwc/iri/>.\r\nPREFIX schema:  <http://schema.org/>.\r\n\r\nSELECT * WHERE {\r\n    ?taxon\r\n        a dwc:Taxon;\r\n        schema:name         \"Alburnoides bipunctatus\";\r\n        dwc:taxonID         ?acceptedTaxonId;\r\n        dwc:acceptedName    ?acceptedName.\r\n\r\n    ?occurrence a           dwc:Occurrence;\r\n        dct:identifier      ?occid;\r\n        schema:url          ?page;\r\n\r\n        dsw:occurrenceOf    [ dsw:hasIdentification [ dwciri:toTaxon ?taxon ]];\r\n\r\n        dsw:atEvent [\r\n            dwc:recordedBy  ?rightsHolder;\r\n            dwc:eventDate   ?date;\r\n            dsw:locatedAt [\r\n                dwc:country             ?country;\r\n                dwc:countryCode         ?countryCode;\r\n                dwc:decimalLongitude    ?decimalLongitude;\r\n                dwc:decimalLatitude     ?decimalLatitude;\r\n            ];\r\n        ].\r\n}\r\n" ;
dc:source _:b691 ;
ns3:description "<p>This service retrieves occurrences of a taxon from <a href=\"https://www.gbif.org/\" target=\"_new\">GBIF</a> (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><p>Occurrences are represented according to the <a href=\"https://github.com/darwin-sw/dsw\">Darwin-SW</a> specification." ;
ns3:keywords "biodiversity" ;
ns3:keywords "gbif" ;
ns3:keywords "taxon" ;
ns3:keywords "occurrence" ;
ns3:name "Retrieve occurrences of a taxon from GBIF using its scientific name" ;
ns3:publisher _:b689 ;
rdf:type <http://www.w3.org/ns/sparql-service-description#Service> ;
rdf:type ns2:Service ;
ns4:defaultDataset _:b686 ;
ns4:endpoint <https://sparql-micro-services.org/service/gbif/getOccurrencesByName_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 .

_:b686 ns5:sparqlEndpoint <https://sparql-micro-services.org/service/gbif/getOccurrencesByName_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 _:b687 ;
ns4:namedGraph _:b688 .

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

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

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

_:b689 ns3:contactPoint _:b690 ;
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 .

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

_:b687 rdf:type ns4:Graph .