DataONEorg / puri-service

The DataONE service for resolving PURIs to resources like datasets, people, and organizations
Apache License 2.0
1 stars 0 forks source link

puri-service

The DataONE service for resolving PURIs to resources like datasets, people, and organizations.

Summary

The core idea is to provide the following things to DataONE:

High level overview

┌──────────────┐                 ┌──────────────┐               ┌──────────────┐
│    Client    │─────makes ─────▶│ PURI Service │───redirects ─▶│ DataONE API  │
└──────────────┘   request to    └──────────────┘       to      └──────────────┘
        ▲                                                               │
        │                           responds                            │
        └──────────────────────────────to───────────────────────────────┘

Example requests

             .───────────.
    ┌──────▶(   Client    )
    │        `───────────'
    │              │
    │            makes             makes
    │           request┬──────────request─────────────────────┐
    │                  │                                      │
    │                  ▼                                      ▼
    │    ┌──────────────────────────┐         ┌───────────────────────────────┐
    │    │GET /dataset/X            │         │GET /dataset/X                 │
    │    │Accept: text/html         │         │Accept: application/ld+json    │
    │    └──────────────────────────┘         └───────────────────────────────┘
    │                  │                                      │
    │              is  │                                      │is
returns        redirected                                  redirected
response           to                                          to
    │              ▼                                           ▼
    │            ┌────────────────────────────────────────────────────────────┐
    │            │                        PURI Service                        │
    │            └────────────────────────────────────────────────────────────┘
    │               │                                          │
    │              is                                         is
    │          redirected                                 redirected
    │              to │                                       to
    │                 │                                        │
    │                 ▼                                        ▼
    │ ┌──────────────────────────────┐    ┌───────────────────────────────────┐
    │ │search.dataone.org/#view/X    │    │LOD Service                        │
    │ │Content-Type: text/html       │    │Content-Type: application/json+ld  │
    │ └──────────────────────────────┘    └───────────────────────────────────┘
    │                 │                                     │
    │                 │                                     │
    └─────────────────◀─────────────────────────────────────┘

Installation

TODO

Development

TODO

Contributing

Please report any bugs or feature requests as Issues on this repository. Pull Requests welcome.