Create or retrieve a datatype.
Create or retrieve an individual.
Promote an unknown term to a datatype. This is necessary when a term is used, e.g., in a range or domain, before it is defined.
(Currently unused in the package.)
Create or retrieve a property.
StaticequalsStaticincludesStaticincludesStaticisStaticisTypeguard for datatypes.
StaticisTypeguard for individuals.
(Currently unused in the package.)
StaticisTypeguard for properties.
Staticis
A factory object for the creation of RDF Terms.
The main reason for using this factory is that fact that some terms may be used before they are formally defined. The factory will create a term with the minimal information needed, and then promote it to a class, property, etc., when defined.
Also: some terms refer to internal terms, i.e., defined by the input yml file, and some refer to external terms, i.e., defined by external ontologies. The factory will put in the correct properties, used by the generator functions to HTML, Turtle, or JSON-LD.
Terms are stored in an internal map, indexed by their curie. The curie is used even if the term is defined locally; the general prefix of the vocabulary (defined in the yml file) is used for that purpose.
Note that the factory includes some methods that are not (yet?) used in the package. They are included for possible future use.