Class DefaultTermFactory
java.lang.Object
fr.lirmm.graphik.integraal.core.term.DefaultTermFactory
- All Implemented Interfaces:
TermFactory
Default singleton implementation of
TermFactory.- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Method Summary
Modifier and TypeMethodDescriptioncreateConstant(Object identifier) Creates a constant with the provided identifier.createLiteral(fr.lirmm.graphik.util.URI datatype, Object value) Creates a literal with the provided datatype and value.createLiteral(Object value) Creates a literal with an inferred datatype.createTerm(Term term) Creates a term equivalent to the provided one.createTerm(Object o, Term.Type type) Deprecated.createVariable(Object identifier) Creates a variable with the provided identifier.static TermFactoryinstance()Returns the shared term factory instance.
-
Method Details
-
instance
Returns the shared term factory instance.- Returns:
- the shared term factory instance
-
createTerm
Description copied from interface:TermFactoryCreates a term equivalent to the provided one.- Specified by:
createTermin interfaceTermFactory- Parameters:
term- the term to copy or normalize- Returns:
- the created term
-
createTerm
Deprecated.Description copied from interface:TermFactoryThis method is deprecated since 1.3, useTermFactory.createVariable(Object),TermFactory.createConstant(Object)orTermFactory.createLiteral(Object)instead.- Specified by:
createTermin interfaceTermFactory- Parameters:
o- the underlying value or identifiertype- the term kind to create- Returns:
- a new Term.
-
createVariable
Description copied from interface:TermFactoryCreates a variable with the provided identifier.- Specified by:
createVariablein interfaceTermFactory- Parameters:
identifier- the variable identifier- Returns:
- the created variable
-
createLiteral
Description copied from interface:TermFactoryCreates a literal with an inferred datatype.- Specified by:
createLiteralin interfaceTermFactory- Parameters:
value- the literal value- Returns:
- the created literal
-
createLiteral
Description copied from interface:TermFactoryCreates a literal with the provided datatype and value.- Specified by:
createLiteralin interfaceTermFactory- Parameters:
datatype- the literal datatypevalue- the literal value- Returns:
- the created literal
-
createConstant
Description copied from interface:TermFactoryCreates a constant with the provided identifier.- Specified by:
createConstantin interfaceTermFactory- Parameters:
identifier- the constant identifier- Returns:
- the created constant
-