pub struct SolidExporter;Expand description
Translates a Qualia .q42 volume into a Solid-portable RDF directory.
Writes:
data.ttl— Turtle triples (lexicon-resolved when Q42LEX present)data.nq— N-Quads (named graphs / context preserved)data.jsonld— compact JSON-LDdata.ttl.acl— WAC (owner-only unlessgrant_public_read)manifest.jsonld— leave/migrate receipt for Solid-Databox importSANCTUARY_NOTICE.txt— user-facing choice text (always written)
Implementations§
Source§impl SolidExporter
impl SolidExporter
Sourcepub fn plan_notice(input_q42_path: &str) -> Result<SanctuaryMigrationNotice>
pub fn plan_notice(input_q42_path: &str) -> Result<SanctuaryMigrationNotice>
Pre-flight: notice the desktop/CLI must show before asking for a choice.
Sourcepub fn export_to_solid_pod(
input_q42_path: &str,
output_dir_path: &str,
) -> Result<()>
pub fn export_to_solid_pod( input_q42_path: &str, output_dir_path: &str, ) -> Result<()>
Export with an explicit sanctuary choice. Use
plan_notice first when requires_choice is true.
export_to_solid_pod without a choice uses Unset and fails closed if
sanctuary data is present — desktop must collect omit vs reclassify.
Sourcepub fn export_with_choice(
input_q42_path: &str,
output_dir_path: &str,
choice: SanctuaryExportChoice,
) -> Result<()>
pub fn export_with_choice( input_q42_path: &str, output_dir_path: &str, choice: SanctuaryExportChoice, ) -> Result<()>
Exports with a choice.
Sourcepub fn export_with_options(
input_q42_path: &str,
output_dir_path: &str,
opts: &SolidMigrationOptions,
) -> Result<()>
pub fn export_with_options( input_q42_path: &str, output_dir_path: &str, opts: &SolidMigrationOptions, ) -> Result<()>
Exports with options.
Auto Trait Implementations§
impl Freeze for SolidExporter
impl RefUnwindSafe for SolidExporter
impl Send for SolidExporter
impl Sync for SolidExporter
impl Unpin for SolidExporter
impl UnsafeUnpin for SolidExporter
impl UnwindSafe for SolidExporter
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more