Docsity

Information management and retrieval, Appunti di Information Technology Management

Toggle sidebar
bg1
Information management and retrieval
LESSON 1- 19/02/2024
Retrieval systems are very common nowadays-> Google, eCommerce platforms
Info management and organisation we can have databases for example.
EXAMS
The final evaluation will be based on the following elements:
1. Final written test worth 70%, (70 points), duration 90 minutes:
- 15 true/false questions
- Open-ended questions - Exercises
2. Group work, worth 30%, (30 points)
- deadline June 2nd 2024
3. Creation of a simple web page (4 extra points)
Total points 104, the grade is calculated by dividing the score by 10 and approximating it to the nearest
grade.
GROUP PROJECT
Goal: understand a technological solution or real application used in the fashion industry within the
assigned topic and write a report.
The report has to include:
- A description of an existing technological solution or real application;
- A picture of its architecture: the main components of the system architecture, the data required as
input, and the data produced as output;
- A brief discussion of the advantages and possible limits of the analyzed solution;
- References (remember to cite them in the text)
Length of the report: between 1’000 and 1‘500 words, NOT including bibliographical references.
HTML (HYPER TEXT MARKUP LANGUAGE)
Is the markup language used for writing the page source of web pages.
The page source of the web page is the html code of the page. You can see it on chrome by clicking on the
menu.
You can see the page source is written in html. The language that marks the content of a text document. We
can distinguish the text we want to communicate to the reader, because the keywords of the html language
are written in the <> symbols. Each part of a web page is written in html in between these <> tags. For
example, <title> tag opens the html sentence or entity, and /> this symbol is used to close the entity.
When you look to web page, there is the page source which is wat really saved n the memory of the
computer. The page source represents the real content of the web page. What we see, so the real web page
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c

Anteprima parziale del testo

Scarica Information management and retrieval e più Appunti in PDF di Information Technology Management solo su Docsity!

Information management and retrieval

LESSON 1- 19/02/

Retrieval systems are very common nowadays-> Google, eCommerce platforms Info management and organisation we can have databases for example. EXAMS The final evaluation will be based on the following elements:

  1. Final written test worth 70%, (70 points), duration 90 minutes:
  • 15 true/false questions
  • Open-ended questions - Exercises
  1. Group work, worth 30%, (30 points)
  • deadline June 2nd 2024
  1. Creation of a simple web page (4 extra points) Total points 104, the grade is calculated by dividing the score by 10 and approximating it to the nearest grade. GROUP PROJECT Goal: understand a technological solution or real application used in the fashion industry within the assigned topic and write a report. The report has to include:
  • A description of an existing technological solution or real application;
  • A picture of its architecture: the main components of the system architecture, the data required as input, and the data produced as output;
  • A brief discussion of the advantages and possible limits of the analyzed solution;
  • References (remember to cite them in the text) Length of the report: between 1’000 and 1‘500 words, NOT including bibliographical references. HTML (HYPER TEXT MARKUP LANGUAGE) Is the markup language used for writing the page source of web pages. The page source of the web page is the html code of the page. You can see it on chrome by clicking on the menu. You can see the page source is written in html. The language that marks the content of a text document. We can distinguish the text we want to communicate to the reader, because the keywords of the html language are written in the <> symbols. Each part of a web page is written in html in between these <> tags. For example, tag opens the html sentence or entity, and /> this symbol is used to close the entity. When you look to web page, there is the page source which is wat really saved n the memory of the computer. The page source represents the real content of the web page. What we see, so the real web page

aspect, is the interpretation of the browser. The browser can interpret the html language and give us the web page as we know it. Any software that uses or collects web pages content will collect the web pages sources. The page source part of the web page is important to understand any software that retrieves information from web pages. Hyper text-> a text that contains links. A markup language is an invented informatics language. It is defined by:

  • A set of tags that is called the lexicon or dictionary.
  • A set of specific rules of the correct use of the tags called grammar or syntax. a. One markup language can be used to insert metadata into plain text files. Metadata is data about data, is a markup language can be used to define the content of a data or to give information about a specific piece of data information. For example, the tag is a metadata that makes me understand that the text that follows is the title of the webpage. Markup languages use is not limited to web pages, it is used to insert metadata in many kinds of documents used in different job field. b. Plain text files are files that contain only text (characters, numbers, symbols). They do not contain information about font, size, colour of the text or page format. You can reach interoperability through plain text file. c. A tagged text is a text created through HTML language. The tags are used to label or describe the parts of the document itself (head, title, body, paragraphs), about images, and about links. A markup language is not a programming language.

LESSON 2- 26.02.

HTML5- Cascading Style Sheets Language (CSS) (creating a simple web page with html5 and css by March 10th) THE HYPERTEXT MARKUP LANGUAGE HTML- Markup languages and Programming languages When you start creaing your firt web page are as follows:

  1. We need to create an HTML file using a text editor visualstudiocore The general structure of a web page is, with minor changes, always the same: (see W3Schools HTML tutorial) <!DOCTYPE html> - > it’s important to declare the version of the language that we are using in our web page. The web browser needs it to understand how to interpret our text. <html> - > this is the opening of the html language text. the closing is put a the end of everything that we need to write. <head> <title>Page Title - > this is the title of the web page
  • > every web page has a body of information and it is constructed by all the visible parts of a webpage

❑ The alt text is also used by search engine as a description of the image. ❑ src - Specifies the path to the image: ❑ If you save the image file and the html file in the same folder, you can simply write the name of the image file

the file usi.jpg must be in the same folder where the html file has been saved ❑ Path=URL of the image

Right-click on an image inside a web page and choose “ Copy image address " to see the URL of an image Right-click on the page and select "View Page Source". This will open a new tab containing the HTML source code of the page. You cannot change that web page source. Right-click on an element (or a blank area), and choose "Inspect" to see what elements are made up of (you will see both the HTML and the CSS). You can inspect the various components of a web page. You can change it and test it. For the exercise we have to do what was said before. To control the aesthetic part of a web page we need to learn another language. The graphical presentation of a web page is organised through CSS language. It is used to describe how an html element should be displayed. ❑ CSS is the language that can be used to describe the style of an HTML document ❑ The CSS language is different from HTML! ❑ CSS describes how HTML elements should be displayed ❑ CSS has been introduced for enabling the separation between the content and the presentation of the web page: colours, font, layout, … ❑ Multiple web pages can share the same formatting specification written in a .css file ❑ The separation between content of formatting make it possible to present the same markup + content using different styles (pc screen, mobile, print, …) ❑ There are three ways of inserting a style sheet: ❑ External CSS ❑ Internal CSS (see online) ❑ Inline CSS (see online) External CSS ❑ With an external style sheet, you can change the look of an entire website by changing just one file! ❑ Each HTML page must include a reference to the external style sheet file inside the **** element, placed inside the head section

< link rel="stylesheet" type="text/css" href="mystyle.css">

❑ An external style sheet can be written in any text editor, and must be saved with a .css extension ❑ A CSS rule consists of a selector and a declaration block. p {color:red; font-size: 12px;} the part in brackets is called Property:value. ❑ In the selector block it is possible to define the style of HTML elements, such as heading , paragraph

, links , images , … ❑ Every declaration is separated by semicolon ❑ Each declaration includes a CSS property name and a value, separated by a colon ❑ In the example above all

elements will be red color and 12px size ❑ Colors: h1 { color: red; } ❑ Background color: h1 { background-color: green; } ❑ Height and width: img { max-width: 100px; height: 150px; } ❑ Many more properties can be found in the CSS Tutorial

LESSON 3- 04.03.

Whatsapp-> a close application. ❑ HTML may represent an entry point into programming languages even if HTML is not a programming language! ❑ A programming language is a system of notation for writing computer programs When speaking of programming languages, a distinction must be made between: ❑ Machine language : is a numerical language (binary code) that is executed by the CPU of computers. Humans usually do not read/write software written in machine language

On the internet you can realise different kinds of applications-> Email, the World Wide Web (On the web you can realise different kinds of web applications like search engines, Office365..), mobile devices application, file transfer application, file sharing application. THE ARCHITECTURE ❑ If you want to understand a complex software system you must understand its **_architecture_**! ❑ Today's **software systems** are distributed applications made of different **components** that are able to **communicate** (using a protocol) with each other by exchanging data ❑ **Software architecture** refers to the high-level structures of a software system. The architecture of a software system is a **conceptual model** of the system, analogous to the architecture of a building. The architecture of a software describes its components, their functionalities (the services they provide) and the messages/data they exchange ❑ Applications that work on the Internet can have one of these two architectures: ❑ **Client-Server** architecture-> the most used one. ❑ **Peer-to-peer** architecture ➔ What messages and what meta are travelimg around when you are communicating with someone, you need to know the complete architecture. The components and the data that are exchanged. CLIENT-SEVRVER ARCHITECTURE Different components that are interacting belonging from different types: client and the server. The clients always start the communication by requesting services to a server component. The computer sends a message to a server and the server sends that message to the other computer. My message is not sent directly to another computer/client. This is important because if the message are in a server, the owner of the server can read the message. There is an ethical aspect behind this architecture, and this is why it’s important to know how it works. The server is a centralised point if it doesn’t work then we cannot use the service. Whenever we download an app, we are downloading a client component. The server is the component that is waiting for requests. It will never send a message to your client component. ❑ **Client-Server** is a software **architecture** model consisting of two parts, client software and server software,

communicating over a computer network ❑ The client always starts the connection to the server component ❑ The server always waits for requests from any client ❑ It is the architecture of Web and e-mail application ❑ Drawbacks: ❑ One point of failure, i.e. one server may be down or overwhelmed by requests. ❑ All messages go through one server-> so it’s possible to read them ❑ An alternative is the peer-to-peer (P2P) architecture where each component can act as a client and server at the same time. Skype was a peer to peer software 10 years ago. Know it is client server. THE WEB The web is an application that we can realize on the internet. We call web all the digital resources that we can access using the http protocol (hyper text transfer protocol). The Web = all the digital resources accessible through the Internet using the HTTP (Hyper Text Transfer Protocol) application protocol (a communication protocol is a system of rules that allow two or more entities to transmit data). Every time we get some resource on the browser we are using the http protocol. It is used t sed request and the responses. What data are we able to collect from our users on the web. The protocol is used by machines to interact. The Web has a client-server architecture. The basic components are:

  1. Web browser (Apple Safari, Google Chrome, Internet Explorer, Mozilla Firefox)
  2. HTTP server or Web server Functionalities of the components
  3. Web browser :
  4. Sends and receives requests to the web server
  5. Interprets the response and visualizes it
  6. Web server : waits for requests and manage them. A web server cannot send requests to web browsers (HTTP is an asymmetric protocol) It should be noted, that certain resources available on the Web are designed to be used directly by software systems without human intervention (see e.g. the Web services and APIs (Application Program Interfaces)

❑ An architecture is OPEN when it is designed to make it easy to add, update, and swap components with other devices ❑ In an architecture that uses open standards protocols for communication, for interfaces, and for the format of the data, it is easy to add, change, and replace components ❑ The Web standards are defined by the W3C ❑ The World Wide Web Consortium ( W3C ) is an international organization where organizations and universities work together to develop Web standards ❑ SMS technology is based on an open architecture, any smart phone has an app for sending or receiving SMS (plain text format) ❑ WhatsApp has a closed architecture, ❑ Component: every user needs to install the specific app for sending and receiving messages ❑ Data format: we cannot export our history of messages and import them in another app ❑ Telegram has an open architecture: various client apps are available for desktop and mobile platforms ❑ E-mail has an open architecture: ❑ Users can use their preferred email client, ❑ E-mail format is plain text, HTML or Rich Text ❑ Facebook has a closed architecture, users cannot use their preferred client and they cannot transfer their history of posts, data, picture and friends into another social network

LESSON 4- 11.03.

CMS SOFTWARE

Today’s web pages are created on demand by a software ❑ Today's web consists of: ❑ HTML files saved on the memory of a server, every user gets access to the same file, they are called static web page - > when I visit a static webpage, that webpage is usually the same and never changes. ❑ Web pages created on demand by a software , they are called dynamic web web, example of those web pages are:

  1. Web pages returned in response to a submitted query or accessed through a form.
  2. Web sites generated by Content Management Systems (CMS)
  3. Websites that emphasize user-generated content, like Wikipedia (Web 2.0)
  4. Web applications provided as Software as a Service (Cloud Computing) This happens because the software that creates the webpage is running on the server.

The SERP for example is created by a software. If you use a website made with a CMS, the web pages are made by a software that puts everything together to give us the webpage. All webpages with UGC are made by a software. The differences between the url we use for static webpages and the url for non-static webpages. The big difference is that in the second type, when we talk about dynamic webpages, we are insterting a lot of important info also in the url. URL: To access a resource on the Web (a web page, an image, a video, etc.), it is necessary to be able to identify the desired resource. On the Web, a resource can be identified using a URI (Uniform Resource Identifier) or, following a more recent standard, an IRI (Internationalized Resource Identifier). There are two types of URIs.

  1. URN (uniform resource name): which identify a resource using a name, which does not change over time and is independent of where the resource is located. Examples of URNs are the ISBN of books or the DOI of articles (it is a unique number or code that identifies an article, in particular publications and academic articles that are published online. It does not change in time.
  2. URL (Uniform Resource Locator): identify a resource by describing its location within the Internet, they are the address of a resource on the web (analogous to identifying a book by its location in a library). What is the big difference in the URL of static webpage and the URL of dynamic webpage?

When does a web site become a web application? When its functionalities are similar to the ones of a desktop application or a mobile app (a software that need to be installed on a computer or on a smartphone) Examples of well-known web applications: Gmail, Office365, Google Drive, WordPress, Teams, DropBox Web,… Web Content Management System ❑ A Web Content Management System is a web application, it has two main user interfaces:

  1. When the Web CMS is used for the collaborative editorial process, we are using the back- end interface
  2. When the Web CMS is used for the consumption of the published content, we are using the front-end interface Be careful not to get confused! A web applications made of web pages is used for creating a web site made of web pages! Advice: it is better to open the two interfaces in two different web browsers! Why are we better off with a CMS? ❑ Management of roles and permissions: who can see, change, delete content? for example a web master can modify the structure of the web site, an author can change the content of posts and web pages ❑ State management: is this content published? Is it a draft? Is it archived? ❑ Versioning: what did this content look like three months ago? How does it differ from the current version? Can I restore an older version? ❑ Dependency management: what content is used on given page? What pages are using a given content? ❑ Content reuse: using a content in more than one place without the need to create different copies (for example an author’s bio appears at the bottom of all articles written by that person) ❑ Use of themes: your theme is the visual design of your site it is fundamental for having a coherent graphical layout ❑ Personalization: management of multiple languages and different content on the basis of the geographical position and user preferences ❑ Tools for search engine indexing and user behaviour analysis It’s possible to use the notion of categories and tags in wordpress. ❑ What is a taxonomy: “ Taxonomy is defined as any knowledge organization system ( controlled vocabulary …) used to support information/content findability , discovery, and acces s.” Heather Hedden. The Accidental Taxonomist, Third Edition, Published by Information Today Inc. 2022 “ A taxonomy (or taxonomical classification) is a scheme of classification, especially a hierarchical classification, in which things are organized into groups or types …Many taxonomies are hierarchies (and thus, have an intrinsic tree structure), but not all are.” Wikipedia

Without a taxonomy, a well structures classification in a website, it is difficult for both search engines and visitors to logically classify content and browse through your website. Taxonomies help find things in a faster more efficient way. In wordpress there is the notion of categories, which is a way in which the CMS helps you keep all the pages that you post organised in a logical way. In WordPress you can manage pages, posts, and comments Categories and tags are two options to organize content (posts) within WordPress Categories keep your posts organized and easy for your readers to navigate. Categories are best used for broad groupings of topics. ❑ By default, the category will be added as a Top level Category. ❑ To create subcategories, toggle off the switch for Top level Category and choose the top- level category you want this subcategory associated with. ❑ Categories can be organized in a hierarchy , posts that belong to a category also belong to its top-level category. Tags are more specific keywords that you want to use to associate related content. When the taxonomy is created by the website designer, it’s called taxonomy. When they are created by the users it is called folkxonomy.

LESSON 5- 18.03.

Web tracking is collecting data about visitors’ activities on the Web When we visit one web site our browser makes:

  1. Some HTTP requests to that web site
  2. Dozens or even hundreds of HTTP requests to other third-party web servers Each HTTP request contains information about your device’s time zone, language, privacy settings, cookies, and about the URL of the web pages we are visiting When individual pieces of information contained in many web requests are put together can reveal a lot on our behaviour How do they do web tracking?
  3. By using HTTP cookies
  4. By using other techniques like for example browser fingerprinting
  5. New approaches: Privacy Sandbox e Topics API Why do HTTP cookies exist? ❑ Because the HTTP protocol is stateless : every HTTP request is followed by an HTTP response. Then when the subsequent HTTP request is submitted to the same web server it is as it is the first one. The HTTP protocol is not able to retain the context of the interaction with a given user

But what are cookies? HTTP cookies are text only data that are stored into the memory of the web browser. When their life is longer than the time spent in a web site, they are saved into a file in the memory of the computer Web cookies are exchanged by the web browser and the web server inside HTTP requests and HTTP responses The maximum size of a cookie is 4 Kbytes Every web browser can be configured to accept or reject HTTP cookies Every time a web server sends back an HTTP response it can create new cookies or modify the existing one. Cookies are text-only data: they are not images, not complex text. They are plain text data that are stored in the memory of the web browser, and when their life is longer then our activity on the browser they are sometimes saved and stored in the memory of the computer. The cookie is really small, it is the mean that the we server uses to correlate the info in the web server. We can accept or reject the web cookies. Also every time we use and send the cookie, the cookie can be modified. Visit one web site, slick on " inspect " menu item and see under the “ Application " tab the list of cookies and the value of their fields. What are the fields with which we can describe a cookie?

  1. name and value are mandatory filelds, the name of the cookies can be for example sessionID and the value can be the unique sessionID, for example sessionID=1678 or userID=mark
  2. expires is used for specifying the lifetime of the cookie. This is the lifespan of the cookie. If expires is not set it means the cookie is deleted every time the user closes the web browser. ❑ Session cookie : if expires is not set explicitly, they are stored in the working memory of the computer (RAM) and web browsers deletes them when the user closes it; ❑ Persistent cookie : it is a cookie that expires at a specific date and time or after a specific interval of time. Obviously they can always be manually deleted by the users
  3. Path is used to set the URL path in which the cookie is valid, web pages outside of that path cannot read the cookie. Its default value is the URL path of the document that creates the cookie ❑ if path=/docs it will match: /docs, /docs/Web/, /docs/Web/HTTP. If in the cookie there is a path, the cookie will be sent only if I visit a webpage in the correct domain and in the correct path.
  4. domain : it is used to set the URL domain in which the cookie is valid. When I create a web cookie as a webpage, I am able to create a cookie with the same domain as my own webpage. ❑ Internet domains are organized in levels from general to specific, for example usi.ch is a second level domain, and www.usi.ch and mail.usi.ch are third level domains. Therefore if domain=usi.ch it is valid for all the web servers inside the domain ❑ IMPORTANT : for security reasons the web server issuing the cookie must be a member of the domain that it tries to set in the cookie. The web server www.serverA.com cannot set or read a cookie with domain www.serverB.com! Otherwise there is a problem, because you send important information created by a server to another server every time you repeat a request.

❑ If domain is not set explicitly, then its default value is the full domain of the web page that is creating the cookie

  1. secure if it is checked the cookie can only be transmitted over an encrypted connection for example using HTTPS; its default value is FALSE. It is checked when the cookie can only be transmitted over an encrypted connection. ❑ It is impossible to store a lot of information inside cookies ❑ Information collected on the behavior of the "browser" or "user" is stored in a backend database , they are called first-party data (directly collected by the web site that I am visiting) ❑ When the user is NOT logged in, the data collected on his/her behaviour is limited to the activities performed with one specific browser, when cookies are deleted, data collection starts again from scratch ❑ When the user is logged in, it is possible to correlate the data collected on his/her activities using different devices and different web browsers by using his/her userid or email ❑ Question : If I am NOT logged in and I put some products in my shopping cart using the web browser on my PC, can I see those products in my shopping cart using the web browser on my smartphone? Why? No because you are using another device and the cookie is different. When I read the cookie coming from a session I did visiting the Usi website, why do I see a different domain and not Usi? - > this could be because the file I have visited might come from a different web server. For

The third party is able to know the website I did the request from, because the http request contains info that tells the server this info. The third party company knows that the user with a specific ID visited a web page that has an image that the third party provides. ❑ adv.com is able to store (in its backend database) information about the web pages (their URL) visited in amazon.com (notebook HP1) and tio.ch (homepage) web sites Where does adv.com get these information?

❑ In the header of the HTTP request of image1.jpg there is a useful parameter called " referer " with the URL (amazon.com/HP1) of the web page that is requesting a given resource Required agreements : ❑ amazon.com and tio.ch accepted to put adv.com advertisements in their web site ❑ Given that there is an agreement between Amazon and Adv the "src" attribute of image1.jpg can contain useful information for Adv, for example its value can be:

GDPR AND COOKIES: ❑ Why are we asked to accept cookies when we visit a website for the first time? ❑ Directive 2009/136/EC which came into force in May 2011, concerns the processing of personal data and the protection of privacy in the electronic communications sector: "Instead of having an option for users to opt out of cookie storage, the revised Directive requires consent to be obtained for cookie storage" ❑ The European Union’s GDPR (General Data Protection Regulation) is a data privacy law that came into effect on May 25, 2018. GDPR distinguishes between 'technical ' and 'profiling ' cookies “The purpose for processing of personal data must be known and the individuals whose data you’re processing must be informed.” Even if you reject them the website will work correctly. In this moment by default many web browsers are stopping third party cookies. The last web browser using third party cookies is google, because they are looking for an alternative solution before removing them completely. They are trying to remove cookies in a smooth way. Google is currently thinking about the “private sandbox”.

LESSON 6- 25.03.

Information retrieval systems and type of data Search engines are tools that we use to search the web. Anything that can be used to search info through the html language. Also in web pages, the search features are also search engines. Image search Searching in the book inside the library website. Searching amazon or Zalando. FarFetch, Vinted etc. these are all info retrieval systems. ❑ Information Retrieval is an academic field of study that started around the 1960s and might be defined as follow: “Information retrieval (IR) is finding material (usually documents) of an unstructured nature (usually text) that satisfies an information need from within large collections (usually stored on computers).” From Christopher D. Manning, Prabhakar Raghavan and Hinrich Schütze, Introduction to Information Retrieval, Cambridge University Press. 2008. https://nlp.stanford.edu/IR-book/ ❑ An Information Retrieval System is software that can be used to automatically implement an information retrieval process Information retrieval is an academic field of study-> 1960s.