[−][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]
pub fn add_atoms(&self, atoms: Vec<Atom>) -> AtomicResult<()>
[src]
pub fn add_resource_string(
&self,
subject: String,
resource: &ResourceString
) -> AtomicResult<()>
[src]
&self,
subject: String,
resource: &ResourceString
) -> AtomicResult<()>
pub fn all_resources(&self) -> ResourceCollection
[src]
pub fn get_base_url(&self) -> String
[src]
pub fn get_resource_string(
&self,
resource_url: &str
) -> AtomicResult<ResourceString>
[src]
&self,
resource_url: &str
) -> AtomicResult<ResourceString>
pub fn remove_resource(&self, subject: &str)
[src]
pub fn commit(&self, commit: Commit) -> AtomicResult<Resource<'_>> where
Self: Sized,
[src]
Self: Sized,
pub fn add_resource(&self, resource: &Resource<'_>) -> AtomicResult<()>
[src]
pub fn create_agent(&self, name: &str) -> AtomicResult<(String, String)> where
Self: Sized,
[src]
Self: Sized,
pub fn fetch_resource(&self, subject: &str) -> AtomicResult<ResourceString>
[src]
pub fn get_resource(&self, subject: &str) -> AtomicResult<Resource<'_>> where
Self: Sized,
[src]
Self: Sized,
pub fn get_class(&self, subject: &str) -> AtomicResult<Class>
[src]
pub fn get_classes_for_subject(&self, subject: &str) -> AtomicResult<Vec<Class>>
[src]
pub fn new_collection(
&self,
collection_builder: CollectionBuilder
) -> AtomicResult<Collection> where
Self: Sized,
[src]
&self,
collection_builder: CollectionBuilder
) -> AtomicResult<Collection> where
Self: Sized,
pub fn get_property(&self, url: &str) -> AtomicResult<Property>
[src]
pub fn get_resource_extended(&self, subject: &str) -> AtomicResult<Resource<'_>> where
Self: Sized,
[src]
Self: Sized,
pub fn add_atom(&self, atom: Atom) -> AtomicResult<()>
[src]
pub fn process_delta(&self, delta: DeltaDeprecated) -> AtomicResult<()>
[src]
pub fn property_shortname_to_url(
&self,
shortname: &str,
resource: &ResourceString
) -> AtomicResult<String>
[src]
&self,
shortname: &str,
resource: &ResourceString
) -> AtomicResult<String>
pub fn property_url_to_shortname(&self, url: &str) -> AtomicResult<String>
[src]
pub 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>>
pub fn get_path(
&self,
atomic_path: &str,
mapping: Option<&Mapping>
) -> AtomicResult<PathReturn> where
Self: Sized,
[src]
&self,
atomic_path: &str,
mapping: Option<&Mapping>
) -> AtomicResult<PathReturn> where
Self: Sized,
pub fn populate(&self) -> AtomicResult<()> where
Self: Sized,
[src]
Self: Sized,
pub fn validate(&self) -> ValidationReport where
Self: Sized,
[src]
Self: Sized,
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,