dipper.models.Reference module¶
-
class
dipper.models.Reference.
Reference
(graph, ref_id=None, ref_type=None)¶ Bases:
object
- To model references for associations
- (such as journal articles, books, etc.).
- By default, references will be typed as “documents”,
- unless if the type is set otherwise.
- If a short_citation is set, this will be used for the individual’s label.
- We may wish to subclass this later.
-
addAuthor
(author)¶
-
addPage
(subject_id, page_url, subject_category=None, page_category=None)¶
-
addRefToGraph
()¶
-
addTitle
(subject_id, title)¶
-
setAuthorList
(author_list)¶ Parameters: author_list – Array of authors Returns:
-
setShortCitation
(citation)¶
-
setTitle
(title)¶
-
setType
(reference_type)¶
-
setYear
(year)¶