|
||||||||||
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 String |
LEFACTORY_DATA_FACTORY
|
static String |
LEFACTORY_WSMO_FACTORY
|
Method Summary | |
---|---|
NumberedAnonymousID |
createAnonymousID(byte number)
creates a numbered anonymous ID (e.g. |
Atom |
createAtom(Identifier id,
List<Term> params)
creates an atom (e.g. |
CompoundMolecule |
createAttribusteValues(Term instanceID,
Term attributeID,
List attributeValues)
Creates a compound molecule of the form: john[relative hasValue {mary,lisa}] |
AttributeConstraintMolecule |
createAttributeConstraint(Term instanceID,
Term attributeID,
Term attributeType)
Creates a simple molecule of the form: john[age ofType _integer] |
CompoundMolecule |
createAttributeConstraints(Term instanceID,
Term attributeID,
List attributeTypes)
Creates a compund molecule of the form: john[age ofType {human,man}] |
AttributeInferenceMolecule |
createAttributeInference(Term instanceID,
Term attributeID,
Term attributeType)
Creates a simple molecule of the form: john[anchestor impliesType human] |
CompoundMolecule |
createAttributeInferences(Term instanceID,
Term attributeID,
List attributeType)
Creates a compund molecule of the form: john[anchestor impliesType {human,man}] |
AttributeValueMolecule |
createAttributeValue(Term instanceID,
Term attributeID,
Term attributeValue)
Creates a simple molecule of the form: john[age hasValue 2] |
CompoundMolecule |
createCompoundMolecule(List<Molecule> 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,
List<Term> 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(Set<Variable> 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(String expr)
Creates a LogicalExpression object from string. |
LogicalExpression |
createLogicalExpression(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 |
CompoundMolecule |
createMemberShipMolecules(Term idInstance,
List idConcepts)
Creates a compound molecule of the form: a memberOf {b,c}. |
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 |
CompoundMolecule |
createSubConceptMolecules(Term idConcept,
List idSuperConcept)
Creates a simple molecule of the form: a subConceptOf {b,c} |
UniversalQuantification |
createUniversalQuantification(Set<Variable> variables,
LogicalExpression expr)
creates a universally quantified expression (e.g. |
UniversalQuantification |
createUniversalQuantification(Variable variable,
LogicalExpression expr)
creates a universally quantified expression (e.g. |
Variable |
createVariable(String varName)
Creates a new Variable instance |
Field Detail |
---|
static final String LEFACTORY_WSMO_FACTORY
static final String LEFACTORY_DATA_FACTORY
Method Detail |
---|
LogicalExpression createLogicalExpression(String expr) throws ParserException
expr
- the string representation of the logical expression
ParserException
LogicalExpression createLogicalExpression(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 IllegalArgumentException
expr
- the expression that is affected by the operator
IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINTNegationAsFailure createNegationAsFailure(LogicalExpression expr) throws IllegalArgumentException
expr
- the expression that is affected by the operator
IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINTConstraint createConstraint(LogicalExpression expr) throws IllegalArgumentException
expr
- the expression that is affected by the operator
IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINTConjunction createConjunction(LogicalExpression exprLeft, LogicalExpression exprRight) throws IllegalArgumentException
exprLeft
- the left expression that is conjunctively connectedexprRight
- the right expression that is conjunctively connected
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 IllegalArgumentException
exprLeft
- the left expression that is connectedexprRight
- the right expression that is connected
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 IllegalArgumentException
exprLeft
- the left expression that is connectedexprRight
- the right expression that is connected
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 IllegalArgumentException
exprLeft
- the left expression that is connectedexprRight
- the right expression that is connected
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 IllegalArgumentException
exprLeft
- the left expression that is connectedexprRight
- the right expression that is connected
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 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
IllegalArgumentException
UniversalQuantification createUniversalQuantification(Set<Variable> variables, LogicalExpression expr) throws IllegalArgumentException
variables
- Set of variables that are quantified (e.g. [?a, ?b])expr
- the expression that is quantified
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 IllegalArgumentException
variables
- that is quantified (e.g. "?a")expr
- the expression that is quantified
IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINT
ExistentialQuantification createExistentialQuantification(Set<Variable> variables, LogicalExpression expr) throws IllegalArgumentException
variables
- that is quantified (e.g. [?a,?b])expr
- the expression that is quantified
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 IllegalArgumentException
variable
- that is quantified (e.g. "?a")expr
- the expression that is quantified
IllegalArgumentException
- in case the logical expression contains a nested CONSTRAINT
Atom createAtom(Identifier id, List<Term> params) throws IllegalArgumentException
id
- identifier of Atomparams
- list of parameters for that atom
IllegalArgumentException
- in case the parameter id is a Value or the arguments of
the list args aren't all of Type TermCompoundMolecule createCompoundMolecule(List<Molecule> molecules) throws IllegalArgumentException
molecules
- a list of molecules that shall be grouped
IllegalArgumentException
- in case:
MembershipMolecule createMemberShipMolecule(Term idInstance, Term idConcept) throws IllegalArgumentException
idInstance
- A Term identifying the Molecule (left parameter)idConcept
- A Term identifying the Concept the idInstance is member of
IllegalArgumentException
- if one of the arguments is nullCompoundMolecule createMemberShipMolecules(Term idInstance, List idConcepts) throws IllegalArgumentException
idInstance
- A Term identifying the Molecule (left parameter)idConcept
- A list of terms identifying the concepts that idInstance is member of
IllegalArgumentException
- if one of the arguments is null, or idConcepts
contains less then 2 terms or an object that is not a termSubConceptMolecule createSubConceptMolecule(Term idConcept, Term idSuperConcept) throws IllegalArgumentException
idConcept
- A Term identifying the Molecule (left parameter)idSuperConcept
- A Term identifying the super concept of IdConcept
IllegalArgumentException
- if one of the arguments is nullCompoundMolecule createSubConceptMolecules(Term idConcept, List idSuperConcept) throws IllegalArgumentException
idConcept
- A Term identifying the Molecule (left parameter)idSuperConcepts
- A list of terms identifying the super concepts of IdConcept
IllegalArgumentException
- if one of the arguments is null, or if
idConcepts has less then 2 elements or one of them is not a Term.AttributeValueMolecule createAttributeValue(Term instanceID, Term attributeID, Term attributeValue) throws 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
IllegalArgumentException
- in case one of the terms is nullCompoundMolecule createAttribusteValues(Term instanceID, Term attributeID, List attributeValues) throws IllegalArgumentException
instanceID
- A Term identifying the Molecule (left parameter)attributeID
- A Term identifying the Attribute of the MoleculeattributeValue
- A List of terms identifying the Values of the attributeID
IllegalArgumentException
- in case one of the parameters is null, or attributeValues
contains less then 2 elements or one element in the list is not a term.AttributeConstraintMolecule createAttributeConstraint(Term instanceID, Term attributeID, Term attributeType) throws 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
IllegalArgumentException
- in case one of the terms is nullCompoundMolecule createAttributeConstraints(Term instanceID, Term attributeID, List attributeTypes) throws IllegalArgumentException
instanceID
- A Term identifying the Molecule (left parameter)attributeID
- A Term identifying the Attribute of the MoleculeattributeTypes
- A List of terms identifying the range of attributeID
IllegalArgumentException
- in case one of the terms is null or attributeTypes
is null, contains less then 2 molecules or an object that is not a term.AttributeInferenceMolecule createAttributeInference(Term instanceID, Term attributeID, Term attributeType) throws 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
IllegalArgumentException
- in case one of the terms is nullCompoundMolecule createAttributeInferences(Term instanceID, Term attributeID, List attributeType) throws IllegalArgumentException
instanceID
- A Term identifying the Molecule (left parameter)attributeID
- A Term identifying the Attribute of the MoleculeattributeTypes
- A List of terms identifying the range of attributeID
IllegalArgumentException
- in case one of the terms is nullConstructedTerm createConstructedTerm(IRI functionSymbol, List<Term> terms) throws IllegalArgumentException
functionSymbol
- identifier of the constructed termterms
- arguments of the constructed term
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
Variable createVariable(String varName)
varName
- The name of the new variable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |