AI Lec 1
AI Lec 1
Web
● The world wide web is a system of hypertext documents that are viewable
by a web browser.
● Hypertext documents: documents with internal cross-references to other
documents.
● Runs as service/application on top of the internet protocols.
● Originally based on three fundamental mechanisms.
o Application protocol (Hypertext Transfer Protocol)
o Document description format (hypertext markup language)
o Document addressing mechanism (uniform resource identifiers)
ن
بيشتغلbrowser المربوطة ونقدر نشوفها من الـhypertext هو مجموعه من صفحاتwebعرفي ايه هو ال ـ طبعا كلنا
ر
.كتطبيق باستخدام بروتوكوالت االنتنت
. متوصله ببعض داخلياdocuments هhypertext documentsال ـ
Web 2.0
● Used for describing modern forms of applications and services that are
accessible by the web browser such as wikis and weblogs.
● These applications often have a high social component and appealing user
interfaces in common and are based on enhanced interaction models and
new document representations discussed in this lecture.
التطبيقات عندها مكونات اجتماعيه كتت ر نFacebook زي الـweb 2.0 معظم المواقع ه نتيجة
بتود تفاعل
.المستخدم
1 Minders’22 AC
Web 3.0
● While Web 2.0 has been a technological evolution, web 3.0 is a conceptual
evolution of the web based on the enhanced technological environment.
● Focus is not set to documents but to data thus becoming linked data.
. بياخود البيانات ويعالجها لتناسب احتياجات المستخدم من غت ما يعمل حاجهweb 3.0 الـ
لألنتنت بتحويل ر
الت ن
كت للبيانات لمحاوله معرفه احتياجات المستخدم من غت الطلب الرصي ــح زي هو تطور مفاهيم ر
االعالنات المستهدفة ر
.Facebookواقتاحات عىل الـ
Xml
. بتسعدنا عىل تمثيل و تبادل البيانات بسهوله إلنها لغة عامهXMLببساطه الـ
2 Minders’22 AC
Xml terminology
. المحتوى و المعطيات ممكن يكونوا ليهم قيمTree nodes منظم العنارص عىل شكلXMLالـ
Xml syntax
● Main important syntactical rules for XML data are
o Non-empty elements need to have a start tag and an end tag
(<x>content</x>).
o If an element is empty, it can directly be delimited to (</x>).
o Exactly one root element exists.
o All attribute values are quoted (single or double quotes).
o Nested tags do not overlap (<x><y></x></y>) is not allowed.
o XML is case sensitive (<X></x>) is incorrect.
o The XML tags, tag content etc. must comply to the given charset
(default: UTF-8).
3 Minders’22 AC
يبق فيه ر
.اكت من عنرص جزري واحد مينفعش ر
Xml namespaces
● Different contributors might use the same element names to refer to
different things.
● If such elements are mixed in one file name conflict will occur.
● Import namespaces and bind it to a prefix to use it.
● Name conflicts are solved by XML namespaces which are used to qualify
elements and attributes by unique identifiers.
● Typically, standardized XML dialects a namespace that is imported by all
documents using the dialect.
● A prefix can be associated with one namespace that is attached to all
elements that belong to this name space
namespaces فالـ,أكت من واحد بيكتب نف نفس الملف ممكن يكونوا سموا نفس األسماء للمتغتات
لو فيه ر
.بتسعدنا نتجنب المشاكل المتوقعة بسبب حاجه زي كده
Xml Validity
4 Minders’22 AC
▪ Main shortcoming:
● Capabilities are limited (limited possibilities for
type definition).
2. XML schema
● XML dialect that enables definition of various data types.
● Defines two categories of types.
o Simple types (such as stings, integer).
o Complex types (such as sequences of other types).
XHTML
● One wide-spread application of XML is the XHTML.
● its language constructs and thus its expressive power was deduced from
html.
● high degree of standardization and stricter syntax leads to further
unification of browser engines.
● Use of XML for hypertext documents makes processing by regular xml tools
possible.
● Extensible by further XML languages such as MATHML for embedding
mathematic expressions.
واستعمالها بيخلينا نقدر نستعمل ادوات، باتباع بعض القواعد و القيود لتوحيد اللغةHTML ه طريقه لكتابهXHMTLالـ
.XML
5 Minders’22 AC
DOM VS SAX
6 Minders’22 AC
Overview of interaction on the web
● The web is based on a classical client-server architecture.
● Client fetches documents form the server using the hypertext transfer
protocol (HTTP).
● Documents may have different types of content (text, images, ...).
● Content of one document may consist of different sections interpreted by
the client.
نWEBالـ
مبن عىل عالقة ن
.بي العميل و الستفر
.httpالعميل يستدع الملفات من خالل الـ
.متجمة من خالل جانب العميلمحتوى الملفات يكون من أقسام مختلفة ر
Content type
. عشان العميل يقدر يستعمل البيانات الزم يعرف نوع البيانات من خالل معلومات عامة تخص الملفات
لما البيانات بتوصل جانب العميل بيقوم بتحليل و تحديد نوع البيانات و لو العميل مش مسؤول عن نوع البيانات
. بيتم البحث عن التطبيق مخصص لها.
7 Minders’22 AC
JavaScript
او نف ملف أخر مربوط به لماHTML ه لغة بتستعمل نف جانب العميل وممكن أن تكون مكتوبه نف نفس ملف الـ
.Engine بيوصل للمقاطع الخاصة به يتم تنفيذها من خالل الـbrowserالـ
ن رSandbox Principleمن اهم نظم الحماية ه الـ
الن تقوم بمنع أي تالعب ف ملفات الجهاز و السماح فقط باستخدام
.Browserموارد الـ
CSS
8 Minders’22 AC