@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix ns2: <http://www.w3.org/ns/hydra/core#> .
@prefix ns1: <http://schema.org/> .
@prefix ns4: <http://www.w3.org/ns/sparql-service-description#> .
@prefix ns3: <http://ns.inria.fr/sparql-micro-service#> .
@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://ror.org/02kvxyf05> ns1:logo <https://iww.inria.fr/dircom/logoinria-eng.png> ;
ns1:mainEntityOfPage <https://www.inria.fr> ;
ns1:name "Inria" ;
rdf:type ns1:Organization .

<https://ror.org/0496p8026> ns1:logo <http://univ-cotedazur.fr/fr/university/communication-presse/charte-et-logos/logo/png/uca-logo-large> ;
ns1:mainEntityOfPage <http://univ-cotedazur.fr> ;
ns1:name "University Côte d'Azur" ;
rdf:type ns1:Organization .

<https://team.inria.fr/wimmics/> ns1:mainEntityOfPage <https://team.inria.fr/wimmics/> ;
ns1:name "Wimmics research team" ;
rdf:type ns1:Organization .

<https://ror.org/02feahw73> ns1:logo <http://www.cnrs.fr/themes/custom/cnrs/logo.svg> ;
ns1:mainEntityOfPage <https://www.cnrs.fr> ;
ns1:name "CNRS" ;
rdf:type ns1:Organization .

<https://sparql-micro-services.org/service/pubmed/getArticleByQuery_sd/APIService> ns1:description "This search action is only about retrieving the metadata of articles\n        based on their Pubmed ids. The separate service.php file first invokes the Esearch service \n        with the query tersm (schema:query), retrieves the ids of articles maching th query, \n        and then run this query to get the metadata." ;
rdf:type ns1:SearchAction ;
rdf:type <http://www.w3.org/ns/hydra/core#IriTemplate> ;
ns2:mapping _:b742 ;
ns2:template "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=pubmed&id={pmId}&retmode=json" .

<https://sparql-micro-services.org/service/pubmed/getArticleByQuery_sd/> ns3:addProvenance false ;
ns3:cacheExpiresAfter "P2592000S"^^xsd:duration ;
ns3:exampleQuery "prefix schema:   <http://schema.org/>\nSELECT ?article ?p ?o WHERE {\n    ?search schema:query \"'biomarkers'[MeSH Terms] OR 'biomarkers'[All Fields]\".\n    ?article ?p ?o.\n}" ;
dc:source _:b741 ;
ns1:description "\n        <p>This service retrieves articles from <a href=\"https://www.ncbi.nlm.nih.gov/\" target=\"_new\">PubMed</a> using <a href=\"https://www.ncbi.nlm.nih.gov/books/NBK25501/\" target=\"_new\">NCBI Entrez APIs</a>, and generates an RDF representation thereof. \n        The query string complies with the syntax of the <a href=\"https://www.ncbi.nlm.nih.gov/books/NBK25499/#chapter4.ESearch\" target=\"_new\">Esearch</a> service and can consist of a sheer list of keywords or a more complex query with types and logical connectors. See the API documentation. \n        The Pubmed query string is provided using property <code>schema:query</code>.</p>\n        <p>The graph produced contains a maximum of 20 articles. It relies mainly on the <a href=\"https://github.com/structureddynamics/Bibliographic-Ontology-BIBO\" target=\"_new\">Bibiographic Ontology</a> (BIBO) and <a href=\"https://sparontologies.github.io/fabio/current/fabio.html\" target=\"_new\">FRBR-aligned Bibliographic Ontology</a> (FaBiO). \n        An article IRI is preferably based on its DOI, if any, prefixed with <code>http://doi.org/</code>.\n        If no DOI is available, the IRI is PubMed's web page URL prefixed with <code>https://pubmed.ncbi.nlm.nih.gov/</code>.\n        Authors are represented as separate triples with <code>dct:creator</code>, as well as an ordered list with <code>bibo:authorList</code>.</p>\n        <p>See <a href=\"https://github.com/frmichel/sparql-micro-service/tree/master/services/pubmed/getArticleByQuery_sd\">modeling details</a>.</p>\n        " ;
ns1:keywords "pubmed" ;
ns1:keywords "publication" ;
ns1:keywords "metadata" ;
ns1:keywords "article" ;
ns1:keywords "litterature" ;
ns1:name "Retrieve articles from PubMed given a Pubmed query" ;
ns1:publisher <https://ror.org/0496p8026> ;
ns1:publisher <https://ror.org/02kvxyf05> ;
ns1:publisher <https://ror.org/02feahw73> ;
ns1:publisher <https://team.inria.fr/wimmics/> ;
rdf:type <http://www.w3.org/ns/sparql-service-description#Service> ;
rdf:type ns3:Service ;
ns4:defaultDataset _:b738 ;
ns4:endpoint <https://sparql-micro-services.org/service/pubmed/getArticleByQuery_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 .

_:b742 ns1:description "PubMed query string." ;
skos:example "\"biomarkers\"[MeSH Terms] OR \"biomarkers\"[All Fields]" ;
ns2:property ns1:query ;
ns2:required true ;
ns2:variable "terms" .

_:b741 ns1:name "PubMed Central API" ;
ns1:potentialAction <https://sparql-micro-services.org/service/pubmed/getArticleByQuery_sd/APIService> ;
ns1:url <https://www.ncbi.nlm.nih.gov/pmc/tools/developers/> ;
rdf:type ns1:WebAPI .

_:b740 rdf:type ns4:Graph ;
ns4:name <https://sparql-micro-services.org/service/pubmed/getArticleByQuery_sd/ServiceDescription> .

_:b739 rdf:type ns4:Graph .

_:b738 ns5:sparqlEndpoint <https://sparql-micro-services.org/service/pubmed/getArticleByQuery_sd/> ;
ns5:vocabulary <http://schema.org/> ;
ns5:vocabulary <http://www.w3.org/ns/hydra/core#> ;
ns5:vocabulary <http://rs.tdwg.org/dwc/terms/> ;
ns5:vocabulary <http://purl.org/ontology/bibo/> ;
ns5:vocabulary <http://purl.org/dc/terms/> ;
ns5:vocabulary <http://purl.org/spar/fabio/> ;
rdf:type ns4:Dataset ;
rdf:type ns5:Dataset ;
ns4:defaultGraph _:b739 ;
ns4:namedGraph _:b740 .