|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogicalExpressionFactory
This interface represents a logical expression factory it extends the generic logical expression factory by providing methods for the creation of an object model
LogicalExpressionFactory
Field Summary | |
---|---|
static java.lang.String |
LEFACTORY_DATA_FACTORY
|
static java.lang.String |
LEFACTORY_WSMO_FACTORY
|
Method Summary | |
---|---|
NumberedAnonymousID |
createAnonymousID(byte number)
creates a numbered anonymous ID (e.g. |
Atom |
createAtom(Identifier id,
java.util.List params)
creates an atom (e.g. |
AttributeConstraintMolecule |
createAttributeConstraint(Term instanceID,
Term attributeID,
Term attributeType)
Creates a simple molecule of the form: john[age ofType _integer] |
AttributeInferenceMolecule |
createAttributeInference(Term instanceID,
Term attributeID,
Term attributeType)
Creates a simple molecule of the form: john[anchestor impliesType human] |
AttributeValueMolecule |
createAttributeValue(Term instanceID,
Term attributeID,
Term attributeValue)
Creates a simple molecule of the form: john[age hasValue 2] |
CompoundMolecule |
createCompoundMolecule(java.util.List molecules)
creates an compund molecule (e.g. |
Conjunction |
createConjunction(LogicalExpression exprLeft,
LogicalExpression exprRight)
Creates a conjunction (e.g. |
Constraint |
createConstraint(LogicalExpression expr)
creates a constraint |
ConstructedTerm |
createConstructedTerm(IRI functionSymbol,
java.util.List terms)
creates a constructed term (e.g. |
Disjunction |
createDisjunction(LogicalExpression exprLeft,
LogicalExpression exprRight)
Creates a disjunction (e.g. |
Equivalence |
createEquivalence(LogicalExpression exprLeft,
LogicalExpression exprRight)
Creates a Equivalence implication (e.g. |
ExistentialQuantification |
createExistentialQuantification(java.util.Set variables,
LogicalExpression expr)
creates a existentialy quantified expression (e.g. |
ExistentialQuantification |
createExistentialQuantification(Variable variable,
LogicalExpression expr)
creates a universally quantified expression (e.g. |
Implication |
createImplication(LogicalExpression exprLeft,
LogicalExpression exprRight)
Creates a Implication (e.g. |
InverseImplication |
createInverseImplication(LogicalExpression exprLeft,
LogicalExpression exprRight)
Creates a InverseImplication (e.g. |
LogicalExpression |
createLogicalExpression(java.lang.String expr)
Creates a LogicalExpression object from string. |
LogicalExpression |
createLogicalExpression(java.lang.String expr,
TopEntity nsHolder)
Creates a Logical Expression object from a string given a particular namespace context of a TopEntity |
LogicProgrammingRule |
createLogicProgrammingRule(LogicalExpression exprLeft,
LogicalExpression exprRight)
Creates a LogicProgrammingRule (e.g. |
MembershipMolecule |
createMemberShipMolecule(Term idInstance,
Term idConcept)
Creates a simple molecule of the form: a memberOf b |
Negation |
createNegation(LogicalExpression expr)
creates a negation (e.g. |
NegationAsFailure |
createNegationAsFailure(LogicalExpression expr)
creates a naf (e.g. |
SubConceptMolecule |
createSubConceptMolecule(Term idConcept,
Term idSuperConcept)
Creates a simple molecule of the form: a subConceptOf b |
UniversalQuantification |
createUniversalQuantification(java.util.Set variables,
LogicalExpression expr)
creates a universally quantified expression (e.g. |
UniversalQuantification |
createUniversalQuantification(Variable variable,
LogicalExpression expr)
creates a universally quantified expression (e.g. |
Field Detail |
---|
static final java.lang.String LEFACTORY_WSMO_FACTORY
static final java.lang.String LEFACTORY_DATA_FACTORY
Method Detail |
---|
LogicalExpression createLogicalExpression(java.lang.String expr) throws ParserException
expr
- the string representation of the logical expression
ParserException
LogicalExpression createLogicalExpression(java.lang.String expr, TopEntity nsHolder) throws ParserException
expr
- the string representation of the logical expressionnsHolder
- some Top entity that contains the namespace
context (e.g.default Namespace)
ParserException
Negation createNegation(LogicalExpression expr) throws java.lang.IllegalArgumentException
expr
- the expression that is affected by the operator
java.lang.IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINTNegationAsFailure createNegationAsFailure(LogicalExpression expr) throws java.lang.IllegalArgumentException
expr
- the expression that is affected by the operator
java.lang.IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINTConstraint createConstraint(LogicalExpression expr) throws java.lang.IllegalArgumentException
expr
- the expression that is affected by the operator
java.lang.IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINTConjunction createConjunction(LogicalExpression exprLeft, LogicalExpression exprRight) throws java.lang.IllegalArgumentException
exprLeft
- the left expression that is conjunctively connectedexprRight
- the right expression that is conjunctively connected
java.lang.IllegalArgumentException
- in case one of the two logical expressions is null
in case one of the two logical expressions contains a nested CONSTRAINT
Disjunction createDisjunction(LogicalExpression exprLeft, LogicalExpression exprRight) throws java.lang.IllegalArgumentException
exprLeft
- the left expression that is connectedexprRight
- the right expression that is connected
java.lang.IllegalArgumentException
- in case one of the two logical expressions is null
in case one of the two logical expressions contains a nested CONSTRAINT
Implication createImplication(LogicalExpression exprLeft, LogicalExpression exprRight) throws java.lang.IllegalArgumentException
exprLeft
- the left expression that is connectedexprRight
- the right expression that is connected
java.lang.IllegalArgumentException
- in case one of the two logical expressions is null
in case one of the two logical expressions contains a nested CONSTRAINT
Equivalence createEquivalence(LogicalExpression exprLeft, LogicalExpression exprRight) throws java.lang.IllegalArgumentException
exprLeft
- the left expression that is connectedexprRight
- the right expression that is connected
java.lang.IllegalArgumentException
- in case one of the two logical expressions is null
in case one of the two logical expressions contains a nested CONSTRAINT
LogicProgrammingRule createLogicProgrammingRule(LogicalExpression exprLeft, LogicalExpression exprRight) throws java.lang.IllegalArgumentException
exprLeft
- the left expression that is connectedexprRight
- the right expression that is connected
java.lang.IllegalArgumentException
- in case one of the two logical expressions is null
in case one of the two logical expressions contains a nested CONSTRAINT
InverseImplication createInverseImplication(LogicalExpression exprLeft, LogicalExpression exprRight) throws java.lang.IllegalArgumentException
exprLeft
- the left expression that is connectedexprRight
- the right expression that is connected
InverseImplication
- in case one of the two logical expressions is null
in case one of the two logical expressions contains a nested CONSTRAINT
java.lang.IllegalArgumentException
UniversalQuantification createUniversalQuantification(java.util.Set variables, LogicalExpression expr) throws java.lang.IllegalArgumentException
variables
- Set of variables that are quantified (e.g. [?a, ?b])expr
- the expression that is quantified
java.lang.IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINT
in case the Set of variables is null
in case the arguments of the list aren't all of Type Variable
UniversalQuantification createUniversalQuantification(Variable variable, LogicalExpression expr) throws java.lang.IllegalArgumentException
variables
- that is quantified (e.g. "?a")expr
- the expression that is quantified
java.lang.IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINT
ExistentialQuantification createExistentialQuantification(java.util.Set variables, LogicalExpression expr) throws java.lang.IllegalArgumentException
variables
- that is quantified (e.g. [?a,?b])expr
- the expression that is quantified
java.lang.IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINT
in case the Set of variables is null
in case the arguments of the list aren't all of Type Variable
ExistentialQuantification createExistentialQuantification(Variable variable, LogicalExpression expr) throws java.lang.IllegalArgumentException
variable
- that is quantified (e.g. "?a")expr
- the expression that is quantified
java.lang.IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINT
Atom createAtom(Identifier id, java.util.List params) throws java.lang.IllegalArgumentException
id
- identifier of Atomparams
- list of parameters for that atom
java.lang.IllegalArgumentException
- in case the parameter id is a Value or the arguments of
the list args aren't all of Type TermCompoundMolecule createCompoundMolecule(java.util.List molecules) throws java.lang.IllegalArgumentException
molecules
- a list of molecules that shall be grouped
java.lang.IllegalArgumentException
- in case:
MembershipMolecule createMemberShipMolecule(Term idInstance, Term idConcept) throws java.lang.IllegalArgumentException
idInstance
- A Term identifying the Molecule (left parameter)idConcept
- A Term identifying the Concept the idInstance is member of
java.lang.IllegalArgumentException
- if one of the arguments is nullSubConceptMolecule createSubConceptMolecule(Term idConcept, Term idSuperConcept) throws java.lang.IllegalArgumentException
idConcept
- A Term identifying the Molecule (left parameter)idSuperConcept
- A Term identifying the super concept of IdConcept
java.lang.IllegalArgumentException
- if one of the arguments is nullAttributeValueMolecule createAttributeValue(Term instanceID, Term attributeID, Term attributeValue) throws java.lang.IllegalArgumentException
instanceID
- A Term identifying the Molecule (left parameter)attributeID
- A Term identifying the Attribute of the MoleculeattributeValue
- A Term identifying the Value of the attributeID
java.lang.IllegalArgumentException
- in case one of the terms is nullAttributeConstraintMolecule createAttributeConstraint(Term instanceID, Term attributeID, Term attributeType) throws java.lang.IllegalArgumentException
instanceID
- A Term identifying the Molecule (left parameter)attributeID
- A Term identifying the Attribute of the MoleculeattributeType
- A Term identifying the range of attributeID
java.lang.IllegalArgumentException
- in case one of the terms is nullAttributeInferenceMolecule createAttributeInference(Term instanceID, Term attributeID, Term attributeType) throws java.lang.IllegalArgumentException
instanceID
- A Term identifying the Molecule (left parameter)attributeID
- A Term identifying the Attribute of the MoleculeattributeType
- A Term identifying the range of attributeID
java.lang.IllegalArgumentException
- in case one of the terms is nullConstructedTerm createConstructedTerm(IRI functionSymbol, java.util.List terms) throws java.lang.IllegalArgumentException
functionSymbol
- identifier of the constructed termterms
- arguments of the constructed term
java.lang.IllegalArgumentException
- in case the functionSymbol is null or the arguments of
the list aren't all of Type TermNumberedAnonymousID createAnonymousID(byte number)
number
- the number of the anonymous ID
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |