Package openllet.core.utils
Class TermFactory
- java.lang.Object
-
- openllet.core.utils.TermFactory
-
public class TermFactory extends java.lang.Object- Author:
- Evren Sirin
-
-
Field Summary
Fields Modifier and Type Field Description static openllet.aterm.ATermApplBOTTOMstatic openllet.aterm.ATermApplBOTTOM_DATA_PROPERTYstatic openllet.aterm.ATermApplBOTTOM_LITstatic openllet.aterm.ATermApplBOTTOM_OBJECT_PROPERTYstatic openllet.aterm.ATermApplTOPstatic openllet.aterm.ATermApplTOP_DATA_PROPERTYstatic openllet.aterm.ATermApplTOP_LITstatic openllet.aterm.ATermApplTOP_OBJECT_PROPERTY
-
Constructor Summary
Constructors Constructor Description TermFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static openllet.aterm.ATermApplall(openllet.aterm.ATermAppl r, openllet.aterm.ATermAppl c)Create an all values restriction.static openllet.aterm.ATermAppland(openllet.aterm.ATermAppl... c)static openllet.aterm.ATermAppland(openllet.aterm.ATermAppl c1, openllet.aterm.ATermAppl c2)static openllet.aterm.ATermApplbnode(java.lang.String anonID)Create a term that corresponds to a bnode (anonymous term).static openllet.aterm.ATermApplcard(openllet.aterm.ATermAppl r, int n, openllet.aterm.ATermAppl c)static openllet.aterm.ATermApplhasValue(openllet.aterm.ATermAppl r, openllet.aterm.ATermAppl ind)static openllet.aterm.ATermApplinv(openllet.aterm.ATermAppl r)static openllet.aterm.ATermAppllength(openllet.aterm.ATermAppl facetValue)static openllet.aterm.ATermListlist(openllet.aterm.ATermAppl... args)Create a list of terms.static openllet.aterm.ATermApplliteral(boolean value)Create a typed literal with xsd:boolean datatype.static openllet.aterm.ATermApplliteral(byte value)Create a typed literal with xsd:byte datatype.static openllet.aterm.ATermApplliteral(double value)Create a typed literal with xsd:double datatype.static openllet.aterm.ATermApplliteral(float value)Create a typed literal with xsd:float datatype.static openllet.aterm.ATermApplliteral(int value)Create a typed literal with xsd:integer datatype.static openllet.aterm.ATermApplliteral(long value)Create a typed literal with xsd:long datatype.static openllet.aterm.ATermApplliteral(short value)Create a typed literal with xsd:short datatype.static openllet.aterm.ATermApplliteral(java.lang.String value)Create an untyped plain literal with no language tag.static openllet.aterm.ATermApplliteral(java.lang.String value, java.lang.String lang)Create an untyped plain literal with the given language tag.static openllet.aterm.ATermApplliteral(java.lang.String value, openllet.aterm.ATermAppl datatype)Create a typed literal with given lexical form and datatypes.static openllet.aterm.ATermApplliteral(java.net.URI value)Create a typed literal with xsd:anyURI datatype.static openllet.aterm.ATermApplmax(openllet.aterm.ATermAppl r, int n, openllet.aterm.ATermAppl c)static openllet.aterm.ATermApplmaxExclusive(openllet.aterm.ATermAppl facetValue)static openllet.aterm.ATermApplmaxInclusive(openllet.aterm.ATermAppl facetValue)static openllet.aterm.ATermApplmaxLength(openllet.aterm.ATermAppl facetValue)static openllet.aterm.ATermApplmin(openllet.aterm.ATermAppl r, int n, openllet.aterm.ATermAppl c)static openllet.aterm.ATermApplminExclusive(openllet.aterm.ATermAppl facetValue)static openllet.aterm.ATermApplminInclusive(openllet.aterm.ATermAppl facetValue)static openllet.aterm.ATermApplminLength(openllet.aterm.ATermAppl facetValue)static openllet.aterm.ATermApplnot(openllet.aterm.ATermAppl c)Create a negated term.static openllet.aterm.ATermApploneOf(openllet.aterm.ATermAppl... terms)static openllet.aterm.ATermApplor(openllet.aterm.ATermAppl... c)static openllet.aterm.ATermApplor(openllet.aterm.ATermAppl c1, openllet.aterm.ATermAppl c2)static openllet.aterm.ATermApplpattern(openllet.aterm.ATermAppl facetValue)static openllet.aterm.ATermApplplainLiteral(java.lang.String value, java.lang.String lang)Deprecated.Useliteral(String, String)insteadstatic openllet.aterm.ATermApplrestrict(openllet.aterm.ATermAppl baseDatatype, openllet.aterm.ATermAppl... restrictions)static openllet.aterm.ATermApplself(openllet.aterm.ATermAppl p)static openllet.aterm.ATermApplsome(openllet.aterm.ATermAppl r, openllet.aterm.ATermAppl c)static openllet.aterm.ATermApplterm(java.lang.String name)Create a named term.static openllet.aterm.ATermAppltypedLiteral(java.lang.String value, java.lang.String dt)Deprecated.Useliteral(String, ATermAppl)insteadstatic openllet.aterm.ATermAppltypedLiteral(java.lang.String value, openllet.aterm.ATermAppl dt)Deprecated.Useliteral(String, ATermAppl)insteadstatic openllet.aterm.ATermApplvalue(openllet.aterm.ATermAppl r)static openllet.aterm.ATermApplvar(java.lang.String name)Create a variable term with the given name.
-
-
-
Field Detail
-
TOP
public static final openllet.aterm.ATermAppl TOP
-
BOTTOM
public static final openllet.aterm.ATermAppl BOTTOM
-
TOP_LIT
public static final openllet.aterm.ATermAppl TOP_LIT
-
BOTTOM_LIT
public static final openllet.aterm.ATermAppl BOTTOM_LIT
-
TOP_DATA_PROPERTY
public static final openllet.aterm.ATermAppl TOP_DATA_PROPERTY
-
BOTTOM_DATA_PROPERTY
public static final openllet.aterm.ATermAppl BOTTOM_DATA_PROPERTY
-
TOP_OBJECT_PROPERTY
public static final openllet.aterm.ATermAppl TOP_OBJECT_PROPERTY
-
BOTTOM_OBJECT_PROPERTY
public static final openllet.aterm.ATermAppl BOTTOM_OBJECT_PROPERTY
-
-
Method Detail
-
term
public static openllet.aterm.ATermAppl term(java.lang.String name)
Create a named term.- Parameters:
name- name of the term- Returns:
- an ATermAppl with the given name and no arguments
-
bnode
public static openllet.aterm.ATermAppl bnode(java.lang.String anonID)
Create a term that corresponds to a bnode (anonymous term).- Parameters:
anonID- is of the anonymous terms- Returns:
- an ATermAppl with a single argument for anonID
-
var
public static openllet.aterm.ATermAppl var(java.lang.String name)
Create a variable term with the given name.- Parameters:
name- name of the variable- Returns:
- an ATermAppl with a single argument for variable name
-
list
public static openllet.aterm.ATermList list(openllet.aterm.ATermAppl... args)
Create a list of terms.- Parameters:
args- elements of thre list- Returns:
- an ATermList with given elements in the given _order
-
not
public static openllet.aterm.ATermAppl not(openllet.aterm.ATermAppl c)
Create a negated term.- Parameters:
c- Term to be negated- Returns:
- an ATermAppl in the form not(c)
-
all
public static openllet.aterm.ATermAppl all(openllet.aterm.ATermAppl r, openllet.aterm.ATermAppl c)Create an all values restriction.- Parameters:
r- property termc- class or datatype term- Returns:
- an ATermAppl in the form all(r,c)
-
some
public static openllet.aterm.ATermAppl some(openllet.aterm.ATermAppl r, openllet.aterm.ATermAppl c)
-
min
public static openllet.aterm.ATermAppl min(openllet.aterm.ATermAppl r, int n, openllet.aterm.ATermAppl c)
-
max
public static openllet.aterm.ATermAppl max(openllet.aterm.ATermAppl r, int n, openllet.aterm.ATermAppl c)
-
card
public static openllet.aterm.ATermAppl card(openllet.aterm.ATermAppl r, int n, openllet.aterm.ATermAppl c)
-
inv
public static openllet.aterm.ATermAppl inv(openllet.aterm.ATermAppl r)
-
literal
public static openllet.aterm.ATermAppl literal(boolean value)
Create a typed literal with xsd:boolean datatype.- Parameters:
value- boolean value- Returns:
- an ATermAppl representing the boolean literal
-
literal
public static openllet.aterm.ATermAppl literal(byte value)
Create a typed literal with xsd:byte datatype.- Parameters:
value- byte value- Returns:
- an ATermAppl representing the byte literal
-
literal
public static openllet.aterm.ATermAppl literal(short value)
Create a typed literal with xsd:short datatype.- Parameters:
value- short value- Returns:
- an ATermAppl representing the short literal
-
literal
public static openllet.aterm.ATermAppl literal(long value)
Create a typed literal with xsd:long datatype.- Parameters:
value- long value- Returns:
- an ATermAppl representing the long literal
-
literal
public static openllet.aterm.ATermAppl literal(int value)
Create a typed literal with xsd:integer datatype.- Parameters:
value- integer value- Returns:
- an ATermAppl representing the integer literal
-
literal
public static openllet.aterm.ATermAppl literal(float value)
Create a typed literal with xsd:float datatype.- Parameters:
value- float value- Returns:
- an ATermAppl representing the float literal
-
literal
public static openllet.aterm.ATermAppl literal(double value)
Create a typed literal with xsd:double datatype.- Parameters:
value- double value- Returns:
- an ATermAppl representing the double literal
-
literal
public static openllet.aterm.ATermAppl literal(java.net.URI value)
Create a typed literal with xsd:anyURI datatype.- Parameters:
value- URI value- Returns:
- an ATermAppl representing the URI literal
-
literal
public static openllet.aterm.ATermAppl literal(java.lang.String value)
Create an untyped plain literal with no language tag.- Parameters:
value- string value- Returns:
- an ATermAppl representing the plain literal
-
literal
public static openllet.aterm.ATermAppl literal(java.lang.String value, java.lang.String lang)Create an untyped plain literal with the given language tag.- Parameters:
value- byte valuelang- language identifier- Returns:
- an ATermAppl representing the plain literal with language tag
-
literal
public static openllet.aterm.ATermAppl literal(java.lang.String value, openllet.aterm.ATermAppl datatype)Create a typed literal with given lexical form and datatypes.- Parameters:
value- lexical value of the literaldatatype- type of the literal- Returns:
- an ATermAppl representing the typed literal
-
plainLiteral
@Deprecated public static openllet.aterm.ATermAppl plainLiteral(java.lang.String value, java.lang.String lang)Deprecated.Useliteral(String, String)instead- Parameters:
value-lang-- Returns:
- do not use
-
typedLiteral
@Deprecated public static openllet.aterm.ATermAppl typedLiteral(java.lang.String value, openllet.aterm.ATermAppl dt)Deprecated.Useliteral(String, ATermAppl)instead- Parameters:
value-dt-- Returns:
- do not use
-
typedLiteral
@Deprecated public static openllet.aterm.ATermAppl typedLiteral(java.lang.String value, java.lang.String dt)Deprecated.Useliteral(String, ATermAppl)instead- Parameters:
value-dt-- Returns:
- do not use
-
value
public static openllet.aterm.ATermAppl value(openllet.aterm.ATermAppl r)
-
and
public static openllet.aterm.ATermAppl and(openllet.aterm.ATermAppl c1, openllet.aterm.ATermAppl c2)
-
and
public static openllet.aterm.ATermAppl and(openllet.aterm.ATermAppl... c)
-
or
public static openllet.aterm.ATermAppl or(openllet.aterm.ATermAppl c1, openllet.aterm.ATermAppl c2)
-
or
public static openllet.aterm.ATermAppl or(openllet.aterm.ATermAppl... c)
-
hasValue
public static openllet.aterm.ATermAppl hasValue(openllet.aterm.ATermAppl r, openllet.aterm.ATermAppl ind)
-
oneOf
public static openllet.aterm.ATermAppl oneOf(openllet.aterm.ATermAppl... terms)
-
self
public static openllet.aterm.ATermAppl self(openllet.aterm.ATermAppl p)
-
minInclusive
public static openllet.aterm.ATermAppl minInclusive(openllet.aterm.ATermAppl facetValue)
-
minExclusive
public static openllet.aterm.ATermAppl minExclusive(openllet.aterm.ATermAppl facetValue)
-
maxInclusive
public static openllet.aterm.ATermAppl maxInclusive(openllet.aterm.ATermAppl facetValue)
-
maxExclusive
public static openllet.aterm.ATermAppl maxExclusive(openllet.aterm.ATermAppl facetValue)
-
minLength
public static openllet.aterm.ATermAppl minLength(openllet.aterm.ATermAppl facetValue)
-
maxLength
public static openllet.aterm.ATermAppl maxLength(openllet.aterm.ATermAppl facetValue)
-
length
public static openllet.aterm.ATermAppl length(openllet.aterm.ATermAppl facetValue)
-
pattern
public static openllet.aterm.ATermAppl pattern(openllet.aterm.ATermAppl facetValue)
-
restrict
public static openllet.aterm.ATermAppl restrict(openllet.aterm.ATermAppl baseDatatype, openllet.aterm.ATermAppl... restrictions)
-
-