Converter of vocabulary in YAML format into Turtle/JSON-LD/HTML+RDFa - v1.13.0
    Preparing search index...

    Class RDFTermFactory

    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.

    Index
    • Check whether a term with a curie has been defined.

      Parameters

      • index: string

      Returns boolean

    • List the prefixes used by the vocabulary

      Returns string[]

    • Promote an unknown term to a class. This is necessary when a term is used, e.g., in a range or domain, before it is defined.

      (Currently unused in the package.)

      Parameters

      Returns RDFClass

    • 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.)

      Parameters

      Returns RDFDatatype

    • Create or retrieve an term. When created, the term is initially considered as an unknown term.

      Parameters

      • index: string

      Returns RDFTerm

    • Does the system really use a predefined prefix?

      Parameters

      • prefix: string

      Returns boolean

    • Does a curie identify a term in a list of terms.

      Parameters

      Returns boolean