open-standards/smart-byte/vocab/v1.ttl
Transaction Science 2354fd9a96 vocab v1 across sister standards: arl + openpay + smart-byte + eoc + wai + joule-code (wave-23 #3)
Carries the third-generation-interop pattern shipped at
jouleclaw/vocab/v1 across every TX Science open standard. Every
sister standard now has a stable IRI for every wire field of
every major data type, plus a Turtle ontology covering classes,
enumerations, and properties.

What ships, per standard:

  arl/vocab/         Claim, Session, Evaluation, Attestation;
                     the four axes (Validation Depth 1–9,
                     Convergence A–E, EnergyProfile, S0–S4);
                     ARL-S isolation tiers 0–3.

  openpay/vocab/     Money, Currency, PaymentMethod, Receipt,
                     Refund, Dispute; the five rails (FedNow / PIX
                     / SEPA Instant / USDC / USDT); the four card
                     schemes; the seven lifecycle states.

  smart-byte/vocab/  Byte, Envelope, Issuer, Holder, KERI AID,
                     LockstepEvent; the cargo-class taxonomy
                     (Value / Coding / Identity / Telemetry /
                     Custom) and the shared HwShunt / ModelBased /
                     Estimator energy-provenance enum.

  eoc/vocab/         Query, Resolution, EOC Receipt, the four
                     cascade stages (Cache / KeyValue / Graph /
                     Neural), CarbonRecord, VendorAPI binding.

  wai/vocab/         Manifest, Capability, Codec; the two paths
                     (NeuralPath shared-prior + ZerothPath
                     registered codec menu); the six modalities;
                     the nine codecs in the v1 menu.

  joule-code/vocab/  README.md complements the LEXICON.md / v1.jsonld
                     / v1.ttl already shipped in b838b86.

Every JSON-LD `@context` pairs with a Turtle ontology. Every
ontology subclasses W3C PROV-O where the alignment is exact
(prov:Activity for sessions / resolutions / lockstep events,
prov:Entity for source trees, prov:Agent for issuers / agents).

Pattern is identical to jouleclaw/vocab/v1 so a downstream
consumer that already loads one vocabulary picks up the others
with no new code: same namespace shape, same JSON-LD context
binding, same Turtle conventions.

Standards documents stay unchanged on the wire: vocabularies are
optional additions, not modifications. A receipt or claim that
doesn't carry `@context` deserialises exactly as before; one that
does gains typed RDF semantics for free.

Licences match each standard's spec text — CC-BY-4.0 for ARL,
Smart Byte, EOC, joule-code; Apache-2.0 for OpenPay, WAI.

Deploy follow-up: extending the Caddyfile @-blocks of arl /
openpay / byte / eoc / wai / joulecode sites to serve `.jsonld`
files as `application/ld+json` is a separate small change. Until
then the vocab is reachable via the GitHub raw URL.
2026-06-02 14:16:58 -04:00

60 lines
4.7 KiB
Turtle

@prefix sb: <https://byte.transaction.science/vocab/v1#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix dc: <http://purl.org/dc/terms/> .
<https://byte.transaction.science/vocab/v1> a owl:Ontology ;
dc:title "Smart Byte vocabulary (v1)" ;
dc:description "Stable IRIs for the Smart Byte open standard: content-addressed signed envelopes, lockstep replication events, KERI-based issuer identity, and the cargo-class taxonomy." ;
dc:license <https://creativecommons.org/licenses/by/4.0/> ;
owl:versionInfo "1" .
# ─── Classes ────────────────────────────────────────────────────────
sb:Byte a owl:Class ; rdfs:label "Smart Byte" ;
rdfs:comment "A signed, content-addressed envelope carrying any cargo with provenance and energy cost." .
sb:Envelope a owl:Class ; rdfs:label "Signed envelope" .
sb:Cargo a owl:Class ; rdfs:label "Cargo payload" .
sb:Issuer a owl:Class ; rdfs:label "Issuer (KERI AID)" ; rdfs:subClassOf prov:Agent .
sb:Holder a owl:Class ; rdfs:label "Holder identity" .
sb:LockstepEvent a owl:Class ; rdfs:label "Lockstep replication event" ; rdfs:subClassOf prov:Activity .
sb:Receipt a owl:Class ; rdfs:label "Energy/joule receipt for a Byte" .
sb:Cluster a owl:Class ; rdfs:label "Lockstep cluster" .
sb:AID a owl:Class ; rdfs:label "KERI Autonomous Identifier" .
# ─── Cargo class taxonomy ────────────────────────────────────────────
sb:CargoClass a owl:Class ; rdfs:label "Cargo class" .
sb:Value a sb:CargoClass ; rdfs:label "Monetary or financial value" .
sb:Coding a sb:CargoClass ; rdfs:label "Coding / software-engineering work" .
sb:Identity a sb:CargoClass ; rdfs:label "Identity attestation" .
sb:Telemetry a sb:CargoClass ; rdfs:label "Telemetry / measurement" .
sb:Custom a sb:CargoClass ; rdfs:label "Caller-defined cargo class" .
# ─── Energy provenance ───────────────────────────────────────────────
sb:Provenance a owl:Class ; rdfs:label "Energy provenance" .
sb:HwShunt a sb:Provenance ; rdfs:label "Hardware shunt" .
sb:ModelBased a sb:Provenance ; rdfs:label "Model-based estimate" .
sb:Estimator a sb:Provenance ; rdfs:label "Estimator" .
# ─── Properties ──────────────────────────────────────────────────────
sb:issuer a owl:ObjectProperty ; rdfs:domain sb:Byte ; rdfs:range sb:Issuer ; rdfs:label "Issuer" .
sb:holder a owl:ObjectProperty ; rdfs:domain sb:Byte ; rdfs:range sb:Holder ; rdfs:label "Holder" .
sb:contentHash a owl:DatatypeProperty ; rdfs:domain sb:Byte ; rdfs:range xsd:string ; rdfs:label "Content hash (BLAKE3 hex)" .
sb:previousHash a owl:DatatypeProperty ; rdfs:domain sb:LockstepEvent ; rdfs:range xsd:string ; rdfs:label "Previous-event hash (replication chain)" .
sb:cargo a owl:DatatypeProperty ; rdfs:domain sb:Byte ; rdfs:range xsd:string ; rdfs:label "Cargo payload (opaque base64)" .
sb:cargoClass a owl:ObjectProperty ; rdfs:domain sb:Byte ; rdfs:range sb:CargoClass ; rdfs:label "Cargo class" .
sb:joulesMicrojoules a owl:DatatypeProperty ; rdfs:range xsd:nonNegativeInteger ; rdfs:label "Energy (microjoules)" .
sb:energyProvenance a owl:ObjectProperty ; rdfs:range sb:Provenance ; rdfs:label "Energy provenance" .
sb:issuedAt a owl:DatatypeProperty ; rdfs:range xsd:dateTime ; rdfs:label "Issued at (RFC 3339)" .
sb:sequence a owl:DatatypeProperty ; rdfs:range xsd:nonNegativeInteger ; rdfs:label "Per-issuer sequence number" .
sb:lockstepHeight a owl:DatatypeProperty ; rdfs:domain sb:LockstepEvent ; rdfs:range xsd:nonNegativeInteger ; rdfs:label "Lockstep height" .
sb:aid a owl:DatatypeProperty ; rdfs:domain sb:AID ; rdfs:range xsd:string ; rdfs:label "KERI AID string" .
sb:signature a owl:DatatypeProperty ; rdfs:range xsd:string ; rdfs:label "Signature (hex)" .
sb:rotatedAt a owl:DatatypeProperty ; rdfs:domain sb:AID ; rdfs:range xsd:dateTime ; rdfs:label "Rotation timestamp" .
sb:schemaId a owl:DatatypeProperty ; rdfs:range xsd:string ; rdfs:label "Schema id (e.g. \"byte/1\")" .