×

METHODS FOR CODE GENERATION FROM SEMANTIC MODELS AND RULES

  • US 20120278788A1
  • Filed: 04/29/2011
  • Published: 11/01/2012
  • Est. Priority Date: 04/29/2011
  • Status: Abandoned Application
First Claim
Patent Images

1. A computerized method for translating semantic models and rules into procedural code in a desired procedural language, comprising:

  • evaluating a conclusion of a semantic rule to determine information computed by the semantic rule, wherein one or more elements in the semantic rule conclusion comprise one or more triples;

    identifying one or more variables in each of the one or more triples for each of the one or more elements in the semantic rule conclusion, wherein the one or more variables are also present in a premise of the semantic rule;

    determining a property of each triple in the one or more triples for each of the one or more elements in the semantic rule conclusion for identifying a procedural function where procedural code generated in lieu of the semantic rule will be incorporated;

    identifying one or more elements in the semantic rule premise that bind one or more subject variables in the one or more variables, wherein each of the one or more subject variables is a subject of at least one of the one or more triples in the semantic rule conclusion;

    determining whether one or more triples in the semantic rule premise comprising one or more of the identified subject variables are “

    type”

    statements;

    determining the domain of the property of each of the one or more triples in the semantic rule premise, the semantic rule conclusion, or a combination thereof, that comprise one or more of the identified subject variables and are not “

    type”

    statements;

    associating the procedural function with one or more procedural classes translated from one or more semantic classes obtained from an intersection of the classes identified by the triples determined to be “

    type”

    statements and the classes identified as the domain of the triples that comprise the identified subject variables in the semantic rule premise, the semantic rule conclusion, or a combination thereof, and are not “

    type”

    statements;

    determining a computation performed by the semantic rule based on one or more elements in the semantic rule premise that compute a value of one or more object variables in the one or more variables, wherein the each of the one or more object variables is an object of at least one of the one or more triples in the semantic rule conclusion; and

    updating the procedural function in associated procedural classes with procedural code generated in lieu of the determined computation to return the computed value.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×