Skip to content

SRL abstract syntax #1281

Description

@afs

Part of #1194

I would start with a concrete definition of the abstract syntax.

Something like

Term ::= RDFTerm | Var
Triple ::= (Term, IRI | Var, Term)

RuleElement ::= TriplePatternElem(Triple)
            | ConditionElem(Expr)
            | NegationElem(Triple+)
            | AssignmentElem(Var, Expr)

RuleBody ::= RuleElement*
RuleHead ::= Triple+

Rule ::= (RuleHead, RuleBody)

RuleSetMember ::= Rule | DataBlock | RuleImport
RuleSet ::= RuleSetMember*

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions