COMP9321 · 01 Data models · Terms

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/55

encourage image

There's no tags or description

Looks like no tags are added yet.

56 Terms

1
New cards
Structured data
Data with a fixed schema: rows and columns with types, e.g. a relational table or a clean CSV grid. ✎ Exam: Enrolment records in an SQL table are ___, so they can be joined and queried directly.
2
New cards
Semi-structured data
Self-describing data with tags or keys and flexible nesting, but no fixed table schema, e.g. JSON, XML, HTML. ✎ Exam: The library export is XML, i.e. ___: it must be parsed and flattened before joining.
3
New cards
Unstructured data
Data with no schema at all: free text, PDF prose, images, video. Hardest to extract from. ✎ Exam: Student emails are ___; we would need text processing before they could be used.
4
New cards
Data-level integration
Combining data from different sources and giving users one unified view of it. The obstacle is heterogeneity. ✎ Exam: Building one screen per student from enrolment, library and Moodle data is ___.
5
New cards
System-level integration
Making separate applications work together in a process (a workflow across departments), usually through services/APIs. ✎ Exam: When a student drops a course, enrolment tells finance to refund and Moodle to remove access: ___.
6
New cards
Heterogeneity
Sources differ in platform, format, schema, names or units ("DOB" vs "birth_date", AUD vs USD). The main obstacle to integration. ✎ Exam: The two systems use different schemas and date formats, so ___ must be resolved before the join.
7
New cards
Unified view
The single, consistent view of data from many sources that data-level integration produces (the "one screen"). ✎ Exam: The goal is a ___ of each customer across the three systems.
8
New cards
Service provider
In the ___ view, the side that offers the ___/data (the API owner). ✎ Exam: The bank is the ___; the budgeting app calling its API is the consumer.
9
New cards
Service consumer
In the ___ view, the side (client) that calls the ___. ✎ Exam: The mobile app is the ___ of the ride-sharing API.
10
New cards
Materialised integration
Copy and transform the data into one store ahead of time (a data warehouse, filled by ETL). Fast queries, but data goes stale between loads. ✎ Exam: A nightly-loaded sales warehouse is ___: fast dashboards, but today's sales appear only tomorrow.
11
New cards
Virtual integration
Copy nothing; a mediator rewrites each query to the live sources at run time. Always up to date, but slower and every source must be online. ✎ Exam: A flight comparison site uses ___ because prices change by the minute.
12
New cards
Data warehouse
One central store holding copied, cleaned and integrated data for analysis; the store of materialised integration. ✎ Exam: Sales from all channels are loaded into a ___ each night for reporting.
13
New cards
ETL
Extract (pull data out of each source) → Transform (clean, rename, fix formats) → Load (into the warehouse). How a warehouse is filled. ✎ Exam: ___ renames student_number to zID and converts dates to ISO before loading the warehouse.
14
New cards
Mediator
The component in virtual integration that translates a user query on the global schema into queries over the underlying sources and combines the answers. ✎ Exam: The ___ splits "z123's books and courses" into one query per system.
15
New cards
Wrapper
A small adapter per source that translates between the mediator and that source's own format/query language. ✎ Exam: Each airline API sits behind a ___ that converts its fields to the global schema.
16
New cards
Global schema
The single ___ users query in an integration system (e.g. Flight(from, to, date, price, airline)). ✎ Exam: Users write queries against the ___, never against the individual sources.
17
New cards
GAV
Global-as-View: the global schema is defined as views (queries) over the sources. Easy query answering; adding a source means changing the global schema. ✎ Exam: With ___, adding Virgin means editing the Flight definition (another UNION).
18
New cards
LAV
Local-as-View: each source is described as a view over the global schema. Adding sources is easy; query rewriting is harder. ✎ Exam: With ___, adding Virgin is one new line describing it; the global schema is untouched.
19
New cards
Data lake
Central storage for raw, untransformed data in any format (store first, transform later). Storage, not a process. ✎ Exam: Raw clickstream logs are kept in a ___ until an analysis needs them.
20
New cards
Data pipeline
The process that moves data from sources to a target, transforming it on the way (ETL is one kind). A process, not storage. ✎ Exam: A nightly ___ extracts orders, cleans them and loads them into the warehouse.
21
New cards
Relational model
Tables of rows with foreign keys, a fixed schema and ACID transactions. Best for transactions and many-to-one look-ups. ✎ Exam: Payments need consistency, so I would use the ___ with ACID transactions.
22
New cards
Document model
Self-contained JSON-like ___ with a flexible schema (e.g. MongoDB). Best for one-to-many, tree-shaped data read together (locality). Weak for many-to-many. ✎ Exam: A user profile with its job list fits the ___: one read, no join.
23
New cards
Graph model
Nodes and edges with properties (e.g. Neo4j). Best when many-to-many relationships are central; vertices need not be the same type. ✎ Exam: Friend-of-friend recommendations suit the ___ because relationships are many-to-many.
24
New cards
Key-value store
The simplest NoSQL model: look up a ___ by its key (e.g. Redis, DynamoDB). Fast, but no queries on the ___'s contents. ✎ Exam: Session data is kept in a ___ keyed by session ID.
25
New cards
ACID
Atomicity (all or nothing), Consistency (rules hold), Isolation (concurrent transactions don't interfere), Durability (committed data survives). ✎ Exam: A bank transfer needs ___: debit and credit happen together or not at all.
26
New cards
Atomicity
ACID property: a transaction happens completely or not at all. ✎ Exam: ___ guarantees the money is never debited without being credited.
27
New cards
Isolation
ACID property: concurrent transactions don't interfere with each other. ✎ Exam: ___ stops two bookings from taking the same last seat.
28
New cards
Durability
ACID property: once committed, data survives crashes. ✎ Exam: ___ means a confirmed order is still there after a server restart.
29
New cards
NoSQL
Non-relational databases (since about 2010) for huge scale/write throughput and flexible schemas; scale horizontally; every ___ system relaxes one or more ACID properties. ✎ Exam: Social media reads favour ___: bandwidth and horizontal scale matter more than strict ACID.
30
New cards
Embedding
Document model: store related data inside the parent document. Use for one-to-many data owned by one parent and read together. ✎ Exam: I embed a user's addresses in the user document because they're always read with the user.
31
New cards
Referencing
Document model: store an ID pointing to another document. Use for shared data (many-to-one, many-to-many); one spelling, updated in one place. ✎ Exam: Users ___ the company by ID, so renaming the company is one update.
32
New cards
Impedance mismatch
Objects in code (classes, nesting, references, inheritance) don't map cleanly onto flat relational tables: granularity, identity, navigation, inheritance, associations. ✎ Exam: Saving a nested Order object into three tables shows the object-relational ___.
33
New cards
ORM
Object-Relational Mapping (e.g. SQLAlchemy): maps classes ↔ tables so you work with objects. It is the translation layer; limits: hidden/inefficient SQL (N+1), less control. ✎ Exam: With an ___, a Customer class maps to the customers table.
34
New cards
Metadata
Data about data: column names, types, units, source, licence, author, creation time. Not the values themselves. Lets data be discovered, integrated and documented. ✎ Exam: The dataset's ___ (units and last-updated date) shows the prices are in AUD and from 2025.
35
New cards
Declarative query
Say what you want, not how to get it (SQL). The database decides how. ✎ Exam: SQL is ___: SELECT name FROM users WHERE city='Sydney'.
36
New cards
DataFrame
pandas 2-D table: columns are Series sharing one index. Can be built from several Series. ✎ Exam: I load the CSV into a ___ and inspect it with head() and info().
37
New cards
Series
pandas 1-D labelled array: one column with an index. ✎ Exam: df['price'] returns a ___.
38
New cards
Structured data
Scenario: A relational database table of customer orders. What kind of data is it? Why: ___: fixed schema of typed rows and columns.
39
New cards
Semi-structured data
Scenario: An API returns nested JSON whose records don't all have the same fields. Why: ___: keys describe the data and nesting is flexible.
40
New cards
Unstructured data
Scenario: Rank by difficulty of extracting data: CSV, plain text, HTML (past MCQ). Why: Plain text (___) is hardest, then HTML (semi-structured), then CSV (structured) is easiest.
41
New cards
Data-level integration
Scenario: A company wants one dashboard combining sales from its website, shops and CRM. Why: ___: one unified view over several data sources.
42
New cards
System-level integration
Scenario: A purchase order must flow from sales to finance to shipping, each with its own application. Why: ___: coordinating applications, processes and services.
43
New cards
Heterogeneity
Scenario: Two systems use different platforms and different data schemas (past quiz). Why: ___: the sources differ in platform and schema.
44
New cards
Materialised integration
Scenario: A shop's dashboard reads a store that is reloaded every night from tills, website and CRM. Why: ___ (data warehouse + ETL): fast, but stale between loads.
45
New cards
Virtual integration
Scenario: A flight comparison site asks every airline live for prices on each search. Why: ___ (mediator): data must be up to date, so it queries the sources live.
46
New cards
Mediator
Scenario: What is the primary role of this component in view-based integration? (past quiz) Why: ___: translate user queries into queries over the underlying data sources.
47
New cards
GAV
Scenario: Each global table is written as a query (e.g. a UNION) over the source tables. Which approach? Why: ___: the global schema is the view over the sources.
48
New cards
LAV
Scenario: A new data source is added. Which approach needs less change to the global schema? (past quiz) Why: ___: each source is described as a view over the global schema, so a new source just gets its own description.
49
New cards
Relational model
Scenario: An e-commerce site's orders and payments must never be half-saved. Why: ___: ACID transactions, reliability and consistency first.
50
New cards
Document model
Scenario: A user profile with its list of jobs and education, always loaded together. Why: ___: one-to-many tree-shaped data, embedded for locality.
51
New cards
Graph model
Scenario: A social network where people follow people and like posts, and queries walk friend-of-friend links. Why: ___: many-to-many relationships are central.
52
New cards
NoSQL
Scenario: Which is NOT true of ___: flexible schema / relaxes ACID / can only scale vertically? (past MCQ) Why: "Can only scale vertically" is false: ___ scales horizontally (more machines).
53
New cards
Embedding
Scenario: In a document database, where do ___ objects normally come from? (past MCQ) Why: ___: they come from one-to-many relationships.
54
New cards
Impedance mismatch
Scenario: The difficulty of mapping an application's object model onto relational tables (past MCQ). Why: ___ between the application data model and the relational model.
55
New cards
ORM
Scenario: The process of associating object-oriented classes with database tables (past MCQ). Why: ___. Note: the "translation layer" is the ___, not the impedance mismatch itself.
56
New cards
Metadata
Scenario: Which is ___: an object's description and type / time created / origin / the values it holds? (past MCQ) Why: ___ = the first three. The values the object holds are data, not ___.