[−][src]Struct papers::pubmed2wikidata::Pubmed2Wikidata
Methods
impl Pubmed2Wikidata
[src]
pub fn new() -> Self
[src]
pub fn get_cached_publication_from_id(
&self,
publication_id: &String
) -> Option<&PubmedArticle>
[src]
&self,
publication_id: &String
) -> Option<&PubmedArticle>
Trait Implementations
impl ScientificPublicationAdapter for Pubmed2Wikidata
[src]
fn name(&self) -> &str
[src]
fn author_cache(&self) -> &HashMap<String, String>
[src]
fn author_cache_mut(&mut self) -> &mut HashMap<String, String>
[src]
fn publication_property(&self) -> Option<String>
[src]
fn get_work_titles(&self, publication_id: &String) -> Vec<LocaleString>
[src]
fn get_work_issn(&self, publication_id: &String) -> Option<String>
[src]
fn get_identifier_list(
&mut self,
ids: &Vec<GenericWorkIdentifier>
) -> Vec<GenericWorkIdentifier>
[src]
&mut self,
ids: &Vec<GenericWorkIdentifier>
) -> Vec<GenericWorkIdentifier>
fn update_statements_for_publication_id(
&self,
publication_id: &String,
item: &mut Entity
)
[src]
&self,
publication_id: &String,
item: &mut Entity
)
fn do_cache_work(&mut self, publication_id: &String) -> Option<String>
[src]
fn get_author_list(&mut self, publication_id: &String) -> Vec<GenericAuthorInfo>
[src]
fn publication_id_from_item(&mut self, item: &Entity) -> Option<String>
[src]
Tries to determine the publication ID of the resource, from a Wikidata item
fn author_property(&self) -> Option<String>
[src]
Returns the property for an author ID of the resource as a String
, e.g. P4012 for Semantic Scholar
fn topic_property(&self) -> Option<String>
[src]
Returns the property for a topic ID of the resource as a String
, e.g. P6611 for Semantic Scholar
fn reference(&self) -> Vec<Reference>
[src]
fn sanitize_author_name(&self, author_name: &String) -> String
[src]
fn update_statements_for_publication_id_default(
&self,
publication_id: &String,
item: &mut Entity,
caches: &mut WikidataPapersCache
)
[src]
&self,
publication_id: &String,
item: &mut Entity,
caches: &mut WikidataPapersCache
)
fn titles_are_equal(&self, t1: &String, t2: &String) -> bool
[src]
fn update_work_item_with_title(
&self,
publication_id: &String,
item: &mut Entity
)
[src]
&self,
publication_id: &String,
item: &mut Entity
)
fn update_work_item_with_journal(
&self,
publication_id: &String,
item: &mut Entity,
caches: &mut WikidataPapersCache
)
[src]
&self,
publication_id: &String,
item: &mut Entity,
caches: &mut WikidataPapersCache
)
fn update_work_item_with_property(
&self,
publication_id: &String,
item: &mut Entity
)
[src]
&self,
publication_id: &String,
item: &mut Entity
)
fn get_wb_time_from_partial(
&self,
property: String,
year: u32,
month: Option<u8>,
day: Option<u8>
) -> Statement
[src]
&self,
property: String,
year: u32,
month: Option<u8>,
day: Option<u8>
) -> Statement
fn get_external_identifier_from_item(
&self,
item: &Entity,
property: &str
) -> Option<String>
[src]
&self,
item: &Entity,
property: &str
) -> Option<String>
fn set_author_cache_entry(&mut self, catalog_author_id: &String, q: &String)
[src]
fn get_author_item_from_cache(
&self,
catalog_author_id: &String
) -> Option<&String>
[src]
&self,
catalog_author_id: &String
) -> Option<&String>
fn author_cache_is_empty(&self) -> bool
[src]
fn update_author_item(
&mut self,
source_author_name: &String,
author_id: &String,
author_name: &String,
item: &mut Entity
)
[src]
&mut self,
source_author_name: &String,
author_id: &String,
author_name: &String,
item: &mut Entity
)
impl Clone for Pubmed2Wikidata
[src]
fn clone(&self) -> Pubmed2Wikidata
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Pubmed2Wikidata
[src]
Auto Trait Implementations
impl Send for Pubmed2Wikidata
impl Sync for Pubmed2Wikidata
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,