Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upLeverage links with the "cite-as" relation type #58
Comments
This comment has been minimized.
This comment has been minimized.
Note that other Signposting patterns can also be leveraged by the citeas.org service. Links with the "describedby" relation type provided by the landing page URI lead to bibliographic information about the artifact the landing page is about. Using the same landing page as above, the complete HTTP Link header is as follows:
The bibliographic information that is linked to is - in this case - obviously also available from the DOI API. But that requires the client to have out-of-bound knowledge about that API. With the above "describedby" links, a client can just follow its nose to the metadata. |
This comment has been minimized.
This comment has been minimized.
This is great! I am close to implementing it within CiteAs. One issue I have found with the above example is that there are actually two cite-as relations returned for that link:
Requests has good support for these headers, but in this case it returns the second link:
I think the DOI may be better but that would involve manual parsing of the headers. I prefer to use requests as it will provide consistent results. Do you think the second result is bad? It's still pointing to a cite-as reference that the author apparently intended. |
This comment has been minimized.
This comment has been minimized.
To me this seems like a bug with Requests in that it looks like it is unable to parse multiple links with the same link relation type. Meaning a similar problem would occur for Link headers with eg multiple “alternate” links (instead of “cite-as” links), which is rather common. Maybe an issue should be posted for Requests with this regard? BTW in most current implementations there will only be a single “cite-as” link, typically pointing at a DOI. But multiple persistent identifiers for a resource is not really uncommon. So, it would be better to tackle the issue at the source, which - I speculate - is Requests. |
This comment has been minimized.
This comment has been minimized.
Yes I'm with you. Requests should be returning a list rather than a single item. I'll implement this with Requests but also submit an issue so that it hopefully gets fixed. Or maybe they have a suggestion on how to handle these situations. It would be nice to iterate through the list and look for a DOI. |
hvdsomp commentedDec 20, 2019
RFC8574 defines the "cite-as" link relation type that can, among others, be used to point from a landing page URI to the URI that should be used for citation purposes. A major motivation for defining the relation type was that research found that a very significant number of resources that have a DOI are not cited by means of their DOI but rather by means of their landing page URI [1].
A link with the "cite-as" relation type would typically be provided in the HTTP Link header of the landing page. For example, using the landing page https://easy.dans.knaw.nl/ui/datasets/id/easy-dataset:61891 for a dataset in the DANS EASY collection:
The "cite-as" approach is part of the broader Signposting effort aimed at clarifying common landing page patterns to machines by using utterly simple REST/HATEOAS techniques. Early Signposting adopters typically implement "cite-as" with priority. As such:
[1] Van de Sompel, H., Klein, M., and Shawn, J. (2016) Persistent URIs Must Be Used To Be Persistent. Poster at WWW 2016; arXiv preprint at http://arxiv.org/1602.09102