Skip to content

Commit

Permalink
Update Manchester syntax for additional inverse property clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Jun 17, 2024
1 parent fca9e28 commit 262b3be
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/grammars/omn.pest
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,17 @@ MiscClause = {
// EquivalentTo:
// obo:OBI_0000299

InverseObjectPropertyFrame = { "ObjectProperty:" ~ InverseObjectProperty ~ InverseObjectPropertyClause }
InverseObjectPropertyEquivalentToClause = { "EquivalentTo:" ~ ObjectPropertyExpressionAnnotatedList }
InverseObjectPropertyDisjointWithClause = { "DisjointWith:" ~ ObjectPropertyExpressionAnnotatedList }
InverseObjectPropertyClause = { InverseObjectPropertyEquivalentToClause | InverseObjectPropertyDisjointWithClause }
InverseObjectPropertyFrame = { "ObjectProperty:" ~ InverseObjectProperty ~ InverseObjectPropertyClause }
InverseObjectPropertyEquivalentToClause = { "EquivalentTo:" ~ ObjectPropertyExpressionAnnotatedList }
InverseObjectPropertyDisjointWithClause = { "DisjointWith:" ~ ObjectPropertyExpressionAnnotatedList }
InverseObjectPropertyCharacteristicsClause = { "Characteristics:" ~ ObjectPropertyCharacteristicAnnotatedList }
InverseObjectPropertySubPropertyOfClause = { "SubPropertyOf:" ~ ObjectPropertyExpressionAnnotatedList }
InverseObjectPropertyClause = {
InverseObjectPropertyEquivalentToClause
| InverseObjectPropertyDisjointWithClause
| InverseObjectPropertyCharacteristicsClause
| InverseObjectPropertySubPropertyOfClause
}


// Annex: SWRL Rules
Expand All @@ -437,9 +444,9 @@ SWRLAtom = {
| DataRange ~ LBRACKET ~ SWRLDObject ~ RBRACKET
| ObjectPropertyIRI ~ LBRACKET ~ SWRLIObject ~ COMMA ~ SWRLDObject ~ RBRACKET
| DataPropertyIRI ~ LBRACKET ~ SWRLIObject ~ COMMA ~ SWRLDObject ~ RBRACKET
| "sameAs" ~ LBRACKET ~ SWRLIObject ~ COMMA ~ SWRLIObject ~ RBRACKET
| "differentFrom" ~ LBRACKET ~ SWRLIObject ~ COMMA ~ SWRLIObject ~ RBRACKET
| "builtIn" ~ LBRACKET ~ SWRLBuiltinID ~ (COMMA ~ SWRLDObject)* ~ RBRACKET
| "SameAs" ~ LBRACKET ~ SWRLIObject ~ COMMA ~ SWRLIObject ~ RBRACKET
| "DifferentFrom" ~ LBRACKET ~ SWRLIObject ~ COMMA ~ SWRLIObject ~ RBRACKET
| "BuiltIn" ~ LBRACKET ~ SWRLBuiltinID ~ (COMMA ~ SWRLDObject)* ~ RBRACKET
}

SWRLBuiltinID = { IRI }
Expand Down

0 comments on commit 262b3be

Please sign in to comment.