ControlledVocabulary
ControlledVocabulary is a .NET library for modelling and working with controlled vocabularies.
#r "nuget: ControlledVocabulary"
Installing Packages
- ControlledVocabulary
Installing Packages
- ControlledVocabulary.
Installing Packages
- ControlledVocabulary..
Installing Packages
- ControlledVocabulary...
Installed Packages
- ControlledVocabulary, 1.0.1
In its barest form, a term from a controlled vocabulary consists of the term name itself, a URI for the term, and a reference to the controlled vocabulary that contains the term:
open ControlledVocabulary
CvTerm.create(
accession = "TO:00042069", // the term's unique accession number
name = "yup", // the term name
ref = "https://link/to/reference/vocabulary/named/TO" // the reference vocabulary
)
{ Accession = "TO:00042069"\n Name = "yup"\n RefUri = "https://link/to/reference/vocabulary/named/TO" }
Accession "TO:00042069"
Name "yup"
RefUri "https://link/to/reference/vocabulary/named/TO"
namespace ControlledVocabulary
type CvTerm =
{
Accession: string
Name: string
RefUri: string
}
static member create: accession: string * name: string * ref: string -> CvTerm + 1 overload
<summary> Represents a term from a controlled vocabulary (Cv) in the form of: id|accession ; name|value ; refUri </summary>
<summary> Represents a term from a controlled vocabulary (Cv) in the form of: id|accession ; name|value ; refUri </summary>
static member CvTerm.create: name: string -> CvTerm
static member CvTerm.create: accession: string * name: string * ref: string -> CvTerm
static member CvTerm.create: accession: string * name: string * ref: string -> CvTerm
Multiple items
val ref: value: 'T -> 'T ref
--------------------
type 'T ref = Ref<'T>
val ref: value: 'T -> 'T ref
--------------------
type 'T ref = Ref<'T>