Websphere Business Services Fabric v612
Contact us...
Modeling Extensions
Overview
You normally go throught the following sequential steps to model extensions:
- Create the business glossary model
- Create the ontology model
- Transform the glossary
- Model the Ontology
- Transform the ontology
- Export the model extensions
Pre-requisite
Create the Business glossary model
The Industry Business Glossary is a taxonomy of business terms in an industry. It also provides information about relationships with other industry-specific terms.
WebSphere Business Services Fabric enables interoperability of heterogeneous systems in an enterprise ecosystem through business services metadata that includes roles, channels, assertions, and policies. To enable the consistency and reuse of the associated business services, it is very important to use industry standards to define the metadata. The Industry Business Glossary is a common vocabulary that represents the taxonomy of business terms from various industry standards.
The Industry Business Glossary is based on an industry standard that represents business objects or data types. You can source the content for the Industry Business Glossary from any of the data standards, such as BOM models, messaging models, and industry dictionaries. An Industry Business Glossary can source content from multiple industry standards, which allows you to choose one of the standards as an enterprise-wide information or canonical model for business services.
The Industry Business Glossary provides predefined and extensible business services metadata (based on industry standards) that serves as a framework to improve business services consistency and reuse.
Industry Business Glossary is a taxonomy of business terms for a specific industry. The glossaries also provide information about relationships with other industry-specific terms. At design-time, the Industry Business Glossary is expressed as an UML model and the Rational Software Architect is the recommended tools. The IBM WebSphere Business Services Fabric Modeling Tool is used to visualize and extend the Industry Business Glossary. At runtime, the Industry Business Glossary is made available as a Fabric Content Archive and uses the Fabric tools.
After the Fabric Model Tool plug-in is available, you can create a business glossary model, which is comprised of standard industry terms that are represented as ontology classes with properties in UML notation. The industry core model comprises of assertions, roles, and channels.
- Create a new UML project (VehicleLoanExtensions) and UML model (VehicleLoanExtensionsModel).
- Apply the business glossary profile(glossary_profile\WBSFBusinessGlossaryProfile.epx) to the model.
- Create a new package (glossary).
- Create a class (CustomerTypeEnumeration).
- Apply class stereotype (Glossary Term).
- Repeat steps 4 and 5 to create BankIdentifierEnumeration and RatingScoreEnumeration classes.
Create the Ontology model
- Create a new UML project (VehicleLoanOntology) and UML model (VehicleLoanOntologyModel).
- Apply the business glossary profile(wbsf_profile\WBSFOntologyProfile.epx) to the model.
- Import model library (XSDDataTypes).
- Create a new package (extensions).
- Apply a package stereotype (fabricNamespace).
- Set package stereotype properties as follows:
- directory = vehicleloan-assertions
- uri = http://www.ibm.com/vehicleloan/extensions
Transform the Glossary
After completing the glossary model() you have to transform it so that they can be used as OWL classes() in the ontology model.
- Source
VehicleLoanExtensions\Models\VehicleLoanExtensionsModel - Target
VehicleLoanOntology\Models\VehicleLoanOntologyModel
Model the Ontololgy
You can extend classes from the industry core model to create new assertion, channel, and role types to meet your unique and specific requirements.
We will continue working on the ontology model that we started above. After completion, the ontology model should look like the one shown in this image().
extensions package
- In the extensions package extend Fabric-Model-Stubs\Models\Fabric-Core\Core Ontology\EnumeratedValue
using VehicleLoanOntology\Models\VehicleLoanOntologyModel\extensions\CustomerTypeEnumeration as the extended class (). - In the extensions package create class instances as shown in this image ().
ontology package
- Create a package named ontology with the following attributes():
- Stereotype = fabricNamespace
- Stereotype Properties:
- Directory = vehicleloan-assertions
- uri = http://www.ibm.com/vehicleloan/assertions.
- In the ontology package create an extension class with the following attributes():
- class name = CustomerTypeAssertion
- class stereotypes():
- fabricAssertion (set AssertionDuplicateAllowed = True)
- owlClass
- rdfs:label (set label = Customer Type Assertion)
- Extend Fabric-Model-Stubs\Models\Fabric-Core\Policy Assertion Ontology\ContentBasedAssertion class using CustomerTypeAssertion().
- Create an attribute for the CustomerTypeAssertion class():
Transform the Ontololgy
After completing the ontology model (), run the ontology transformation to transform a UML model that is defined in one notation to be converted into another UML model or a text.
Note:
Change the Text file encoding to UTF-8 before running the ontology transformation.
Use the following parameters when running the transformation:
- Name = VehicleLoanOntologyTransform
- Fabric Transformations = OWL Transformation
- Configuration file destination = VehicleLoanOntology
- Source = VehicleLoanOntology\Models\VehicleLoanOntologyModel
- Target = VehicleLoanOntology\Models\VehicleLoanOntologyModel
Export the model extensions
After running the ontology transformation, export the FabricOWLProject as a Fabric Content Archive (FCA).
A Fabric Content Archive (FCA) is a compressed file or a JAR file that contains Web Ontology (OWL) files and a content-pack.xml file. The FCA provides the manifest of the Fabric Content Archive contents with definitions of projects and namespaces for the model extensions.
- Getting Started with IBM WebSphere Business Services Fabric V6.1
- IBM Rational Software Architect Version 7.0.0.3 Information Center
- IBM WebSphere Business Services Fabric Modeling Tool
No comments:
Post a Comment