Page
Library
Module
Module type
Parameter
Class
Class type
Source
Jsonfeed.CitoSourceCitation Typing Ontology (CiTO) intent annotations.
CiTO provides a structured vocabulary for describing the nature of citations. This module implements support for CiTO annotations as used in the references extension.
type t = [ | `CitesThe base citation property
*)| `CitesAsAuthorityCites as authoritative source
*)| `CitesAsDataSourceCites as origin of data
*)| `CitesAsEvidenceCites for factual evidence
*)| `CitesForInformationCites as information source
*)| `UsesDataFromUses data from cited work
*)| `UsesMethodInUses methodology from cited work
*)| `UsesConclusionsFromApplies conclusions from cited work
*)| `AgreesWithConcurs with cited statements
*)| `DisagreesWithRejects cited statements
*)| `ConfirmsValidates facts in cited work
*)| `RefutesDisproves cited statements
*)| `DisputesContests without definitive refutation
*)| `CritiquesAnalyzes and finds fault
*)| `QualifiesPlaces conditions on statements
*)| `CorrectsFixes errors in cited work
*)| `UpdatesAdvances understanding beyond cited work
*)| `ExtendsBuilds upon cited facts
*)| `ParodiesImitates for comic effect
*)| `PlagiarizesUses without acknowledgment
*)| `DeridesExpresses contempt
*)| `RidiculesMocks cited work
*)| `DescribesCharacterizes cited entity
*)| `DocumentsRecords information about source
*)| `CitesAsSourceDocumentCites as foundational source
*)| `CitesAsMetadataDocumentCites containing metadata
*)| `CompilesUses to create new work
*)| `ReviewsExamines cited statements
*)| `RetractsFormally withdraws
*)| `SupportsProvides intellectual backing
*)| `GivesSupportToProvides support to citing entity
*)| `ObtainsSupportFromObtains backing from cited work
*)| `GivesBackgroundToProvides context
*)| `ObtainsBackgroundFromObtains context from cited work
*)| `SpeculatesOnTheorizes without firm evidence
*)| `CitesAsPotentialSolutionOffers possible resolution
*)| `CitesAsRecommendedReadingSuggests as further reading
*)| `CitesAsRelatedIdentifies as thematically connected
*)| `IncludesQuotationFromIncorporates direct quotes
*)| `IncludesExcerptFromUses non-quoted passages
*)| `RepliesToResponds to cited statements
*)| `HasReplyFromEvokes response
*)| `LinksToProvides URL hyperlink
*)| `Other of stringCustom or future CiTO term
*) ]CiTO citation intent annotation.
Represents the intent or nature of a citation using the Citation Typing Ontology. Each variant corresponds to a specific CiTO property. The `Other variant allows for custom or future CiTO terms not yet included in this library.
Categories:
of_string s converts a CiTO term string to its variant representation.
Recognized CiTO terms are converted to their corresponding variants. Unrecognized terms are wrapped in `Other.
The comparison is case-insensitive for standard CiTO terms but preserves the original case in `Other variants.
Examples:
of_string "cites" (* returns `Cites *) of_string "usesMethodIn"
(* returns `UsesMethodIn *) of_string
"citesAsRecommendedReading" (* returns `CitesAsRecommendedReading *)
of_string "customTerm" (* returns `Other "customTerm" *)to_string t converts a CiTO variant to its canonical string representation.
Standard CiTO terms use their official CiTO local names (camelCase). `Other variants return the wrapped string unchanged.
Examples:
to_string `Cites (* returns "cites" *) to_string `UsesMethodIn
(* returns "usesMethodIn" *) to_string (`Other "customTerm")
(* returns "customTerm" *)equal a b tests equality between two CiTO annotations.
Two annotations are equal if they represent the same CiTO term. For `Other variants, string comparison is case-sensitive.
Declarative JSON type for CiTO annotations.
Maps CiTO intent strings to the corresponding variants. Unknown intents are mapped to `Other s.
pp ppf t pretty prints a CiTO annotation to the formatter.
Example output:
citesAsRecommendedReading