[][src]Struct papers::pubmed2wikidata::Pubmed2Wikidata

pub struct Pubmed2Wikidata { /* fields omitted */ }

Methods

impl Pubmed2Wikidata[src]

pub fn new() -> Self[src]

pub fn get_cached_publication_from_id(
    &self,
    publication_id: &String
) -> Option<&PubmedArticle>
[src]

Trait Implementations

impl ScientificPublicationAdapter for Pubmed2Wikidata[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]

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]

fn update_work_item_with_journal(
    &self,
    publication_id: &String,
    item: &mut Entity,
    caches: &mut WikidataPapersCache
)
[src]

fn update_work_item_with_property(
    &self,
    publication_id: &String,
    item: &mut Entity
)
[src]

fn get_wb_time_from_partial(
    &self,
    property: String,
    year: u32,
    month: Option<u8>,
    day: Option<u8>
) -> Statement
[src]

fn get_external_identifier_from_item(
    &self,
    item: &Entity,
    property: &str
) -> Option<String>
[src]

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]

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]

impl Clone for 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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err