System and method for managing resources using a compositional programming model
AssigneeInternational Business Machines Corporation
InventorsBruce David Lucas, John Field, Rafah A. Hosn, Maria-Cristina V. Marinescu, Mark N. Wegman, Charles Francis Wiecha
Life of this patent
Estimating the term…
Abstract
A model is provided for managing resources in a programming environment. A first construct is triggered to update mutable entities in response to changes to related data associated with the mutable entities. In accordance with the updated mutable entities, at least one of a second construct and a third construct is triggered to respectively create a new mutable entity and update a data relationship.
Claims20
A method for managing resources in a computer programming environment, comprising:
- triggering, using at least one processor, a <bind> construct that declaratively specifies updates to a runtime state of a computer program to update one or more existing resources stored on a computer readable storage medium, the one or more existing resources including related data that includes one or more resource description framework (RDF) triples,
- wherein triggering the <bind> construct includes declaratively specifying how a value of given one of the one or more existing resources changes in response to changes in the related data of the given existing resource, and wherein the <bind> construct has access to old and new values for the related data to determine the changes in the related data of the given existing resource;
- and
- in accordance with at least the specified update to the given existing resource, triggering, using the at least one processor, at least one of:
- a <create> construct that declaratively specifies creation of a new resource;
- and
- a <let> construct that declaratively specifies an update of a data relationship including the given existing resource by creating or destroying at least one RDF triple.
A computer program product for managing resources in a programming environment comprising a non-transitory computer readable storage medium including a computer readable program, wherein the computer readable program when executed on a computer causes the computer to perform steps of:
- triggering, using at least one processor, a <bind> construct that declaratively specifies updates to a runtime state of a computer program to update one or more existing resources stored on a computer readable storage medium, the one or more existing resources including related data that includes one or more resource description framework (RDF) triples,
- wherein triggering the <bind> construct includes declaratively specifying how a value of a given one of the one or more existing resources changes in response to changes in the related data of the given existing resource, and wherein the <bind> construct has access to old and new values for the related data to determine the changes in the related data of the given existing resource;
- and
- in accordance with at least the specified update to the given existing resource, triggering, using the at least one processor, at least one of:
- a <create> construct that declaratively specifies creation of a new resource;
- and
- a <let> construct that declaratively specifies an update of a data relationship including the given existing resource by creating or destroying at least one RDF′ triple.
A method for managing resources in a computer programming environment, comprising:
- providing one or more existing resources with class definitions having related data including one or more resource description framework (RDF) triples, wherein the one or more RDF triples are included in a subset and are stored on a computer readable storage medium;
- triggering, using at least one processor, a <bind> construct that declaratively specifies updates to a runtime state of a computer program to update at least a given one of the one or more existing resources in accordance with changes in the related data of the given existing resource,
- wherein triggering the <bind> construct includes specifying how a value of the given existing resource changes in response to the changes in the related data of the given existing resource, and wherein the <bind> construct has access to old and new values for the related data to determine the changes in the related data associated of the given existing resource;
- and
- in accordance with at least the specified update to the given existing resource, triggering, using the at least one processor, at least one of:
- a <create> construct that declaratively specifies creation of a new resource;
- and
- a <let> construct that declaratively specifies an update of a data relationship including the given existing resource by creating or destroying at least one RDF triple.
Dependencies are inferred from the claim text.