dmea-04-data models
dmea-04-data models
Implementation
Column
Primary Key
• Declarative language:
– Result is described, not how it is computed
– Actual execution can be optimized by DBMS
• Typical structure: SFW-block (SELECT-FROM-WHERE)
• Input as well as result are always tables
• Used from programming languages via standardized or
proprietary application programming interfaces (ODBC, JDBC,
etc.)
Schallehn: Data Management for Engineering Applications
SQL: Query Language Example 1
SELECT name, weight
FROM part
WHERE weight > 50;
Name Weight
Plunger 143.5
Shaft 77.0
Part.Name Supplier.Name
Plunger Reed & Sons
Bolt Reed & Sons
UPDATE supplier
SET location=‘Woburn’
WHERE supplierid=2;
parts sheets
…
part part
…
name deviceset device
Element node
text text text Attribute node
Text node
”SUPPLY1” ”GND” ””
Cloud applications {
"type": "fax",
• In Engineering: "number": "646 555-4567"
}
– No major usage ]
}
– Current development of CAD
JSON export to support web-
Based on [http://en.wikipedia.org/wiki/JSON]
based interoperability
Implementation
PartID SupplierID
Name Name
Weight Location
Equivalent to:
* 1
Teacher offers Lecture
Equivalent to:
[0,*] [0,*]
Student attends Lecture
or
* *
Student attends Lecture
has offers
Person
[0,1] [1,1]
Room Room
TYPE Date
day : INTEGER;
month : INTEGER;
year : INTEGER;
WHERE
WR1: (SELF\day > 0) AND (SELF\day < 32);
WR1: (SELF\month > 0) AND (SELF\month < 13);
WR1: (SELF\year > 0);
END TYPE;
ENTITY Part
name : UNIQUE STRING;
department : OPTIONAL INTEGER;
last_modified : Date;
END ENTITY;
END SCHEMA;
ENTITY Engineer
name : STRING;
status : ENUMERATION OF (internal,external);
END ENTITY;
END SCHEMA;
ENTITY Part
…
responsibleEngineer : Engineer;
versions : LIST[1:?] OF PartVersion;
END ENTITY;
ENTITY Engineer
designedParts : SET[0:?] OF Part;
END ENTITY;
END SCHEMA;
ENTITY Part
ABSTRACT SUPERTYPE OF
(ONEOF (ManufacturedPart, PurchasedPart));
…
END ENTITY;
ENTITY MaufacturedPart
SUBTYPE OF (Part);
END ENTITY;
ENTITY PurchasedPart
SUBTYPE OF (Part);
vendor : STRING;
END ENTITY;
END SCHEMA;
ENTITY cartesian_point
SUPERTYPE OF (ONEOF(cylindrical_point, polar_point, spherical_point))
SUBTYPE OF (point);
coordinates : LIST [1:3] OF length_measure;
END_ENTITY;
[Source: steptools.com]