@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix ns2: <http://schema.org/> .
@prefix ns1: <http://ns.inria.fr/sparql-micro-service#> .
@prefix ns4: <http://www.w3.org/ns/hydra/core#> .
@prefix ns3: <http://www.w3.org/ns/sparql-service-description#> .
@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/eol/getTraitsByTaxon_sd/> ns1:addProvenance false ;
ns1:cacheExpiresAfter "P2592000S"^^xsd:duration ;
ns1:exampleQuery "\r\n        prefix dwc: <http://rs.tdwg.org/dwc/terms/>\r\n        prefix dwciri: <http://rs.tdwg.org/dwc/iri/>\r\n        prefix dct:     <http://purl.org/dc/terms/>\r\n\r\n        SELECT * WHERE {\r\n            ?taxon a dwc:Taxon;\r\n                dwc:scientificName \"Delphinus delphis\";\r\n                dct:relation ?measure.\r\n\r\n            ?measure\r\n                a                       dwc:MeasurementOrFact;\r\n                dwc:measurementType     ?measurementType;\r\n                dwc:measurementValue    ?measurementValue.\r\n\r\n            OPTIONAL { ?measure dwc:measurementUnit     ?measurementUnit }\r\n            OPTIONAL { ?measure dwciri:measurementUnit  ?measurementUnitUri }\r\n\r\n            FILTER (?measurementType != 'habitat includes')\r\n        }\r\n        " ;
dc:source _:b664 ;
ns2:citation <https://www.mdpi.com/2078-2489/9/12/310> ;
ns2:description "This service searches the <a href=\"http://eol.org/traitbank\">Encyclopedia of Life traits bank</a> for data related to a given taxon name. It uses the EoL trait bank v3 API that provides a <a href=\"https://neo4j.com/docs/cypher-manual/current/\">Neo4J Cypher</a> interface." ;
ns2:keywords "biodiversity" ;
ns2:keywords "lifesciences" ;
ns2:keywords "fauna" ;
ns2:keywords "flora" ;
ns2:keywords "species" ;
ns2:keywords "sparql" ;
ns2:keywords "microservice" ;
ns2:keywords "trait" ;
ns2:keywords "life" ;
ns2:name "Retrieve life traits of biological species given by their scientific name" ;
ns2:publisher _:b662 ;
rdf:type <http://www.w3.org/ns/sparql-service-description#Service> ;
rdf:type ns1:Service ;
ns3:defaultDataset _:b659 ;
ns3:endpoint <https://sparql-micro-services.org/service/eol/getTraitsByTaxon_sd/> ;
ns3:feature ns3:BasicFederatedQuery ;
ns3:feature ns3:EmptyGraphs ;
ns3:resultFormat <http://www.w3.org/ns/formats/SPARQL_Results_XML> ;
ns3:resultFormat <http://www.w3.org/ns/formats/SPARQL_Results_JSON> ;
ns3:resultFormat <http://www.w3.org/ns/formats/SPARQL_Results_CSV> ;
ns3:resultFormat <http://www.w3.org/ns/formats/SPARQL_Results_TSV> ;
ns3:resultFormat <http://www.w3.org/ns/formats/RDF_XML> ;
ns3:resultFormat <http://www.w3.org/ns/formats/Turtle> ;
ns3:resultFormat <http://www.w3.org/ns/formats/JSON-LD> ;
ns3:resultFormat <http://www.w3.org/ns/formats/Trig> ;
ns3:supportedLanguage ns3:SPARQL11Query .

<https://sparql-micro-services.org/service/eol/getTraitsByTaxon_sd/APIService> ns2:documentation "The taxon scientific name must be provided by property dwc:scientificName in the SPARQL graph pattern." ;
rdf:type ns2:SearchAction ;
rdf:type <http://www.w3.org/ns/hydra/core#IriTemplate> ;
ns4:mapping _:b665 ;
ns4:template "https://eol.org/service/cypher?query=%20%20%20%20MATCH%20(p%3APage)-%5B%3Atrait%5D-%3E(t%3ATrait)%2C%0A%20%20%20%20%20%20%20%20%20%20(t)-%5B%3Apredicate%5D-%3E(pred%3ATerm)%0A%0A%20%20%20%20WHERE%20p.canonical%20%3D%20%22{name}%22%0A%20%20%20%20%20%20%20%20AND%20NOT%20pred.name%20CONTAINS%20%27milk%27%0A%20%20%20%20%20%20%20%20AND%20NOT%20pred.name%20CONTAINS%20%27geographic%20distribution%27%0A%20%20%20%20%0A%20%20%20%20OPTIONAL%20MATCH%20(t)-%5B%3Aobject_term%5D-%3E(obj%3ATerm)%0A%20%20%20%20OPTIONAL%20MATCH%20(t)-%5B%3Aunits_term%5D-%3E(units%3ATerm)%0A%0A%20%20%20%20RETURN%0A%20%20%20%20%20%20%20%20%7B%20pageId%3A%20p.page_id%2C%20predName%3A%20pred.name%2C%20predUri%3A%20pred.uri%2C%20measurement%3A%20t.measurement%2C%20unitName%3A%20units.name%2C%20unitUri%3A%20units.uri%2C%20objName%3A%20obj.name%2C%20objUri%3A%20obj.uri%20%7D%0A%20%20%20%20LIMIT%20200" .

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

_:b661 rdf:type ns3:Graph ;
ns3:name <https://sparql-micro-services.org/service/eol/getTraitsByTaxon_sd/ServiceDescription> .

_:b660 rdf:type ns3:Graph .

_:b659 ns5:sparqlEndpoint <https://sparql-micro-services.org/service/eol/getTraitsByTaxon_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 ns3:Dataset ;
rdf:type ns5:Dataset ;
ns3:defaultGraph _:b660 ;
ns3:namedGraph _:b661 .

_:b665 ns2:description "The taxon scientific name without authorship nor date information." ;
skos:example "Delphinus delphis" ;
ns4:property <http://rs.tdwg.org/dwc/terms/scientificName> ;
ns4:required true ;
ns4:variable "name" .

_:b664 ns2:name "EoL API" ;
ns2:potentialAction <https://sparql-micro-services.org/service/eol/getTraitsByTaxon_sd/APIService> ;
ns2:url <https://eol.org/docs/what-is-eol/data-services> ;
rdf:type ns2:WebAPI .

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