Column constraints based on arbitrary sets of objects
First Claim
1. A method of enforcing a constraint on a constrained object in a database system, the method comprising the steps performed in the database system of:
- receiving a specification in the database system of the constrained object and a specification of an arbitrary constraint set of objects, the objects in the constraint set being possible values of the constrained object;
associating the constrained object with the constraint set; and
when an operation in the database system adds a value to the constrained object, permitting the operation only if the added value is a member of the constraint set.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques for using arbitrary sets of objects to constrain objects in database systems. The constraint set of objects is associated with the constrained object in the database system and the database system will perform an operation which adds an object to the constrained object only if the object being added belongs to the constraint set. In a preferred embodiment, the techniques are employed to obtain constraint sets of terms from ontologies which are then used to constrain columns containing those terms. An implementation of the techniques makes a materialized view out of the objects in the constraint set and uses the materialized view to define a referential integrity constraint on the constrained column.
-
Citations
44 Claims
-
1. A method of enforcing a constraint on a constrained object in a database system, the method comprising the steps performed in the database system of:
-
receiving a specification in the database system of the constrained object and a specification of an arbitrary constraint set of objects, the objects in the constraint set being possible values of the constrained object;
associating the constrained object with the constraint set; and
when an operation in the database system adds a value to the constrained object, permitting the operation only if the added value is a member of the constraint set. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 32)
-
-
13. An apparatus for enforcing a constraint on a constrained object in a database system, the apparatus comprising:
-
an association in the database system between the constrained object and an arbitrary constraint set of objects, the objects in the constraint set being possible values of the constrained object; and
a constraint enforcer in the data base system which, when an operation in the database system adds a value to the constrained object, permits the operation only if the added value is a member of the constraint set. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22, 23)
-
-
24. A method of enforcing a constraint on a constrained object in a database system, the constrained object having values that are terms of an ontology and the method comprising the steps performed in the database system of:
-
receiving a specification in the database system of the constrained object and a specification of a query that returns a set of terms of the ontology;
associating the constrained object with the set of terms; and
when an operation in the database system adds a term to the constrained object, permitting the operation only if the added term is a member of the set of terms. - View Dependent Claims (25, 26, 27, 28, 29, 30, 31, 33, 34)
-
-
35. Apparatus for enforcing a constraint on a constrained object in a database system, the constrained object having values that are terms of an ontology and the apparatus comprising:
-
an association in the database system between the constrained object and a query that returns a set of terms of the ontology; and
a constraint enforcer in the data base system which, when an operation in the database system adds a term to the constrained object, permits the operation only if the added term is a member of the set of terms. - View Dependent Claims (36, 37, 38, 39, 40, 41, 42, 43, 44)
-
Specification