




































Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!





































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:
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:
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:
❑ 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
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:
❑ 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
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:
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.
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:
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.
Web tracking is collecting data about visitors’ activities on the Web When we visit one web site our browser makes:
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?
❑ If domain is not set explicitly, then its default value is the full domain of the web page that is creating the cookie
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”.
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.