Skip to content

Commit

Permalink
test api
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanhb committed Dec 7, 2023
1 parent 03e9e66 commit 7a75705
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index_v2.hf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#url /api/v2
#type api
#base https://test.opencitations.net/index
#base https://opencitations.net/index
#title The REST API for OpenCitations Index
#description This document describe the REST API for accessing the data stored in the [OpenCitations Index](https://w3id.org/oc/index) hosted by [OpenCitations](http://opencitations.net). This API implements operations to retrieve the citation data for all the references to other works appearing in a particular bibliographic entity, or the citation data for all the references appearing in other works to a particular bibliographic entity, given the identifier of a bibliographic entity, or to retrieve citation data about a particular citation identified by means of its [Open Citation Identifier (OCI)](https://opencitations.wordpress.com/2018/03/12/citations-as-first-class-data-entities-open-citation-identifiers/).

Expand Down Expand Up @@ -86,7 +86,7 @@ The field returned by this operation is:
}
]
#sparql PREFIX cito: <http://purl.org/spar/cito/>
SELECT (count(DISTINCT(?citing)) as ?count)
SELECT (count(?citing) as ?count)
WHERE {
VALUES ?val {[[id]]} .
?oci cito:hasCitedEntity ?val .
Expand All @@ -111,7 +111,7 @@ The field returned by this operation is:
}
]
#sparql PREFIX cito: <http://purl.org/spar/cito/>
SELECT (count(DISTINCT(?cited)) as ?count)
SELECT (count(?cited) as ?count)
WHERE {
VALUES ?val {[[id]]} .
?oci cito:hasCitingEntity ?val .
Expand Down

0 comments on commit 7a75705

Please sign in to comment.