Skip to content

Commit

Permalink
citations info opr index v1
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanhb committed Sep 11, 2023
1 parent 2a1d852 commit 87527a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index_v1.hf
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ The fields returned by this operation are:
* *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).

The values of all the fields are prefixed with `[index name] => `, so as to cleary identify from where the related data is coming, and can contain one or more information, separated by `; `. This is particularly useful when a citation is actually contained in two or more OpenCitations Indexes. In this case, only one row will be returned, and the prefix used in the various data allows one to understand the source Index of such data.
#call /citations/10.1002/adfm.201505328
#call /citations-uniindex/10.1002/adfm.201505328
#output_json [
{
"oci": "0200100030836231029271431221029283702000106370908-02001000002361013152237020001050005030208",
Expand Down
2 changes: 1 addition & 1 deletion indexapi_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def citations_info(res, *args):
entities_data = {"citing":[],"cited":[]}
for f in fields:

f_col = field_idx[fields[f]]
f_col = fields[f]
# org value: <https://w3id.org/oc/meta/br/06NNNNNN>
entity = row[f_col][1].split("oc/meta/")[1][:-1]

Expand Down

0 comments on commit 87527a6

Please sign in to comment.