130 likes | 270 Views
MyNet project: exercise 3. Genoveva Vargas Solar, Christine Collet Technical support: Javier Espinosa, Epal Njamen Orléant , Juan Carlos Castrejón. http://vargas-solar.imag.fr/academika/cloud-data-management/. Objective. Others. MyNet DB. Have a first experience on
E N D
MyNet project: exercise 3 Genoveva Vargas Solar, Christine Collet Technical support: Javier Espinosa, EpalNjamenOrléant, Juan Carlos Castrejón http://vargas-solar.imag.fr/academika/cloud-data-management/
Objective Others MyNetDB Have a first experience on • sharding a relational DBMS • dealing with shards synchronization • deploying the service on the cloud and implement an interface English Français MyNet Service Español
Development environment • Windows Azure http://windows.azure.com • Visual Studio 2012 Professional Edition • Windows Azure SDK http://www.windowsazure.com/en-us/develop/downloads/ • Microsoft Web Platform Installerhttp://www.microsoft.com/web/downloads/platform.aspx
Creating and populating the initial MyNet DB Key concepts: UML relational transformation rules, Azure federation tool, data provider service
Transformation rules UML – relational(1) • Create a relation schema for each class with the attributes and using the identifier as primary key • Examine (1,1) associations, for each one proceed as follows: • Let R be an association between classes A B integrate in the relation schema representing A the key of B. • The transformation of R is terminated
A(1,1) --- B • POST (postID: Integer, timeStamp: Date, geoStamp: String, contentID: Integer) • CONTENT(contentID: Integer, text: String)
Transformation rules UML – relational(2) • Examine associations with cardinality (0,1). For each one proceed as follows: • Let R be an association between classes A(0,1)--- B with cardinality (0,1) in A • Add as foreign key the key of A in B • The transformation of R is terminated
A(0,1)--- B • CONTACT ( contactID: Integer, lastName: String, givenName: String, society : String) • BASICINFO ( socialNetworkID: URI, webSite: URI, contactID: Integer) • POST (postID: Integer, timeStamp: Date, geoStamp: String, contactID: Integer, contentID: Integer)
A(0,1)--- B • BASICINFO ( socialNetworkID: URI, webSite: URI) • ADDRESS (street: String, number: Integer, city: String, ZipCode: String,socialNetworkID: URI) • EMAIL ( email: String, type: String, socialNetworkID: URI) • LANGUAGE (languageID: Integer, Language: String, socialNetworkID: URI)
Transformation rules UML – relational(3) • Examine associations with cardinality (x,n). For each one proceed as follows: • Let R be an association between classes A(x,n)--- B. Create a table with: • R attributes • The key of A and B • The transformation of R is terminated
Creation • Create your database on Azure as explained in previous exercises • Define your DDL script define your relational database schema • Follow the Technical memento for populating your new MyNet database
Hands on the federation Follow the Technical Memento