Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define canonical URIs of categories #373

Open
nichtich opened this issue Jul 20, 2023 · 0 comments
Open

Define canonical URIs of categories #373

nichtich opened this issue Jul 20, 2023 · 0 comments

Comments

@nichtich
Copy link

nichtich commented Jul 20, 2023

Is your feature request related to a problem? Please describe.

I'd like to express arXiv categories in RDF (using SKOS) to express links between categories and publications and links between categories and other taxonomies as RDF triples. By now there is no official URI form for identifiers such as cs and cs.AI.

Describe the solution you'd like

  1. Define clean and durable URIs such as https://arxiv.org/category/cs.AI or https://arxiv.org/category_taxonomy/cs.AI
  2. Let those URIs resolve to anything but 404 (e.g. redirect with HTTP Status code 302 to https://arxiv.org/list/cs.AI/recent)
  3. Maybe later add dedicated pages for each category URI and return RDF if requested (low priority)

The solution (1+2) is likely less then 10 lines of code:

@blueprint.route("category_taxonomy/<string:category_id>", methods=["GET"])
def category_uri(category_id: str) -> Any:
    if is_known_category(category_id): # TODO: define is_known_category to check whether category exists
        return redirect("list/{id}/recent".format(id=category_id))
    raise NotFound

Describe alternatives you've considered

  • Use listing pages as https://arxiv.org/list/cs.AI/recent as URIs: but these reference lists of publications not the categories
  • Define my own, incompatible URI schema such as http://example.org/arxiv-categories/cs.AI

Additional context

In Wikidata there is https://www.wikidata.org/wiki/Property:P820 to express arXiv category but there is no https://www.wikidata.org/wiki/Property:P1921 like used for other identifiers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant