Skip to content

Commit

Permalink
api meta
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanhb committed Oct 20, 2023
1 parent 943f03a commit 59334fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion indexapi_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def metadata(res, *args):
reference_ids.append(__get_identifier(r[e]))

row.extend([
__get_identifier(r[omid_uri]),
__get_identifier(r[omid_uri],["doi"]),
str(len(citation_ids)),
"; ".join(citation_ids),
"; ".join(reference_ids)
Expand Down
2 changes: 1 addition & 1 deletion meta_v1.hf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#url /metadata/{ids}
#type operation
#ids str((doi|issn|isbn|omid):.+?(__(doi|issn|isbn|omid):.+?)*$)
#ids str((doi|issn|isbn|omid|pmid):.+?(__(doi|issn|isbn|omid|pmid):.+?)*$)
#preprocess generate_id_search(ids)
#postprocess create_metadata_output()
#method get
Expand Down
12 changes: 6 additions & 6 deletions poci_v1.hf
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ The fields returned by this operation are:
* *timespan*: the interval between the publication date of the cited entity and the publication date of the citing entity, expressed using the [XSD duration format](https://www.w3.org/TR/xmlschema11-2/#duration) `PnYnMnD`;
* *journal_sc*: it records whether the citation is a journal self-citations (i.e. the citing and the cited entities are published in the same journal);
* *author_sc*: it records whether the citation is an author self-citation (i.e. the citing and the cited entities have at least one author in common).
#call /citation/0619099185-061602041405
#call /citation/0601595569-06101365054
#output_json [
{
"oci": "0619099185-061602041405",
"citing": "10.1186/s40246-022-00378-z",
"cited": "10.1007/s40291-013-0028-5",
"creation": "2022-02-05",
"timespan": "P8Y9M20D",
"oci": "oci:0619099185-061602041405",
"citing": "pmid:36244310",
"cited": "pmid:10592235",
"creation": "2022-12",
"timespan": "P21Y",
"journal_sc": "no",
"author_sc": "no"
}
Expand Down

0 comments on commit 59334fe

Please sign in to comment.