1. Field of the Invention
The present invention relates to techniques for performing oilfield operations relating to subterranean formations having reservoirs therein. More particularly, the invention relates to techniques for performing oilfield operations involving an analysis of reservoir operations, and the impact on such oilfield operations.
2. Background of the Related Art
Oilfield operations, such as surveying, drilling, wireline testing, completions, simulation, planning and oilfield analysis, are typically performed to locate and gather valuable downhole fluids. Various aspects of the oilfield and its related operations are shown in
As shown in
After the drilling operation is complete, the well may then be prepared for production. As shown in
During the oilfield operations, data is typically collected for analysis and/or monitoring of the oilfield operations. Such data may include, for example, subterranean formation, equipment, historical and/or other data. Data concerning the subterranean formation is collected using a variety of sources. Such formation data may be static or dynamic. Static data relates to, for example, formation structure and geological stratigraphy that define the geological structure of the subterranean formation. Dynamic data relates to, for example, fluids flowing through the geologic structures of the subterranean formation over time. Such static and/or dynamic data may be collected to learn more about the formations and the valuable assets contained therein.
Sources used to collect static data may be seismic tools, such as a seismic truck that sends compression waves into the earth as shown in
Sensors may be positioned about the oilfield to collect data relating to various oilfield operations. For example, sensors in the drilling equipment may monitor drilling conditions, sensors in the wellbore may monitor fluid composition, sensors located along the flow path may monitor flow rates, and sensors at the processing facility may monitor fluids collected. Other sensors may be provided to monitor downhole, surface, equipment or other conditions. The monitored data is often used to make decisions at various locations of the oilfield at various times. Data collected by these sensors may be further analyzed and processed. Data may be collected and used for current or future operations. When used for future operations at the same or other locations, such data may sometimes be referred to as historical data.
The processed data may be used to predict downhole conditions, and make decisions concerning oilfield operations. Such decisions may involve well planning, well targeting, well completions, operating levels, production rates and other operations and/or conditions. Often this information is used to determine when to drill new wells, re-complete existing wells, or alter wellbore production.
Data from one or more wellbores may be analyzed to plan or predict various outcomes at a given wellbore. In some cases, the data from neighboring wellbores or wellbores with similar conditions or equipment may be used to predict how a well will perform. There are usually a large number of variables and large quantities of data to consider in analyzing oilfield operations. It is, therefore, often useful to model the behavior of the oilfield operation to determine the desired course of action. During the ongoing operations, the operating conditions may need adjustment as conditions change and new information is received.
Techniques have been developed to model the behavior of various aspects of the oilfield operations, such as geological structures, downhole reservoirs, wellbores, surface facilities as well as other portions of the oilfield operation. Typically, there are different types of simulators for different purposes. For example, there are simulators that focus on reservoir properties, wellbore production, or surface processing. Examples of simulators that may be used at the wellsite are described in U.S. Pat. No. 5,992,519 and WO2004/049216. Other examples of these modeling techniques are shown in Patent/Publication Nos. U.S. Pat. No. 5,992,519, U.S. Pat. No. 6,313,837, WO1999/064896, WO2005/122001, US2003/0216897, US2003/0132934, US2005/0149307, and US2006/0197759.
Recent attempts have been made to consider a broader range of data in oilfield operations. For example, U.S. Pat. No. 6,980,940 to Gurpinar discloses integrated reservoir optimization involving the assimilation of diverse data to optimize overall performance of a reservoir. In another example, Patent Application No. WO2004/049216 to Ghorayeb discloses an integrated modeling solution for coupling multiple reservoir simulations and surface facility networks. Other examples of such recent attempts are disclosed in Patent/Publication/Application Nos. U.S. Pat. No. 6,018,497, U.S. Pat. No. 6,078,869, U.S. Pat. No. 6,106,561, U.S. Pat. No. 6,230,101, U.S. Pat. No. 7,164,990, GB2336008, US2006/0129366, US2004/0220846, US2006/0184329, and U.S. Ser. No. 10/586,283. Some techniques involve mapping data between a data base format and an object oriented format are described, for example, in European Patent Application Nos. 1383056, 1385100, 1696348, U.S. Pat. Nos. 694,598, 5,765,159, 5,829,006, and PCT Patent Application No. WO1999/032996.
Despite the development and advancement of managing oilfield data for oilfield operations, there remains a need to provide techniques capable of automatically generating an object-oriented application programming interface (or object API) allowing oilfield data to be accessed from a data repository of various formats. It would be desirable to have a system that allows oilfield data throughout the oilfield operation to be stored in a data repository suitable for retrieving large amounts of very specific information. One such example is a relational database, which has a constant time overhead associated with each query therefore suitable for applications that retrieve large datasets infrequently. In some cases, it may be desirable to access oilfield data through object APIs, which emphasize object-to-object navigation. In other cases, it may be desirable to eliminate expensive overhead caused by frequent suboptimal queries that retrieve single items of information. It is further desirable that such techniques be capable of one of more of the following, among others: mapping one application programming interface to multiple data repositories with different formats, accessing oilfield data from different oilfield functions using consistent interface to request data based on oilfield entities, automatically producing and maintaining mappings associating relational data with object data, implementing such mappings by generating a source code of an object library, that when compiled, provides an object view of relational data.
In general, in one aspect, the invention relates to a method for performing operations of an oilfield having at least one wellsite, a surface network, and a process facility, each wellsite having a wellbore penetrating a subterranean formation for extracting fluid from an underground reservoir therein. The method includes storing oilfield data associated with a plurality of oilfield entities in a first data repository, obtaining a first target metamodel comprising structural description of a first plurality of data entities of the first data repository, obtaining a domain metamodel interleaved with a first mapping specification, the domain metamodel comprising structural description of a domain model for representing the plurality of oilfield entities in an application programming interface, obtaining a mapping specification associating the first target metamodel with the domain metamodel and forming the application programming interface based on the domain metamodel, the first target metamodel, and the first mapping specification using a computer implemented method.
In general, in one aspect, the invention relates to a method for performing operations of an oilfield having at least one wellsite, a surface network, and a process facility, each wellsite having a wellbore penetrating a subterranean formation for extracting fluid from an underground reservoir therein. The method includes storing oilfield data associated with a plurality of oilfield entities in a data repository, obtaining a first structural description of a plurality of data entities of the data repository, obtaining a second structural description of a representation of the plurality of oilfield entities in an application programming interface, at least a portion of the representation of the plurality of oilfield entities is obtained from a reference metamodel, obtaining a mapping specification associating the first structural description with the second structural description, and forming the application programming interface based on the first structural description, the second structural description, and the mapping specification using a computer implemented method.
In general, in one aspect, the invention relates to a system for performing operations of an oilfield having at least one wellsite, a surface network, and a process facility, each wellsite having a wellbore penetrating a subterranean formation for extracting fluid from an underground reservoir therein. The system includes a first structural description of a representation of a plurality of oilfield entities in an application programming interface, wherein the application programming interface comprises an interface layer and an implementation layer, wherein oilfield data associated with the plurality of oilfield entities is stored in a data repository accessible through the application programming interface, a first plurality of hierarchical tasks for forming the interface layer of the application programming interface based on the first structural description, and a code generator kernel for receiving user inputs and invoking the plurality of hierarchical tasks.
In general, in one aspect, the invention relates to a system for performing operations of an oilfield having at least one wellsite, a surface network, and a process facility, each wellsite having a wellbore penetrating a subterranean formation for extracting fluid from an underground reservoir therein. The system includes a first structural description of a plurality of data entities of a data repository, a second structural description of a representation of a plurality of oilfield entities in an application programming interface, wherein oilfield data associated with the plurality of oilfield entities is stored in the data repository, a mapping specification associating the first structural description with the second structural description, a plurality of hierarchical tasks for forming the application programming interface based on the first structural description, the second structural description, and the mapping specification using a computer implemented method, and a code generator kernel for receiving user inputs and invoking the plurality of hierarchical tasks to form the application programming interface.
In general, in one aspect, the invention relates to a method for performing operations of an oilfield having at least one wellsite, a surface network, and a process facility, each wellsite having a wellbore penetrating a subterranean formation for extracting fluid from an underground reservoir therein. The method includes storing oilfield data associated with a plurality of oilfield entities in a data repository, obtaining a first structural description of a plurality of data entities of the data repository, obtaining a second structural description of a representation of the plurality of oilfield entities in an application programming interface, obtaining a mapping specification associating the first structural description with the second structural description, forming an interface layer of the application programming interface based on the second structural description, and forming an implementation layer of the application programming interface based on the first structural description, the second structural description, and the mapping specification using a computer implemented method.
Other aspects and advantages of the invention will be apparent from the following description and the appended claims.
So that the above recited features and advantages of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to the embodiments thereof that are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this invention and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.
a shows a flow of queries and responses in accordance with an embodiment of the invention.
b-22d show exemplary domain-level query.
e-22f show exemplary property priming.
g-22h show exemplary generated code structures.
Presently preferred embodiments of the invention are shown in the above-identified figures and described in detail below. In describing the preferred embodiments, like or identical reference numerals are used to identify common or similar elements. The figures are not necessarily to scale and certain features and certain views of the figures may be shown exaggerated in scale or in schematic in the interest of clarity and conciseness.
In response to the received sound vibration(s) (112) representative of different parameters (such as amplitude and/or frequency) of the sound vibration(s) (112). The data received (120) is provided as input data to a computer (122a) of the seismic recording truck (106a), and responsive to the input data, the recording truck computer (122a) generates a seismic data output record (124). The seismic data may be further processed as desired, for example by data reduction.
A surface unit (134) is used to communicate with the drilling tool (106b) and offsite operations. The surface unit (134) is capable of communicating with the drilling tool (106b) to send commands to drive the drilling tool (106b), and to receive data therefrom. The surface unit (134) is preferably provided with computer facilities for receiving, storing, processing, and analyzing data from the oilfield (100). The surface unit (134) collects data output (135) generated during the drilling operation. Computer facilities, such as those of the surface unit (134), may be positioned at various locations about the oilfield (100) and/or at remote locations.
Sensors (S), such as gauges, may be positioned throughout the reservoir, rig, oilfield equipment (such as the downhole tool), or other portions of the oilfield for gathering information about various parameters, such as surface parameters, downhole parameters, and/or operating conditions. These sensors (S) preferably measure oilfield parameters, such as weight on bit, torque on bit, pressures, temperatures, flow rates, compositions and other parameters of the oilfield operation.
The information gathered by the sensors (S) may be collected by the surface unit (134) and/or other data collection sources for analysis or other processing. The data collected by the sensors (S) may be used alone or in combination with other data. The data may be collected in a database and all or select portions of the data may be selectively used for analyzing and/or predicting oilfield operations of the current and/or other wellbores.
Data outputs from the various sensors (S) positioned about the oilfield may be processed for use. The data may be historical data, real time data, or combinations thereof. The real time data may be used in real time, or stored for later use. The data may also be combined with historical data or other inputs for further analysis. The data may be housed in separate databases, or combined into a single database.
The collected data may be used to perform analysis, such as modeling operations. For example, the seismic data output may be used to perform geological, geophysical, reservoir engineering, and/or production simulations. The reservoir, wellbore, surface and/or process data may be used to perform reservoir, wellbore, or other production simulations. The data outputs from the oilfield operation may be generated directly from the sensors (S), or after some preprocessing or modeling. These data outputs may act as inputs for further analysis.
The data is collected and stored at the surface unit (134). One or more surface units (134) may be located at the oilfield (100), or linked remotely thereto. The surface unit (134) may be a single unit, or a complex network of units used to perform the necessary data management functions throughout the oilfield (100). The surface unit (134) may be a manual or automatic system. The surface unit (134) may be operated and/or adjusted by a user.
The surface unit (134) may be provided with a transceiver (137) to allow communications between the surface unit (134) and various portions (or regions) of the oilfield (100) or other locations. The surface unit (134) may also be provided with or functionally linked to a controller for actuating mechanisms at the oilfield (100). The surface unit (134) may then send command signals to the oilfield (100) in response to data received. The surface unit (134) may receive commands via the transceiver or may itself execute commands to the controller. A processor may be provided to analyze the data (locally or remotely) and make the decisions to actuate the controller. In this manner, the oilfield (100) may be selectively adjusted based on the data collected to optimize fluid recovery rates, or to maximize the longevity of the reservoir and its ultimate production capacity. These adjustments may be made automatically based on computer protocol, or manually by an operator. In some cases, well plans may be adjusted to select optimum operating conditions, or to avoid problems.
The wireline tool (106c) may be operatively linked to, for example, the geophones (118) stored in the computer (122a) of the seismic recording truck (106a) of
While
The oilfield configuration in
The respective graphs of
Data plots (308a-308c) are examples of static data plots that may be generated by the data acquisition tools (302a-302d), respectively. Static data plot (308a) is a seismic two-way response time and may be the same as the seismic trace (202) of
The subterranean formation (304) has a plurality of geological structures (306a-306d). As shown, the formation has a sandstone layer (306a), a limestone layer (306b), a shale layer (306c), and a sand layer (306d). A fault line (307) extends through the formation. The static data acquisition tools are preferably adapted to measure the formation and detect the characteristics of the geological structures of the formation.
While a specific subterranean formation (304) with specific geological structures is depicted, it will be appreciated that the formation may contain a variety of geological structures. Fluid may also be present in various portions of the formation. Each of the measurement devices may be used to measure properties of the formation and/or its underlying structures. While each acquisition tool is shown as being in specific locations along the formation, it will be appreciated that one or more types of measurement may be taken at one or more location across one or more oilfields or other locations for comparison and/or analysis.
The data collected from various sources, such as the data acquisition tools of
Each wellsite (402) has equipment that forms a wellbore (436) into the earth. The wellbores extend through subterranean formations (406) including reservoirs (404). These reservoirs (404) contain fluids, such as hydrocarbons. The wellsites draw fluid from the reservoirs and pass them to the processing facilities via surface networks (444). The surface networks (444) have tubing and control mechanisms for controlling the flow of fluids from the wellsite to the processing facility (454).
Wellbore production equipment (564) extends from a wellhead (566) of wellsite (402) and to the reservoir (404) to draw fluid to the surface. The wellsite (402) is operatively connected to the surface network (444) via a transport line (561). Fluid flows from the reservoir (404), through the wellbore (436), and onto the surface network (444). The fluid then flows from the surface network (444) to the process facilities (454).
As further shown in
One or more surface units (534) may be located at the oilfield (400), or linked remotely thereto. The surface unit (534) may be a single unit, or a complex network of units used to perform the necessary data management functions throughout the oilfield (400). The surface unit may be a manual or automatic system. The surface unit may be operated and/or adjusted by a user. The surface unit is adapted to receive and store data. The surface unit may also be equipped to communicate with various oilfield equipment. The surface unit may then send command signals to the oilfield in response to data received or modeling performed.
As shown in
The analyzed data (e.g., based on modeling performed) may then be used to make decisions. A transceiver (not shown) may be provided to allow communications between the surface unit (534) and the oilfield (400). The controller (522) may be used to actuate mechanisms at the oilfield (400) via the transceiver and based on these decisions. In this manner, the oilfield (400) may be selectively adjusted based on the data collected. These adjustments may be made automatically based on computer protocol and/or manually by an operator. In some cases, well plans are adjusted to select optimum operating conditions or to avoid problems.
To facilitate the processing and analysis of data, simulators may be used to process the data for modeling various aspects of the oilfield operation. Specific simulators are often used in connection with specific oilfield operations, such as reservoir or wellbore simulation. Data fed into the simulator(s) may be historical data, real time data or combinations thereof. Simulation through one or more of the simulators may be repeated or adjusted based on the data received.
As shown, the oilfield operation is provided with wellsite and non-wellsite simulators. The wellsite simulators may include a reservoir simulator (340), a wellbore simulator (342), and a surface network simulator (344). The reservoir simulator (340) solves for hydrocarbon flow through the reservoir rock and into the wellbores. The wellbore simulator (342) and surface network simulator (344) solves for hydrocarbon flow through the wellbore and the surface network (444) of pipelines. As shown, some of the simulators may be separate or combined, depending on the available systems.
The non-wellsite simulators may include process (346) and economics (348) simulators. The processing unit has a process simulator (346). The process simulator (346) models the processing plant (e.g., the process facilities (454)) where the hydrocarbon(s) is/are separated into its constituent components (e.g., methane, ethane, propane, etc.) and prepared for sales. The oilfield (400) is provided with an economics simulator (348). The economics simulator (348) models the costs of part or the entire oilfield (400) throughout a portion or the entire duration of the oilfield operation. Various combinations of these and other oilfield simulators may be provided.
As described above, data plots (308a-308c) are examples of oilfield data entities collected from various sources, such as the data acquisition tools of
Relational databases are designed to store large amounts of information. Information in relational databases is stored in different tables, each defined to contain one or more columns, each column containing a primitive item of information—for example, a string or a number. Programs add information to a relational database by adding rows (containing values for one or more defined table-defined columns) to database tables, and find information in relational databases by issuing queries. Typically, all operations on a relational database are performed by operations expressed in a textual query language, such as Structured Query Language (SQL). The relational database is an example of the data repository or multiple data repositories described above. The tables, columns, rows, and the primitive item of information are examples of data base entities. The relational interface such as queries or SQL are examples of commands for accessing data in the data repository or multiple data repositories.
The term “relational database” refers to the fact that a column in a row of one table can identify a row of another (or the same) table. This reference mechanism supports relations between rows of information. Relational databases can enforce consistency of information both between table rows and within table rows. Database designers may choose to declare integrity constraints that ensure that column data is valid; for example that a column can never refer to a non-existent table row. Defining such constraints is a recommended good practice, but is not mandatory. Even when integrity constraints are designed, they are not as readily visible to database programmers, as is table structure. Thus, while the physical model of data in the database—the tables and their columns—may be visible to developers, the conceptual model—the high-level concepts represented by the tables and the relationships between tables, which gives significant meaning to the data—is not immediately obvious.
In addition, the definitions of the tables included within a relational database can change over time. When these definitions change, any application using a relational interface to access data in the database may also change to assure proper operation of the application. When a database is used by many, independently-developed applications, it can be extremely difficult to identify all applications that are to be changed in response to a database definition change.
More importantly, designers desire the flexibility to make applications store their data in a plurality of relational databases (e.g., the multiple data repositories described above) having different physical models (e.g., based on a particular oilfield entity associated with the stored data) and conceptual models (e.g., based on a particular oilfield function for which data is collected or generated for). Good software engineering practices include the use of a software layer that insulates the application from the underlying database. The adaptor presents a single, stable interface for the application program, while supporting multiple “backend” implementations that are specific to each underlying database to be used. This approach solves the database portability problem for the application programmer, but still requires significant coding investment for each backend database to be used. Moreover, when the backend coding task is difficult (because programming against relational databases is difficult), the adaptor layer tends toward exposing a least-common-denominator view over the intersection of databases to be supported. Such views can ultimately render the adaptor useless, as often critical and/or valuable information cannot be stored and retrieved through the adaptor, leading programmers to circumvent the adaptor.
These characteristics of relational programming can be the root-level cause of many errors that only occur after an application has been delivered to its end users, and has motivated the software industry to develop ORM tools.
Object-oriented application programming interfaces (APIs) (e.g., the Object API (2132) of
Object-based programming languages (e.g., used for application (2131) as shown in
However, query and persistence remains an issue for programmers using an object API. It is common practice in the software industry for developers to write his/her own persistence mechanisms from scratch, and also to simply not provide a query mechanism. Developers develop some mission-critical software for a long life cycle, and occasionally for accessing large persistent data stores. These issues also motivate tools to create object-relational mapping adaptors.
ORM tools adapt relational programming interfaces (such as queries or SQL) to object-oriented application programming interfaces, and give programmers the encapsulation, expressiveness, and compile-time safety of object interfaces while taking advantage of the efficiency and integrity offered by relational databases. The fundamental service of object-relational mapping is to translate between data stored in columns of database table rows and data expressed through properties of related objects defined in a type hierarchy. ORM allows applications to perform the database operations of create, update, delete through the compile-time-safe object API while storing the data in the relational database. Some ORM tools also permit applications to perform the database operation of find with respect to data. Data may be, for example, oilfield data shown in
It should be noted that relational databases excel at retrieving large amounts of very specific information. This is because relational databases retrieve data in a set-oriented manner, efficiently returning data that matches a query predicate in a single (potentially very large) dataset. This relational query interface lends itself to applications that retrieve large datasets infrequently. Consequently, there is a constant time overhead associated with each query. Ultimately, the overhead causes frequent queries that retrieve single items of information to be very expensive. Unfortunately, object APIs, which emphasize object-to-object navigation, can end up exercising a relational database for these suboptimal queries when the object model is mapped onto a relational database.
ORM tools come in many forms. Common to all tools is the need to state how relational data will be mapped to object data. Producing and maintaining these mappings can be an onerous task. An example of this invention includes an embodiment of an ORM tool that implements the mapping between an object interface and a relational interface by generating the source code of an object library, that when compiled, provides an object view (e.g., for accessing data through the object APIs) of relational data (e.g., stored in the relational data base). The tool reduces the workload of software developers when creating and maintaining the object-relational mapping. The ORM tool infers (or derive) much of the information that would ordinarily be entered manually by a person developing or maintaining a mapping. The inferred information includes: 1) defaults for properties of domain objects, 2) queries to find database entities that map to domain objects, 3) queries to preload domain object properties with information from a complex web of interrelated database entities (thus minimizing the suboptimal small query result usage pattern), and 4) queries to follow relationships between database entities that are equivalent to relationships between domain objects.
The metamodels used as the target relational metamodel (2105) and possibly the reference metamodel (2107) are typically developed independently of the domain metamodel (2101). Developers can expect that the information needed to populate them already exists in some machine-readable form when they begin to define the domain metamodel (2101). In particular, the metamodel of a database can be used to supply information missing from the domain metamodel (2101), allowing the developer of the domain metamodel (2101) to specify only as much information as needed to make the combination of the domain metamodel (2101) and the reference metamodel (2107) complete.
The output from the code generator (2111) is source code (2113) in a particular programming language. The source code (2113) can be compiled by a compiler (2116) into a compiled domain model (2117), which may include a library of domain objects (i.e., an object library). A domain object may relate to a type of oilfield entity (e.g., a well, a formation, etc.). Domain object instances may be created (or instantiated) during execution (or run time) of the application (2131) from a domain object. A domain object instance may relate to a particular oilfield entity (e.g., a particular well in an oilfield, a particular portion of a formation, etc.) Accordingly, an object API (2132) may be formed using the compiled domain model (2117) that allows an application (2131) to create, update, delete, and find data (2116) in a relational database (2118) described by the input database metamodel, for example, the target relational metamodel (2105). More details of an exemplary implementation of the object API (2132) are described in
For describing the target relational metamodel (2105), the IEntityMeta (2101) contains structural description of a database entity (e.g., a table of a relational database), the IPropertyMeta (2301) contains structural description of non-relational data associated with the database entity (e.g., an attribute of a relational database), and IRelationalMeta (2302) contains structural description of relations between database entities (e.g., a foreign key of a relational database).
The UML standard is well known to those skilled in art. For clarity, the significance of the decorations at the end of the links between the interfaces is reiterated here.
The “*” and “1” at the end of a link indicate cardinality of the object at that end of the link. “1” indicates one; “*” indicates zero or more. The use of the cardinality decorators is generally implicit in the UML. For example, one ILinkMapping (2506) can refer to multiple IMappingConstraints 2501. Similarly, one IAttributeMapping (2504) and one IEntityMapping (2503) can also refer to many IMappingConstraints. One IEntityMapping can refer to multiple IEntityPartMappings (2507), IRelationMappings (2505) and IAttributeMappings.
The solid diamond indicates that the link is a “composition.” For example, an IMappingConstraint cannot exist without being referred to from an IEntityMapping, IAttributeMapping or ILinkMapping. For example, to support the ability to delete an IEntityMapping, any IMappingConstraint objects that the IEntityMapping also refers to need to be deleted.
The simple arrowheads (such as pointing into IMappingConstraint) indicate that the relation is navigable; it is possible to enumerate all of the IMappingConstraints associated with an IEntityMapping, IAttributeMapping or ILinkMapping.
The triangular arrowhead (such as pointing into the bottom of ILinkMapping) indicates an inheritance relation. IEntityPartMapping and IRelationMapping are both subtypes (or subclasses) of ILinkMapping.
As shown in
Further shown in
One example of a metamodel used as a target metamodel or a reference metamodel is the data dictionary of Seabed. Seabed is a relational database produced by Schlumberger Information Solutions for holding exploration and production information in support of a borehole operation. Other metamodels may also be used by configuring the metametamodel illustrated above to describe the structural format of the information contained in the metamodels so that the information may be provided to the Model Mapping Code Generator Task (2215) (see,
Within the XML file (600), line (621) is an example of a structure described by IEntityMeta (2101) of
The ORM tool implements nine distinct mapping capabilities based on the structure of the mapping specification and the abstraction of the domain model and data models described above:
1. Subsetting exposes a subset of a data entity's attributes as domain object properties.
2. Renaming exposes data entities and their attributes using different names.
3. Composition exposes one or more related data entities through a single domain object.
Capabilities 1, 2, and 3 are provided in object-relational mapping tools. In the present invention, the implementation of composition, the relational queries that compose one database entity with another are not supplied by the developer of the mapping specification. Instead, based on the structure of the mapping specification described above, the developer of the mapping specification defines a domain object mapping in terms of a “root” database entity (e.g., line (627) in the XML file (600)) and zero or more ancillary part entities (e.g., lines (628) and (629) in the XML file (600)). Part entities may in turn be composed of other subpart entities, in a recursive manner. The properties of a domain object map to attributes of the root entity or one of the ancillary part entities.
The queries to compose database entities are constructed automatically during code generation by analysis of the mapping specification (i.e., the relationship between the root and its parts, and parts and their subparts) and the underlying relational metamodel. A part is specified by its database type. In many cases, this is the only information the developer need provide in the specification for the code generator to determine the relational query that links entities in the database. Where there is more than one way to compose entities, the developer needs to name the database relationship with which to compose the entities. In order to establish recursive relationships, a developer specifies the directionality of the relationship. A recursive relationship is a relationship that links entities of the same type, such as one used to compose a part-whole hierarchy. Directionality specifies, between two entities, which entity is the parent and which entity is the child.
4. Hidden relationships allow one domain object to relate directly to another, while in the data model, the underlying data entities relate indirectly, through intermediate data entities that are not exposed in the data model. Hiding relationships is a form of composition (capability #3), but is well suited to hiding indirect relations that create one-to-many or many-to-many relationships. In this case, the part entity may be many-valued (typically, because it is related to the root or super part through a relation in which the subpart is the child). From each individual entity comprising the part, the mapping then follows a single-valued relation to a single entity, which is then inversely mapped to a domain object. The collection of such entities is a multi-valued relation in the domain model.
5. Hidden redundancy allows domain object to update a denormalized data model property or relation consistently. The mapping specification can contain any number of mappings for a domain property or relation; the code generator creates code to set each such mapping.
6. Defaulting provides values for properties of newly created domain objects.
This capability supports creating domain objects that map to root entities or compose parts with mandatory attribute values, or which maintain a usage rule invariant.
7. Conditional attributes expose data entity attribute values through domain object properties when specified constraints are met; the property has null value if the constraints are not met.
8. Relation abstraction allows the implementation of a domain model relation to be insulated from the underlying implementation of a data model relation (e.g., direction or implementation technique). The mapping specification refers to relations that compose parts and subparts, or which are exposed as domain object relation values by name only. The code generator is responsible for creating queries to expose the relation value; the code that it generates is dependent upon the relation type (e.g., traditional foreign key join or proprietary techniques that support non-relational concepts), relation directionality, and cardinality. If the relation implementation changes in future versions of the database, the mapping specification, and the domain API exposed to programmers does not change.
9. Natural key semantics recognize that some domain object properties map onto data entity attributes controlled by unique-key constraints; such properties cannot be updated arbitrarily, but instead, must be treated as creating a reference to a different object (which itself must be created if nonexistent).
As shown in
Consider the UWI property (814) of the BoiBorehole domain object (813). Referring back to
1. The DOGEntityGenerationTask (717) of
2. Next, the DOGPropertyGenerationTask (719) adds the declaration of the UWI property:
Finally, DOGPropertyGenerationTask (719) invokes the IPropertyGenerationHelper (707) implementation for the Seabed database to create the code to set and get the UWI property. There are many possible ways to implement these operations. Fundamentally, they involve a query to load the property and a query to save the updated property:
SELECT UBHI FROM Borehole WHERE Id=@p0
UPDATE Borehole SET UBHI=@p0 WHERE Borehole.Id=@p1
The tokens @p0 and @p1 represent parameters that allow the same queries to be executed multiple times referring to different boreholes or UBHI string values. The actual values to use in the query are provided externally to the parameters. A relational database may substitute the actual values into the actual query when it processes the query request.
Next, referring back to
1. Once again, the DOGEntityGenerationTask (717) and DOGPropertyGenerationTask (719) objects of
Note that the BusinessAssociateList (801) property is “get” only. This is because the DOGRelationGenerationHelper (708) recognizes that the relation is multi-valued. When the relation is multi-valued, application code may only get the value of the relation, but can subsequently add and remove from the returned collection.
2. The DOGRelationGenerationTask (717) asks the IRelationGenerationHelper (708) implementation for the Seabed database to supply code that queries the database to find the BBAI part of the BoiBorehole domain object. Referring to
In this query, the parameter p1 is bound to the string “Project_Team.” Passing the constraint value by parameter allows the relational database to reprocess the same query, with potentially different bindings for p1. More importantly, passing the constraint value by parameter prevents a “SQL Injection Attack.” A SQL injection attack involves passing malformed strings to the relational query interface that causes the database server to damage or destroy critical data.
3. The DOGRelationGenerationTask (707) asks the IRelationGenerationHelper (708) implementation for Seabed to supply code that queries the database to find the set of Business_Associate entities associated with the BBAI part. The helper (708) generates code that executes this query:
This query nests the previous query as a subquery. It is also within the scope of the invention for the generated implementation to cache the Id values of the entities that comprise the BBAI part, and to supply those values in the query to find the Business_Associate entities:
4. The DOGRelationGenerationTask (720) creates code to respond to add and remove events from the multi-valued collection. In response to a BoiBusinessAssociate being added to the list, the IRelationGenerationHelper (708) generates code that creates a new Borehole_BA_Involvement and relates it to the Borehole and the Business_Associate entities in the database. In response to removing a BoiBusinessAssociate from the list, it generates code that removes the appropriate Borehole_BA_Involvement from the database.
Also shown in
As shown in
A single well may be associated with multiple boreholes. A Deviation_Survey (921) and a Borehole_Activity (922) are subtypes of Activity (919). A Generic_Borehole_Activity (923) is a subtype of Borehole_Activity (922). A Business_Associate (914), Well (915), Borehole (920), and Activity (919) are all subtypes of Entity (918), which is a subtype of IT_Object (916).
Some of the links in
The invention may be implemented on virtually any type of computer regardless of the platform being used. For example, as shown in
Further, those skilled in the art will appreciate that one or more elements of the computer system (1100) may be located at a remote location and connected to the other elements over a network. Further, the invention may be implemented on a distributed system having a plurality of nodes, where each portion of the invention (for example, object store layer, communication layer, simulation logic layer, etc.) may be located on a different node within the distributed system. In one embodiment of the invention, the node corresponds to a computer system. Alternatively, the node may correspond to a processor with associated physical memory. The node may alternatively correspond to a processor with shared memory and/or resources. Further, software instructions to perform an embodiment of the invention may be stored on a computer readable medium such as a compact disc (CD), a diskette, a tape, a file, or any other computer readable storage device.
Specifically, the architecture includes a visualization and graphical user interface infrastructure sub-system (1201), a process/workflow sub-system (1203), a data sub-system (1205), and a core system implementation and Ocean services sub-system (1207). In addition, such an architecture may support a product family (1209) including Schlumberger Information Solutions products, such as Core Petrel, and Petrel AppShell. Furthermore, a pluggable application module (1211) may connect to one or more subsystems. The pluggable application module (1211) may be made by a third party or by Schlumberger Information Solutions.
Further,
Domain object services help to deliver a productive development environment for all Ocean developers. Domain object services extend the Core's domain object hosting service, providing capabilities that are expected to fit the needs of the data-centric product families. These include:
Domain object services extend the Ocean Core's Domain Object Hosting (DOH) layer. Domain object services complement DOH. Ocean is establishing rules for domain object behavior (e.g., multithreading support, unit, and coordinate data exposure); domain objects must comply with these rules.
Domain object services may also be involved in the bridge between domain objects, which represent entity and attribute data in a data model, and bulk data, which represents open-ended streams of data associated with a variety of entities.
Product families may require domain APIs to access data from different data sources. These include commercial third-party databases as well as proprietary customer databases.
Some data-centric products may need to work with data exposed through a classic connections (as opposed to meta-driven API connections). Access to data exposed through an object model, instead of a relational model, has architectural significance for domain object services.
a shows a flow of queries and responses in accordance with an embodiment of the invention. Here, application (1800) refers to the application making use of the domain object API (1801). Data Store Query Execution (1811) refers to the process of executing a command in the data store (e.g., a SQL Database) (1815), the result of which is a Cursor (1812) that can be used to step through a result. Each time the cursor (1812) is stepped, a new query result is returned. The result is returned in the form of a data record, which is a dictionary of name/value pairs—the names are columns from the relational table and the values are the values of the corresponding columns for a single row. Each such result is converted to a Data Object (1705) of
As shown in
Next, a data object management module (1820) may convert results from queries into data objects. The data object management module (1820) may rely upon cached data objects for data, and update such cached data objects. Next, a data object refactoring module (1830) may aggregate multiple data objects into a single data object. Alternatively, the data object re-factoring module (1830) may convert a data object into separate data objects, each of which can be shared between multiple domain objects. The unseparated data object may have been created because of a join into separate data objects. In addition, the data object re-factoring module (1830) may rename attributes. Such data objects are passed to the domain object management module (1840).
Data object management module (1840) may map data objects to domain objects according to mapping specifications. Mapping specifications may be, for example, mapping specification (2103) of
Runtime metadata (1850) provides a machine-interpretable description of a data model schema. This meta data is used for a number of tasks. This metadata is used for a number of tasks, such as enumerating the entity types in a data model, enumerating the attributes of an entity, identifying the type and constraints that apply to an attribute, and identifying the relations in which entities may participate.
Further,
Optional elements can be configured into the pipeline according to the demands of the application. This configuration can be specified globally, but can be overridden on a per-domain-object-type basis. In the component collaboration discussion that follows, components are marked as mandatory or optional; however, collaborations are discussed as if each possible component is configured. One skilled in the art should understand that if a collaborator component is not be configured into the pipeline, then the specific component being discussed collaborates with the next component in the pipeline instead. Also, in the discussion that follows, for each component of the pipeline, the “Responsibility” section describe the function of the component, the “Rationale” section describes the purpose of the function, and the “Collaborators” section describes other components that collaborate with this component in performing the function. It is noted that collaborations with other components in the pipeline are only described where needed.
Domain Object API (Mandatory) (1801)
Model Mapping (Mandatory) (1802)
Data Object API (1803)
Query Spec Refractoring (Optional) (1804)
Query Spec Broadening (Optional) (1806)
Query Formation (Mandatory) (1810)
Data Object Management (Mandatory) (1820)
Data Object Refractoring (Optional) (1830)
Domain Object Management (Mandatory) (1840)
Transaction State Management (Mandatory) (1847)
Cache Management (Optional) (1808)
Runtime Meta Data (Mandatory) (1850)
b-22d show exemplary domain-level query.
b illustrates an application performing queries for data using domain-level query instead of query at the database level. The domain-level query uses the vocabulary of the domain model such as the domain types, their object-oriented type hierarchy, and the properties exposed by the types.
As shown in
As shown in
All of the above steps are performed in the Domain Object API (1801) of
In addition to what is shown in
c shows a relevant portion of a relational metamodel to which the domain metamodel is mapped. BoiActualOperationDataPoint in
It can be seen in
d shows the actual SQL query generated for the domain level query of
The code necessary to convert the domain query to the relational query is automatically generated by the domain object generator, using information in the mapping specification, the domain metamodel and the relational metamodel. The steps in
e-22f show exemplary property priming.
For better performance, the application provides the data access stack with information regarding properties of domain object that the application may access. It is usually just as fast to load multiple columns from a relational database as it is to load a single column. For example, the data may be preloaded rather than hitting the database for every domain object as it is used. This process is called “priming.”
f shows what has to be executed at the relational level to satisfy this request. TopDepth comes from the Position that is the Surface Location the well associated with each borehole. UWI comes from the UBHI property of the borehole itself. The rest of the columns are fetched based on the need to know about entities that are pointed to by entities that are loaded, which is a general practice for more efficient integrity management in memory.
g-22h show exemplary generated code structures.
As shown in
Optionally, oilfield data (e.g., seismic survey, well log, etc.) associated with oilfield entities (e.g., wellbore, reservoir, etc.) may also be stored in a second data repository (Step 2011) (e.g., a relational database, etc.). A second target metamodel (such as the metamodel described in
An exemplary result of the method described above is illustrated in a drilling domain model application using Seabed database. Seabed is a relational database produced by Schlumberger Information Solutions for holding exploration and production information in support of a borehole operation. The exemplary domain model and mapping statistics for Seabed includes 100 domain objects, 91 Seabed entities, 618 simple properties, 144 relations, and 3,400 lines of indented XML. The exemplary generated code statistics include 250,000 lines of code (half comment and half non-comment) and 291 compile-time SQL queries. The exemplary results show that the code generation is a powerful mechanism for implementing mapping between data and domain models. The method described above creates code with consistent quality and completeness, allows data models to evolve without affecting domain models, and enables experimentation with alternative model mappings.
Furthermore, the steps of portions or all of the process may be repeated as desired. Repeated steps may be selectively performed until satisfactory results achieved. For example, steps may be repeated after adjustments are made. Adjustments to the oilfield operation may be made based on the oilfield data, the simulation results, the arrangement, and other factors. Various combinations may be tried and compared to determine the best outcome. The process may be repeated as desired.
It will be understood from the foregoing description that various modifications and changes may be made in the preferred and alternative embodiments of the present invention without departing from its true spirit. For example, the object API, data repository, and arrangement of the system may be altered to achieve the desired results. The data repository may be a relational database, a non-relational database, or other types of data store. In an example, the inputs to the code generator may be structured descriptions of physical models of oilfield entities and conceptual models of data entities in the form of a metamodel, in which case the code generator includes a metametamodel for interpreting the input metamodels. In another example, the inputs to the code generator may be in the form of a model, in which case the code generator includes a metamodel for interpreting the input models. The metametamodel may have different number of components than given in the example above and describe various different structures of the domain metamodel, the mapping specification, and the target relational metamodel. Although details are given in examples above regarding the domain metamodel, the mapping specification, and the target relational metamodel, each of them may consist of different number of components than described in the examples. Different structures of the domain metamodel may be used, the mapping specification may consist of various forms of hierarchical structures (e.g., varying number of nested levels and/or different recursive structures), and different structures of the target relational metamodel may also be used. For another example, the interleaving structure of the domain metamodel and the mapping specification may vary, the condition and structure of the mapping constraints may change, and the hierarchical structure of the code generator tasks may also be altered to achieve the desired results.
This description is intended for purposes of illustration only and should not be construed in a limiting sense. The scope of this invention should be determined only by the language of the claims that follow. The term “comprising” within the claims is intended to mean “including at least” such that the recited listing of elements in a claim are an open group. “A,” “an” and other singular terms are intended to include the plural forms thereof unless specifically excluded.
This continuation patent application claims benefit of priority to U.S. patent application Ser. No. 11/873,366 to Shoen et al., filed Oct. 16, 2007 and entitled, “Method and Apparatus for Oilfield Data Repository,” incorporated herein by reference in its entirety, which in turn claims benefit of priority to U.S. Provisional Patent Application No. 60/852,175, filed on Oct. 16, 2006, and incorporated herein by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
694598 | Armitage | Mar 1902 | A |
5694598 | Durand et al. | Dec 1997 | A |
5765159 | Srinivasan | Jun 1998 | A |
5829006 | Parvathaneny et al. | Oct 1998 | A |
6018497 | Gunaserka | Jan 2000 | A |
6078869 | Gunaserka | Jun 2000 | A |
6106561 | Farmer | Aug 2000 | A |
6230101 | Wallis | May 2001 | B1 |
6266619 | Thomas et al. | Jul 2001 | B1 |
6313837 | Assa et al. | Nov 2001 | B1 |
6519568 | Harvey et al. | Feb 2003 | B1 |
6980940 | Gurpinar et al. | Dec 2005 | B1 |
7164990 | Bratvedt et al. | Jan 2007 | B2 |
7289997 | Kita et al. | Oct 2007 | B1 |
7363578 | Bendsen et al. | Apr 2008 | B2 |
7895241 | Schoen et al. | Feb 2011 | B2 |
8024339 | Barker et al. | Sep 2011 | B2 |
20030098880 | Reddy et al. | May 2003 | A1 |
20030132934 | Fremming | Jul 2003 | A1 |
20030149934 | Worden | Aug 2003 | A1 |
20030216897 | Endres et al. | Nov 2003 | A1 |
20040220846 | Cullick et al. | Nov 2004 | A1 |
20050149307 | Gurpinar et al. | Jul 2005 | A1 |
20060129366 | Shaw | Jun 2006 | A1 |
20060184329 | Rowan et al. | Aug 2006 | A1 |
20060197759 | Fremming | Sep 2006 | A1 |
20070112547 | Ghorayeb et al. | May 2007 | A1 |
20080133550 | Orangi et al. | Jun 2008 | A1 |
Number | Date | Country |
---|---|---|
1383056 | Jan 2004 | EP |
1385100 | Jan 2004 | EP |
1696348 | Aug 2006 | EP |
2336008 | Oct 1999 | GB |
9932996 | Jul 1999 | WO |
9964896 | Dec 1999 | WO |
2005122001 | Dec 2005 | WO |
WO 2007022289 | Feb 2007 | WO |
Number | Date | Country | |
---|---|---|---|
20110167089 A1 | Jul 2011 | US |
Number | Date | Country | |
---|---|---|---|
60852175 | Oct 2006 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11873366 | Oct 2007 | US |
Child | 12985156 | US |