pub struct RdfDataConfig {
pub base: Option<IriS>,
pub endpoints: Option<HashMap<String, EndpointDescription>>,
pub automatic_base: Option<bool>,
}
Expand description
This struct can be used to define configuration of RDF data readers
Fields§
§base: Option<IriS>
Default base to resolve relative IRIs, if it is None
relative IRIs will be marked as errors`
endpoints: Option<HashMap<String, EndpointDescription>>
Endpoints to query RDF data. Each endpoint description is identified by a name
automatic_base: Option<bool>
If true, the base IRI will be automatically set to the local file or URI of the document
Implementations§
Source§impl RdfDataConfig
impl RdfDataConfig
pub fn new() -> RdfDataConfig
pub fn with_wikidata(self) -> Self
pub fn from_path<P: AsRef<Path>>( path: P, ) -> Result<RdfDataConfig, RdfDataConfigError>
pub fn find_endpoint(&self, str: &str) -> Option<&EndpointDescription>
Trait Implementations§
Source§impl Clone for RdfDataConfig
impl Clone for RdfDataConfig
Source§fn clone(&self) -> RdfDataConfig
fn clone(&self) -> RdfDataConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RdfDataConfig
impl Debug for RdfDataConfig
Source§impl Default for RdfDataConfig
impl Default for RdfDataConfig
Source§impl<'de> Deserialize<'de> for RdfDataConfig
impl<'de> Deserialize<'de> for RdfDataConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RdfDataConfig
impl PartialEq for RdfDataConfig
Source§impl Serialize for RdfDataConfig
impl Serialize for RdfDataConfig
impl StructuralPartialEq for RdfDataConfig
Auto Trait Implementations§
impl Freeze for RdfDataConfig
impl RefUnwindSafe for RdfDataConfig
impl Send for RdfDataConfig
impl Sync for RdfDataConfig
impl Unpin for RdfDataConfig
impl UnwindSafe for RdfDataConfig
Blanket Implementations§
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