Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test-wasm:

# Rebuild static JSON-LD context files
update-static-contexts:
cd static_contexts && make clean && make all
cd integrity-jsonld/static_contexts && make clean && make all

# Update README.md with auto-generated content (Justfile commands, etc.)
readme-update:
Expand Down
46 changes: 0 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,52 +28,6 @@ Signer and blob backends are now split into dedicated workspace crates and are f

Default features include local blob backends (`blob-local`, `blob-memory`) and local software signers (`signer-ed25519`, `signer-p256`, `signer-secp256k1`).

## Static Contexts

The `static_contexts/` directory contains JSON-LD context documents that define the vocabulary and semantics for the Integrity Fabric. These contexts enable interoperable, machine-readable metadata using linked data standards.

The schema is defined in <https://github.com/eqtylab/integrity-schema>

### Structure

- **`http/`** - W3C standard contexts cached locally for offline processing:
- W3C Verifiable Credentials v1 and v2
- W3C DID (Decentralized Identifiers) v1
- W3C Security vocabularies v1 and v2

- **`cid/`** - Custom Integrity Graph contexts stored by their content identifiers (CIDs):
- Domain-specific terms for data lineage and provenance
- Custom types like `MetadataRegistration`, `ComputeRegistration`, `DataRegistration`
- Verifiable metadata schemas for the Integrity Fabric

### Usage

The Integrity Graph common context is referenced in code via:

```rust
#[cfg(feature = "jsonld")]
use integrity::json_ld::ig_common_context_link;

#[cfg(feature = "jsonld")]
let context_urn = ig_common_context_link();
// Returns: "urn:cid:bafkr4ic7ydwk3rtoltyzx4zn3vvu3r7hpzxtmbzmnksotx7k5nbnwclf6m"
```

These contexts are embedded at compile time and used by the JSON-LD processor to:

- Expand compact JSON-LD documents to their canonical form
- Resolve context references without network requests
- Ensure deterministic content addressing of linked data

### Regenerating Contexts

To update the static contexts (e.g., after schema changes):

```bash
just update-static-contexts
```

This downloads the latest W3C contexts and regenerates the CID-indexed files.

## FFI (C ABI)

Expand Down
46 changes: 46 additions & 0 deletions integrity-jsonld/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## Static Contexts

The `static_contexts/` directory contains JSON-LD context documents that define the vocabulary and semantics for the Integrity Fabric. These contexts enable interoperable, machine-readable metadata using linked data standards.

The schema is defined in <https://github.com/eqtylab/integrity-schema>

### Structure

- **`http/`** - W3C standard contexts cached locally for offline processing:
- W3C Verifiable Credentials v1 and v2
- W3C DID (Decentralized Identifiers) v1
- W3C Security vocabularies v1 and v2

- **`cid/`** - Custom Integrity Graph contexts stored by their content identifiers (CIDs):
- Domain-specific terms for data lineage and provenance
- Custom types like `MetadataRegistration`, `ComputeRegistration`, `DataRegistration`
- Verifiable metadata schemas for the Integrity Fabric

### Usage

The Integrity Graph common context is referenced in code via:

```rust
#[cfg(feature = "jsonld")]
use integrity::json_ld::ig_common_context_link;

#[cfg(feature = "jsonld")]
let context_urn = ig_common_context_link();
// Returns: "urn:cid:bafkr4ic7ydwk3rtoltyzx4zn3vvu3r7hpzxtmbzmnksotx7k5nbnwclf6m"
```

These contexts are embedded at compile time and used by the JSON-LD processor to:

- Expand compact JSON-LD documents to their canonical form
- Resolve context references without network requests
- Ensure deterministic content addressing of linked data

### Regenerating Contexts

To update the static contexts (e.g., after schema changes):

```bash
just update-static-contexts
```

This downloads the latest W3C contexts and regenerates the CID-indexed files.
36 changes: 0 additions & 36 deletions static_contexts/Makefile

This file was deleted.

This file was deleted.

Loading