[−][src]Struct atomic_lib::store::Store
The in-memory store of data, containing the Resources, Properties and Classes
Implementations
impl Store
[src]
pub fn init() -> Store
[src]
pub fn read_store_from_file<'a>(
&mut self,
path: &'a PathBuf
) -> AtomicResult<()>
[src]
&mut self,
path: &'a PathBuf
) -> AtomicResult<()>
Reads an .ad3 (Atomic Data Triples) graph and adds it to the store
pub fn write_store_to_disk(&mut self, path: &PathBuf) -> AtomicResult<()>
[src]
Serializes the current store and saves to path
Trait Implementations
impl Clone for Store
[src]
impl Storelike for Store
[src]
fn add_atoms(&self, atoms: Vec<Atom>) -> AtomicResult<()>
[src]
fn add_resource_string(
&self,
subject: String,
resource: &ResourceString
) -> AtomicResult<()>
[src]
&self,
subject: String,
resource: &ResourceString
) -> AtomicResult<()>
fn all_resources(&self) -> AtomicResult<ResourceCollection>
[src]
fn get_resource_string(
&self,
resource_url: &str
) -> AtomicResult<ResourceString>
[src]
&self,
resource_url: &str
) -> AtomicResult<ResourceString>
fn add_resource(&self, resource: &Resource<'_>) -> AtomicResult<()>
[src]
fn fetch_resource(&self, subject: &str) -> AtomicResult<ResourceString>
[src]
fn get_resource(&self, subject: &str) -> AtomicResult<Resource<'_>> where
Self: Sized,
[src]
Self: Sized,
fn get_class(&self, subject: &str) -> AtomicResult<Class>
[src]
fn get_classes_for_subject(&self, subject: &str) -> AtomicResult<Vec<Class>>
[src]
fn get_collection(
&self,
tpf: TPFQuery,
sort_by: String,
sort_desc: bool,
_page_nr: u8,
_page_size: u8
) -> AtomicResult<Collection>
[src]
&self,
tpf: TPFQuery,
sort_by: String,
sort_desc: bool,
_page_nr: u8,
_page_size: u8
) -> AtomicResult<Collection>
fn get_property(&self, url: &str) -> AtomicResult<Property>
[src]
fn add_atom(&self, atom: Atom) -> AtomicResult<()>
[src]
fn process_delta(&self, delta: Delta) -> AtomicResult<()>
[src]
fn property_shortname_to_url(
&self,
shortname: &str,
resource: &ResourceString
) -> AtomicResult<String>
[src]
&self,
shortname: &str,
resource: &ResourceString
) -> AtomicResult<String>
fn property_url_to_shortname(&self, url: &str) -> AtomicResult<String>
[src]
fn resource_to_ad3(&self, subject: &str) -> AtomicResult<String>
[src]
fn resource_to_json(
&self,
resource_url: &str,
_depth: u8,
json_ld: bool
) -> AtomicResult<String>
[src]
&self,
resource_url: &str,
_depth: u8,
json_ld: bool
) -> AtomicResult<String>
fn tpf(
&self,
q_subject: Option<&str>,
q_property: Option<&str>,
q_value: Option<&str>
) -> AtomicResult<Vec<Atom>>
[src]
&self,
q_subject: Option<&str>,
q_property: Option<&str>,
q_value: Option<&str>
) -> AtomicResult<Vec<Atom>>
fn get_path(
&self,
atomic_path: &str,
mapping: Option<&Mapping>
) -> AtomicResult<PathReturn>
[src]
&self,
atomic_path: &str,
mapping: Option<&Mapping>
) -> AtomicResult<PathReturn>
fn validate_store(&self) -> AtomicResult<()>
[src]
fn populate(&self) -> AtomicResult<()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnwindSafe for Store
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,