Worked Examples
Apply discovery-to-library ingestion — Unified Discovery
Transfer authorized discovery results into persistent Library records while preserving provider identity, metadata, rights, versions, and ingestion provenance.
Application: Unified Discovery
Cross-application area: Library / Research Data Management / Source Provenance
Classification: Practical Guides / Source Ingestion / Research Asset Governance
Audience: Researchers, librarians, data stewards, scientific developers, platform engineers, and research reviewers
Technical level: Intermediate to advanced
Reference environment: Python 3 standard library
Relevant standards: W3C PROV-O, DataCite Metadata Schema 4.7, HTTP Semantics
Primary outputs: Source identity mapping, validated metadata, rights decision, Library record, provenance relationship, deterministic ingest receipt, and verification evidence
Estimated reading time: 15–19 minutes; 35–50 minutes with implementation and tests
1. Purpose and expected outcome
Discovery-to-Library ingestion is the controlled transition by which a source identified through a discovery system becomes a persistent research record within a Library.
The process must preserve the information needed to determine:
- Where the source originated.
- Which resource and revision were discovered.
- Who created or published it, where known.
- Which metadata were obtained from the provider.
- Whether the researcher has permission to save metadata or content.
- Whether content was actually retrieved and stored.
- Which Library record corresponds to the original source.
- Whether the source can later be independently resolved or verified.
- Which research project, workspace, or owner controls the saved record.
Primary acceptance condition: The Library record must preserve a resolvable reference to the originating provider resource, maintain the relevant source identity and rights, and remain associated with its original discovery and ingestion evidence.
A Library record must not be considered scientifically reviewed, accepted, or public merely because an ingestion request succeeded.
2. Distinguish discovery, ingestion, analysis, and publication
These are different operations with different acceptance requirements.
| Stage | Meaning | What it does not prove |
|---|---|---|
| Discovered | Provider returned a source candidate | Source reliability, download permission, or scientific quality |
| Selected | User identified a source of interest | Successful ingestion |
| Metadata validated | Required identity and descriptive fields pass checks | Rights to copy full content |
| Metadata-only Library record | Source reference and permitted metadata retained | Local possession of full source content |
| Content-bearing Library record | Authorized content has been obtained and stored | Scientific accuracy or publication rights |
| Analyzed | Source used in a documented analytical workflow | Independent scientific acceptance |
| Reviewed | Defined assessment completed | Automatic permission to publish |
| Published | Approved public output released | Permission to redistribute every underlying source |
An ingestion system should enforce these distinctions in both persistent state and interface labels.
3. Understand the source-to-Library transition
Discovery provider
|
v
Authorized discovery result
|
v
Source identifier and revision validation
|
v
Metadata and provenance mapping
|
v
Rights and access assessment
|
+----> Not permitted: stop or restrict
|
v
Duplicate and revision check
|
v
Metadata-only or authorized content import
|
v
Persistent Library record
|
v
Independent source reconciliation
|
v
Draft research asset
|
v
Separate analysis and review workflow
The authoritative source and the local Library object must retain distinct identities.
For example, a provider’s DOI is not automatically the same as a Library’s internal record identifier.
4. Identify authoritative source information
Before ingestion, inspect the discovered record and its originating provider.
| Field | Purpose |
|---|---|
| provider_id | Identifies the originating discovery service or collection |
| provider_record_id | Identifies the specific record within that provider |
| canonical_identifier | Persistent identifier, such as DOI, where available |
| canonical_url | Provider or authoritative landing-page reference |
| source_revision | Source version or revision represented by the result |
| title | Source title as provided |
| creators | Authors, researchers, or responsible organizations |
| publisher | Publishing or hosting organization |
| publication_date | Publication date when supplied |
| retrieved_at | Actual retrieval or discovery timestamp |
| resource_type | Dataset, article, software, report, or another source type |
| rights_statement | Provider’s stated license or use restrictions |
| access_scope | Applicable public, authenticated, or restricted access |
| metadata_version | Version of the provider metadata representation |
Preserve the original provider identifier even when a DOI or another persistent identifier is available.
When identifiers are missing, conflicting, or ambiguous, avoid silently manufacturing authoritative identifiers. A local temporary reference may be created under an explicit provisional policy.
5. Preserve identifier relationships
A source may have more than one identifier.
For example:
Provider:
synthetic-provider
Provider record:
record-017
Canonical identifier:
10.example/synthetic-017
Library record:
lib-local-0001
These identifiers describe different entities or registration contexts.
The Library record should retain the original source reference and distinguish its local identity from provider identity.
DataCite supports related identifiers for representing relationships among research outputs, including version and part relationships.
Where actual DataCite metadata is used, follow the applicable schema and controlled relationship vocabulary rather than inventing unsupported relationship terms.
6. Validate licensing, rights, and access
Discovery availability does not establish permission to download, store, redistribute, or publish content.
Different operations may require different rights.
| Requested action | Required review | Safe handling |
|---|---|---|
| Save provider reference | Metadata usage rules and permitted access | Preserve source identifier and attribution |
| Store descriptive metadata | Metadata license, terms, and restrictions | Retain permitted metadata only |
| Download full content | Authorization, license, technical access, and storage rights | Import only after affirmative permission |
| Share within an organization | Organizational and source-access restrictions | Enforce intended sharing scope |
| Publish a citation | Attribution and citation requirements | Preserve accurate bibliographic details |
| Redistribute source bytes | Explicit redistribution rights and conditions | Reject or restrict when rights are insufficient |
Conservative rule: Unknown content rights do not authorize downloading or redistributing a source.
A metadata-only import may still require review of provider terms and applicable law.
Do not treat open access, publicly visible metadata, or a working download URL as equivalent to unrestricted reuse rights.
7. Decide the ingestion type
Recommended conceptual outcomes:
- Reference-only: Save a provider reference and permitted minimal metadata without obtaining full content.
- Metadata-only: Save permitted descriptive metadata, source identity, and provenance.
- Content import: Obtain and preserve authorized content, with appropriate storage controls and checksums.
- Rejected: Do not create the requested record because identity, access, rights, or integrity requirements failed.
- Manual review: Hold the candidate when the legal, identity, or technical status requires a decision.
The appropriate option depends on the actual source and deployment. It should not be inferred from whether a provider supplies a downloadable file.
8. Detect duplicates and source revisions
Duplicate detection must distinguish exact duplication from related versions.
Two records with the same title may represent different works.
Two records with different titles may refer to the same underlying research object.
Useful matching signals include:
- Provider ID and provider record identifier.
- Canonical DOI or other persistent identifier.
- Source revision.
- Author and publication metadata.
- Content checksum when content is available and hashing is permitted.
- Explicit provider version relationships.
Do not automatically merge records solely on title similarity.
For exact retries of an accepted source revision, an idempotent ingestion design should return the existing Library record rather than create an unnecessary duplicate.
For a new source revision, preserve the relationship to the previous version instead of silently replacing an accepted research artifact.
9. Define a reproducible ingestion contract
A conceptual ingestion request should include:
Authorized principal and organization
+
Provider identity and source record
+
Source revision
+
Selected ingestion mode
+
Rights decision
+
Idempotency identity
+
Expected Library destination
The response should distinguish:
- Import planned.
- New Library record created.
- Existing matching record returned.
- Import rejected.
- Manual review required.
HTTP success must not be treated as evidence that the correct source, revision, and rights were stored.
For ambiguous write failures, do not blindly retry non-idempotent operations. HTTP Semantics (RFC 9110) distinguishes retry behavior according to method semantics and known idempotency guarantees.
10. Synthetic worked example
The reference exercise uses a synthetic discovery record with explicit metadata-only permission.
| Field | Synthetic value |
|---|---|
| Provider | synthetic-provider |
| Provider record | record-017 |
| Revision | v1 |
| Title | Synthetic Environmental Research Dataset |
| Creator | Example Research Team |
| Source URL | https://example.org/datasets/record-017 |
| Metadata permission | Explicitly permitted for exercise |
| Content permission | Not granted |
| Requested import | Metadata-only |
| Expected publication state | Draft, private |
The example URL and rights decisions are synthetic. They are not assertions about a real source, license, or provider.
11. Implement a reference ingestion workflow
Prepare a local environment:
mkdir discovery-library-ingestion
cd discovery-library-ingestion
python3 -m venv .venv
source .venv/bin/activate
python --version
Save the following as discovery_library.py.
from dataclasses import dataclass
from hashlib import sha256
from urllib.parse import urlsplit
import json
@dataclass(frozen=True)
class DiscoverySource:
provider_id: str
provider_record_id: str
revision: str
source_url: str
title: str
creator: str
rights_statement: str
metadata_allowed: bool
content_allowed: bool
@dataclass(frozen=True)
class IngestContext:
organization_id: str
project_id: str
principal_id: str
authorized: bool
SYNTHETIC_SOURCE = DiscoverySource(
provider_id="synthetic-provider",
provider_record_id="record-017",
revision="v1",
source_url=(
"https://example.org/datasets/record-017"
),
title="Synthetic Environmental Research Dataset",
creator="Example Research Team",
rights_statement="synthetic-metadata-only",
metadata_allowed=True,
content_allowed=False
)
SYNTHETIC_CONTEXT = IngestContext(
organization_id="synthetic-org",
project_id="synthetic-project",
principal_id="synthetic-owner",
authorized=True
)
def nonempty(value):
return isinstance(value, str) and bool(
value.strip()
)
def validate_source(source):
for value in (
source.provider_id,
source.provider_record_id,
source.revision,
source.title,
source.creator,
source.rights_statement
):
if not nonempty(value):
raise ValueError(
"Incomplete source metadata"
)
parsed = urlsplit(source.source_url)
if (
parsed.scheme != "https"
or not parsed.netloc
or parsed.username is not None
or parsed.password is not None
):
raise ValueError(
"Invalid authoritative source URL"
)
return True
def validate_context(context):
for value in (
context.organization_id,
context.project_id,
context.principal_id
):
if not nonempty(value):
raise ValueError(
"Incomplete ownership context"
)
if not context.authorized:
raise PermissionError(
"Ingestion not authorized"
)
return True
def identity_key(source, context):
parts = [
context.organization_id,
source.provider_id,
source.provider_record_id,
source.revision
]
return json.dumps(
parts,
separators=(",", ":")
)
def stable_library_id(source, context):
encoded = identity_key(
source, context
).encode("utf-8")
return "lib-" + sha256(
encoded
).hexdigest()[:20]
def plan_ingest(source, context, mode):
validate_context(context)
validate_source(source)
if mode not in (
"metadata_only",
"content"
):
raise ValueError(
"Unsupported ingestion mode"
)
if not source.metadata_allowed:
raise PermissionError(
"Metadata retention not permitted"
)
if mode == "content":
if not source.content_allowed:
raise PermissionError(
"Content ingestion not permitted"
)
# This reference module does not
# download or store content bytes.
raise NotImplementedError(
"Content storage requires an "
"approved storage integration"
)
return {
"library_id": stable_library_id(
source, context
),
"owner": {
"organization_id": (
context.organization_id
),
"project_id": context.project_id,
"principal_id": (
context.principal_id
)
},
"source": {
"provider_id": source.provider_id,
"provider_record_id": (
source.provider_record_id
),
"revision": source.revision,
"url": source.source_url,
"title": source.title,
"creator": source.creator,
"rights_statement": (
source.rights_statement
)
},
"ingestion_mode": "metadata_only",
"content_stored": False,
"review_status": "draft",
"visibility": "private",
"publication_approval": False,
"provenance_relation": (
"references_provider_source"
)
}
class SyntheticLibrary:
def __init__(self):
self.records = {}
def ingest(self, source, context, mode):
record = plan_ingest(
source, context, mode
)
identifier = record["library_id"]
if identifier in self.records:
existing = self.records[identifier]
if existing != record:
raise ValueError(
"INTEGRITY_CONFLICT"
)
return {
"status": "existing",
"record": existing
}
self.records[identifier] = record
return {
"status": "created",
"record": record
}
def reconcile(source, context, record):
expected = plan_ingest(
source,
context,
"metadata_only"
)
if record != expected:
raise ValueError(
"SOURCE_LIBRARY_RECONCILIATION_FAILED"
)
return True
def main():
library = SyntheticLibrary()
first = library.ingest(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
"metadata_only"
)
second = library.ingest(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
"metadata_only"
)
assert first["status"] == "created"
assert second["status"] == "existing"
assert reconcile(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
first["record"]
)
print(json.dumps({
"classification": "synthetic",
"first_ingest": first["status"],
"repeated_ingest": second["status"],
"library_record": first["record"],
"source_reconciliation": "pass",
"persistent_storage": "not_tested",
"production_runtime": "not_tested"
}, indent=2))
if __name__ == "__main__":
main()
This reference implementation demonstrates identity-preserving metadata mapping and duplicate-safe behavior within a single in-memory Library instance.
It does not implement real authentication, durable storage, transactions, network access, DOI resolution, rights evaluation, or content ingestion. Those require separate verified components.
The example’s authorized flag models a prior authorization decision; in production, the trusted server must make that decision rather than accept it from untrusted client input.
12. Execute the example
python discovery_library.py
Expected outcome:
First ingestion: created
Repeated ingestion: existing
Source reconciliation: pass
Content stored: false
Review status: draft
Visibility: private
Production runtime: not tested
The resulting record retains:
- Provider identity and record identifier.
- Source revision.
- Original URL.
- Title and creator.
- Rights statement.
- Organization, project, and owner context.
- Distinct local Library identifier.
- Metadata-only status.
- Draft and private state.
Repeated ingestion of the same source revision within the same synthetic organization returns the existing record.
Restarting the program does not retain this in-memory Library. Persistence across sessions requires a real database or other authorized storage integration.
13. Implement automated ingestion tests
Save as test_discovery_library.py.
from dataclasses import replace
import copy
import unittest
from discovery_library import (
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
SyntheticLibrary,
plan_ingest,
reconcile,
stable_library_id
)
class IngestionTests(unittest.TestCase):
def setUp(self):
self.library = SyntheticLibrary()
def test_metadata_ingest_created(self):
result = self.library.ingest(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
"metadata_only"
)
self.assertEqual(
result["status"], "created"
)
def test_repeat_returns_existing(self):
self.library.ingest(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
"metadata_only"
)
again = self.library.ingest(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
"metadata_only"
)
self.assertEqual(
again["status"], "existing"
)
def test_source_reference_preserved(self):
record = plan_ingest(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
"metadata_only"
)
self.assertEqual(
record["source"]["url"],
SYNTHETIC_SOURCE.source_url
)
def test_revision_preserved(self):
record = plan_ingest(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
"metadata_only"
)
self.assertEqual(
record["source"]["revision"],
"v1"
)
def test_no_content_stored(self):
record = plan_ingest(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
"metadata_only"
)
self.assertFalse(
record["content_stored"]
)
def test_draft_private_state(self):
record = plan_ingest(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
"metadata_only"
)
self.assertEqual(
record["review_status"],
"draft"
)
self.assertEqual(
record["visibility"],
"private"
)
def test_unauthorized_rejected(self):
context = replace(
SYNTHETIC_CONTEXT,
authorized=False
)
with self.assertRaises(
PermissionError
):
plan_ingest(
SYNTHETIC_SOURCE,
context,
"metadata_only"
)
def test_unknown_rights_rejected(self):
source = replace(
SYNTHETIC_SOURCE,
metadata_allowed=False
)
with self.assertRaises(
PermissionError
):
plan_ingest(
source,
SYNTHETIC_CONTEXT,
"metadata_only"
)
def test_content_import_rejected(self):
with self.assertRaises(
PermissionError
):
plan_ingest(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
"content"
)
def test_invalid_url_rejected(self):
source = replace(
SYNTHETIC_SOURCE,
source_url="http://example.org"
)
with self.assertRaises(ValueError):
plan_ingest(
source,
SYNTHETIC_CONTEXT,
"metadata_only"
)
def test_missing_provider_id_rejected(self):
source = replace(
SYNTHETIC_SOURCE,
provider_id=""
)
with self.assertRaises(ValueError):
plan_ingest(
source,
SYNTHETIC_CONTEXT,
"metadata_only"
)
def test_new_revision_gets_new_id(self):
updated = replace(
SYNTHETIC_SOURCE,
revision="v2"
)
self.assertNotEqual(
stable_library_id(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT
),
stable_library_id(
updated,
SYNTHETIC_CONTEXT
)
)
def test_organization_isolation(self):
other = replace(
SYNTHETIC_CONTEXT,
organization_id="other-org"
)
self.assertNotEqual(
stable_library_id(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT
),
stable_library_id(
SYNTHETIC_SOURCE,
other
)
)
def test_correct_reconciliation(self):
record = plan_ingest(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
"metadata_only"
)
self.assertTrue(
reconcile(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
record
)
)
def test_tampered_provenance_rejected(self):
record = plan_ingest(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
"metadata_only"
)
broken = copy.deepcopy(record)
broken["source"][
"provider_record_id"
] = "different-record"
with self.assertRaises(ValueError):
reconcile(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
broken
)
def test_unsupported_mode_rejected(self):
with self.assertRaises(ValueError):
plan_ingest(
SYNTHETIC_SOURCE,
SYNTHETIC_CONTEXT,
"publish"
)
if __name__ == "__main__":
unittest.main()
14. Run the regression tests
python -m unittest -v test_discovery_library.py
The reference suite defines sixteen tests.
They cover:
- Metadata-only record creation.
- Repeated-ingest behavior.
- Original source URL preservation.
- Source revision preservation.
- Content-storage restrictions.
- Private draft status.
- Unauthorized ingestion rejection.
- Metadata-rights denial.
- Content-ingestion denial.
- Invalid source URLs.
- Missing source identity.
- New revision identity.
- Organization partitioning.
- Source-to-Library reconciliation.
- Provenance tampering detection.
- Unsupported operation rejection.
These are synthetic unit-test definitions. Their execution does not certify production database transactions, authentication, source resolution, rights enforcement, or cross-owner isolation.
15. Verify original provider reference resolution
The central acceptance condition requires more than retaining a URL string.
For a real provider source, verification should establish that the original reference resolves to the intended resource or an appropriate persistent identifier record.
Check:
- The provider record ID identifies the intended source.
- The canonical identifier is correctly formed and associated with that source.
- The landing page or resolution endpoint is appropriate and authorized.
- Redirects do not silently lead to an unrelated resource.
- The source revision is identifiable where the provider supports revisions.
- Rights and attribution metadata remain associated with the correct source.
- The Library record does not substitute an unrelated or newer resource.
A provider link may become unavailable after ingestion. The Library should retain the original reference and resolution history, rather than erase provenance when the link fails.
A successful HTTP response alone does not prove the content is the intended source. Confirm source identity using provider identifiers, metadata, and authorized verification methods.
16. Validate persistence across sessions
A persistent Library record should survive:
- Page reload.
- Logout and authorized reauthentication.
- Switching between permitted application sessions.
- Application restart.
- Normal database-backed retrieval.
Acceptance should confirm that the same logical Library record and source revision are returned.
Also test that an unrelated owner cannot access the record merely by knowing its identifier.
The synthetic code above does not implement these persistence or access tests. They require a deployed or properly isolated integration environment with real storage and trusted authorization.
17. Preserve provenance and research relationships
A robust ingestion process should distinguish the original provider source from the local record created by ingestion.
The W3C PROV model supports describing entities, activities, and agents involved in provenance relationships.
For example:
Source entity:
Provider record and revision
Ingestion activity:
Authorized metadata import
Generated entity:
Library record
Responsible agent:
Authorized user or service identity
The source, ingestion event, and Library object should remain separately identifiable.
The Library object should also retain any relevant citation or persistent identifier relationships, rather than assuming the ingestion event creates a new scholarly publication.
18. Create a machine-readable ingestion receipt
In a production implementation, preserve the ingestion input, decision, output identity, and actual verification state.
Illustrative receipt:
{
"schema_version": "example-1.0",
"workflow": "discovery_to_library",
"classification": "synthetic",
"source": {
"provider_id": "synthetic-provider",
"provider_record_id": "record-017",
"revision": "v1",
"source_url": "https://example.org/datasets/record-017"
},
"ingestion": {
"mode": "metadata_only",
"content_stored": false,
"rights_decision": "synthetic_metadata_permitted",
"duplicate_handling": "return_existing"
},
"library": {
"record_id": null,
"visibility": "private",
"review_status": "draft",
"publication_approval": false
},
"acceptance": {
"source_identity": "not_tested",
"provider_resolution": "not_tested",
"metadata_integrity": "not_tested",
"rights": "not_tested",
"authorization": "not_tested",
"idempotency": "not_tested",
"persistence": "not_tested",
"cross_owner_isolation": "not_tested",
"production_runtime": "not_tested"
},
"release_decision": "NO_GO"
}
This is a proposed documentation format, not an existing Sustainable Catalyst endpoint or database schema.
Real identifiers, timestamps, checksums, rights approvals, and test results must come from actual system evidence.
19. Troubleshoot common ingestion failures
| Symptom | Potential cause | Safe response |
|---|---|---|
| Provider source cannot be resolved | Incorrect ID, removed record, redirect, or provider outage | Preserve original reference and investigate resolution |
| Import denied | Missing authorization or insufficient rights | Review actual permissions; do not bypass |
| Duplicate Library records | Missing idempotency or identity matching | Reconcile committed operations before retrying |
| Metadata missing after import | Schema mapping or serialization defect | Compare provider and stored metadata |
| Source revision replaced | Unsafe overwrite or incorrect version mapping | Preserve both revisions and investigate relationship |
| Content import blocked | Rights or storage authorization missing | Use permitted metadata-only handling if authorized |
| Record disappears after reload | Uncommitted transaction, ephemeral storage, or read-scope mismatch | Inspect persistence and authorization |
| Another owner can see the record | Broken access control or cache partitioning | Escalate security incident and preserve evidence |
| Record shown as published | State-transition or UI defect | Restore correct draft status and review publication impact |
Do not blindly repeat an ingestion write after a timeout. First determine whether the operation committed, and use the deployed system’s documented idempotency or reconciliation mechanism.
20. Scientific and technical acceptance matrix
| Criterion | Pass condition | Evidence |
|---|---|---|
| Source identity | Provider and source record correctly identified | Source metadata reconciliation |
| Original reference | Authoritative source reference retained and verified where supported | Provider resolution evidence |
| Source revision | Correct revision preserved | Revision inspection |
| Metadata integrity | Mapped fields match permitted source metadata | Schema and field checks |
| Rights | Requested storage and use are authorized | Rights decision record |
| Authorization | Trusted backend verifies owner and project scope | Access-control tests |
| Duplicate safety | Repeated accepted requests do not create unintended duplicates | Idempotency tests |
| Version handling | New revisions do not silently overwrite accepted versions | Version-transition tests |
| Persistent storage | Record survives required session and service boundaries | Database and reload acceptance |
| Cross-owner isolation | Unauthorized owners cannot retrieve protected records | Negative security tests |
| Provenance | Original provider relationship remains reconstructable | Lineage inspection |
| Content integrity | Stored bytes verified when content import is permitted | Checksum and storage receipt |
| Review status | Draft, reviewed, approved, and public states remain distinct | State-transition tests |
| Downstream use | Research workflows resolve the correct Library artifact | Integration acceptance |
| Production readiness | Deployed implementation independently verified | Runtime and release receipt |
Acceptance rule: Record each applicable criterion as Pass, Fail, Not Tested, or Not Applicable. A successful HTTP response or locally created record does not establish completed ingestion until the required identity, rights, storage, and provenance checks pass.
21. Sustainable Catalyst cross-application integration
Discovery-to-Library ingestion should support the intended movement from discovering information to preserving and analyzing research evidence.
| Application | Intended responsibility |
|---|---|
| Unified Discovery | Find candidate sources, retain provider references, and initiate authorized source selection |
| Library | Validate metadata, rights, identity, and provenance; preserve governed source records |
| Workbench | Consume authorized, versioned Library artifacts in reproducible calculations where implemented |
| Research Lab | Evaluate the scientific suitability and methodological limitations of imported sources |
| Site Intelligence | Preserve acquisition, coordinate, temporal, and provider metadata for spatial sources where supported |
| Decision Studio | Use accepted source evidence in governed model and scenario workflows |
| Workspace | Track source ownership, analytical use, review status, and project relationships |
| Research | Publish reviewed outputs with correct citations and source relationships |
| Platform Core | Enforce identity, authorization, organizational boundaries, and governance controls |
These are proposed architectural responsibilities, not independently verified production integrations.
22. Source audit before production certification
Before certifying discovery-to-Library ingestion in Sustainable Catalyst, attach:
- Owning repository and exact implementation commit.
- Actual discovery and Library API contracts.
- Provider identity and metadata schemas.
- Rights and licensing enforcement design.
- Real source-resolution behavior.
- Duplicate detection and idempotency semantics.
- Actual persistence and transaction guarantees.
- Source revision and provenance mappings.
- Content-storage and checksum behavior.
- Trusted identity and project-ownership enforcement.
- Cross-owner negative tests.
- Authorization and publication-state tests.
- Browser or client integration acceptance.
- Executed database persistence and replay evidence.
- Recovery and rollback evidence.
- Known limitations and unsupported provider capabilities.
A discovery result that appears in Library’s interface does not by itself prove that the correct source, revision, permissions, or underlying bytes were retained.
23. Escalation and safe recovery
Escalate when:
- Source metadata cannot be reconciled with its originating provider.
- Identity collisions create incorrect Library relationships.
- Rights information is missing or contradictory.
- Restricted content has been copied without authorization.
- Repeated requests generate unintended duplicate records.
- A new revision overwrites an accepted analytical dependency.
- Cross-owner access controls fail.
- Private source content is exposed publicly.
- A record is presented as reviewed or published without approval.
- Downstream scientific outputs depend on an incorrect imported source.
Preserve the last accepted state and relevant audit evidence. Stop affected content import, publication, or unsafe mutation when required.
Perform destructive correction, database restoration, or permission changes only through authorized recovery procedures.
24. Technical references
- DataCite Metadata Working Group (2026). DataCite Metadata Schema Documentation for the Publication and Citation of Research Data and Other Research Outputs. Version 4.7. DataCite e.V. Available at: https://doi.org/10.14454/qdd3-ps68.
- World Wide Web Consortium (W3C) (2013). PROV-O: The PROV Ontology. W3C Recommendation. Available at: https://www.w3.org/TR/prov-o/.
- World Wide Web Consortium (W3C) (2013). PROV-DM: The PROV Data Model. Available at: https://www.w3.org/TR/prov-dm/.
- Fielding, R., Nottingham, M. and Reschke, J. (2022). HTTP Semantics. RFC 9110. Available at: https://www.rfc-editor.org/rfc/rfc9110.html.
- Python Software Foundation (n.d.). hashlib — Secure Hashes and Message Digests. Available at: Python documentation.
- Python Software Foundation (n.d.). unittest — Unit Testing Framework. Available at: Python documentation.
- OWASP Foundation (2023). API Security Top 10. Available at: OWASP API Security Project.
- World Wide Web Consortium (W3C) (2024). Web Content Accessibility Guidelines (WCAG) 2.2. Available at: https://www.w3.org/TR/WCAG22/.
25. Completion and verification record
| Field | Required record |
|---|---|
| Ingestion identifier | Unique ingestion or request reference |
| Provider identity | Source provider and record identifier |
| Source revision | Version and original reference |
| Ownership | Authorized organization, project, and principal |
| Requested mode | Reference-only, metadata-only, or content import |
| Metadata validation | Pass, Fail, or Not Tested |
| Rights assessment | Approved, Rejected, or Pending |
| Authorization | Pass, Fail, or Not Tested |
| Source resolution | Pass, Fail, or Not Tested |
| Library identity | Created or existing record ID |
| Duplicate handling | Pass, Fail, or Not Tested |
| Revision integrity | Pass, Fail, or Not Tested |
| Storage persistence | Pass, Fail, or Not Tested |
| Cross-owner isolation | Pass, Fail, or Not Tested |
| Provenance | Pass, Fail, or Not Tested |
| Content checksum | Verified digest or Not Applicable |
| Review state | Draft, Reviewed, Approved, or Public |
| Runtime acceptance | Executed integration evidence |
| Reviewer | Actual reviewer and review date |
| Outstanding limitations | Unresolved rights, identity, storage, or integration issues |
Completion criterion: Discovery-to-Library ingestion is accepted when a properly authorized source has been identified, the permitted metadata or content has been stored under the correct Library identity, original provider and revision relationships remain verifiable, duplicate and access-control requirements pass, and persistence and provenance evidence are available.
Scientific limitation: Source ingestion does not establish that the source is accurate, representative, methodologically valid, or appropriate for a particular research conclusion. These are separate scientific assessment responsibilities.
Current implementation status: Practical ingestion methodology, synthetic metadata-mapping example, deterministic local Library identity, duplicate-safe behavior, source reconciliation, negative-test definitions, and proposed acceptance criteria documented. No specific Sustainable Catalyst Unified Discovery-to-Library connector, durable storage integration, source rights engine, or publication workflow is certified without implementation-specific source audit, executed integration tests, runtime inspection, and release acceptance evidence.
