ilog.rules.vocabulary.model

Interface IlrSyntacticRole

  • All Superinterfaces:
    IlrBaseElement, IlrNotifier, java.io.Serializable


    public interface IlrSyntacticRole
    extends IlrBaseElement
    This interface defines the syntactic role of a phrase.

    A syntactic role represents the syntactic function of an IlrRole in a sentence. A syntactic role is contained in an ordered list in an IlrSentence. It has two main characteristics: the category (see IlrSyntacticRoleCategory), which indicates if the role is a subject or an object in the phrase, and the cardinality (see IlrCardinality), which indicates if the relation to the underlying concept is one to one (cardinality single) or one to many (cardinality multiple).

    A syntactic role contains also a label, and a reference to a role of the fact type, as semantic role.

    • Method Detail

      • getCategory

        IlrSyntacticRoleCategory getCategory()
        Gets the category of syntactic role.
        Returns:
        The category of this syntactic role.
      • setCategory

        void setCategory(IlrSyntacticRoleCategory category)
        Sets the category of this syntactic role.
        Parameters:
        category - The new syntactic role category.
      • getCardinality

        IlrCardinality getCardinality()
        Gets the cardinality of this syntactic role.
        Returns:
        The cardinality of this syntactic role.
      • setCardinality

        void setCardinality(IlrCardinality cardinality)
        Sets the cardinality of this syntactic role.
        Parameters:
        cardinality - The new cardinality.
      • getSentence

        IlrSentence getSentence()
        Gets the sentence of this syntactic role.
        Returns:
        The sentence of this syntactic role.
      • getSemanticRole

        IlrRole getSemanticRole()
        Gets the semantic role of this syntactic role.
        Returns:
        The role of this syntactic role.
      • setSemanticRole

        void setSemanticRole(IlrRole role)
        Sets the semantic role of this syntactic role.
        Parameters:
        role - The role of this syntactic role.
      • getIndex

        int getIndex()
        Gets the index of this syntactic role.
        Returns:
        The index of this syntactic role.
      • getLabel

        java.lang.String getLabel()
        Gets the label attached to this syntactic role.
        Returns:
        The label attached to this syntactic role, or null if no label has been defined.
      • setLabel

        void setLabel(java.lang.String label)
        Sets the label to this syntactic role.
        Parameters:
        label - The new label.

© Copyright IBM Corp. 1987, 2017