Interface TermFactory

All Known Implementing Classes:
DefaultTermFactory

public interface TermFactory
Factory for creating variables, constants, literals, and copied terms.
Author:
Clément Sipieter (INRIA) <clement@6pi.fr>
  • Method Details

    • createTerm

      Term createTerm(Term term)
      Creates a term equivalent to the provided one.
      Parameters:
      term - the term to copy or normalize
      Returns:
      the created term
    • createTerm

      @Deprecated Term createTerm(Object o, Term.Type type)
      Deprecated.
      This method is deprecated since 1.3, use createVariable(Object), createConstant(Object) or createLiteral(Object) instead.

      Parameters:
      o - the underlying value or identifier
      type - the term kind to create
      Returns:
      a new Term.
    • createVariable

      Variable createVariable(Object identifier)
      Creates a variable with the provided identifier.
      Parameters:
      identifier - the variable identifier
      Returns:
      the created variable
    • createConstant

      Constant createConstant(Object identifier)
      Creates a constant with the provided identifier.
      Parameters:
      identifier - the constant identifier
      Returns:
      the created constant
    • createLiteral

      Literal createLiteral(Object value)
      Creates a literal with an inferred datatype.
      Parameters:
      value - the literal value
      Returns:
      the created literal
    • createLiteral

      Literal createLiteral(fr.lirmm.graphik.util.URI datatype, Object value)
      Creates a literal with the provided datatype and value.
      Parameters:
      datatype - the literal datatype
      value - the literal value
      Returns:
      the created literal