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)¶
-
addRefToGraph()¶
-
addTitle(subject_id, title)¶
-
annotation_properties= {'page': 'foaf:page', 'title': 'dc:title'}¶
-
ref_types= {'document': 'IAO:0000310', 'journal_article': 'IAO:0000013', 'person': 'foaf:Person', 'photograph': 'IAO:0000185', 'publication': 'IAO:0000311', 'webpage': 'SIO:000302'}¶
-
setAuthorList(author_list)¶ Parameters: author_list – Array of authors Returns:
-
setShortCitation(citation)¶
-
setTitle(title)¶
-
setType(reference_type)¶
-
setYear(year)¶