Skip to content

BibliographicReference

A bibliographic reference is the textual entry in a reference list that points to another resource. It stores the raw reference text and links it to the cited BibliographicResource. Created via GraphSet.add_be(resp_agent). Short name: be. OCDM class: biro:BibliographicReference.

Functional. RDF predicate: c4o:hasContent.

has_content(string: str) / get_content() -> str | None / remove_content()

The literal text of the reference as it appears in the citing resource, including any errors or formatting choices of the original publisher.

Non-functional. RDF predicate: oco:hasAnnotation. Accepts: ReferenceAnnotation.

has_annotation(an_res) / get_annotations() -> list[ReferenceAnnotation] / remove_annotation(an_res=None)

Functional. RDF predicate: biro:references. Accepts: BibliographicResource.

references_br(br_res) / get_referenced_br() -> BibliographicResource | None / remove_referenced_br()

The bibliographic resource that this reference cites.

g_set = GraphSet("https://w3id.org/oc/meta/")
resp_agent = "https://w3id.org/oc/meta/prov/pa/1"
cited = g_set.add_br(resp_agent)
cited.has_title("Software review: COCI")
be = g_set.add_be(resp_agent)
be.has_content("Heibi, I., Peroni, S., & Shotton, D. (2019). Software review: COCI, the OpenCitations Index of Crossref open DOI-to-DOI citations. Scientometrics, 121, 1213-1228.")
be.references_br(cited)
article = g_set.add_br(resp_agent)
article.contains_in_reference_list(be)