[][src]Struct papers::crossref2wikidata::Crossref2Wikidata

pub struct Crossref2Wikidata { /* fields omitted */ }

Methods

impl Crossref2Wikidata[src]

pub fn new() -> Self[src]

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

Trait Implementations

impl ScientificPublicationAdapter for Crossref2Wikidata[src]

fn get_author_list(
    &mut self,
    _publication_id: &String
) -> Vec<GenericAuthorInfo>
[src]

Returns a list of the authors, if available, with list number, name, catalog-specific author ID, and WIkidata ID, as available

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 publication_property(&self) -> Option<String>[src]

Returns the property for a publication ID of the resource as a String, e.g. P4011 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 do_cache_work(&mut self, _publication_id: &String) -> Option<String>[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]

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, 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