knowledge representation
play

Knowledge representation A.Y. 2019/2020 KR in a nutshell The - PowerPoint PPT Presentation

Knowledge representation A.Y. 2019/2020 KR in a nutshell The field of AI dedicated to represent information about the world in a form that a computer system can use it to solve complex tasks such as diagnosing a medical condition or having


  1. Knowledge representation A.Y. 2019/2020

  2. KR in a nutshell • The field of AI dedicated to represent information about the world in a form that a computer system can use it to solve complex tasks such as diagnosing a medical condition or having a dialog in a natural language.

  3. More about KR ● KR is as old as human reflection on what humans do, and how to improve or share it ● KR involves mutual dependencies between human cognition, language/data, and the world ● KR makes it emerge patterns of representation (e.g. ontologies) and reasoning (logics) ● In recent times, known as KRR: knowledge representation and reasoning ● K is more than information, because reasoning allows to infer new information out of knowledge

  4. K genes? Protein FOXP2 at the origin of language evolution in humans between 300k and 50k years ago?

  5. K neurons? Imitation-recognition-anticipation mechanisms provided by mirror neurons that activate both when doing and perceiving actions?

  6. K neurons? Language is hard to “pack”, reasoning is left to cognitive means

  7. Need for schemas ● Need for more sophisticated, task-oriented KR: judicial courts, money and commerce, political spin doctors ● Axial age (from about 500BC to 400AD) ● Emergence in different parts of the world ● Greek philosophers and sophists, Indian grammarians, Chinese political scientists ● Evolution in high middle age: Islamic post-aristotelian scientists, etc.

  8. K visualization ● Beyond (natural) language, what K? ● Trees, paths, maps, tables, frames, wheels, ...

  9. Trees: Porphyry’s trees ● A table of the coordination and subordination of genera and species, managed by moving from the genus in a similar way and going down to the lowest species according to the dichotomy process (for example, the substance is divided into corporeal and incorporeal, the corporeal into animated and inanimate, the one animated in sensitive and insensitive, etc.). The logical construction, translated into a figurative scheme, shows itself as the bifurcations of a tree.

  10. Porphyry’s trees at work

  11. Generic trees ● Porphyry’s tree operates by distinction ● each idea is distinguished in two opposite varieties, e.g. Animal: Rational/Irrational ● A generic tree operates by arbitrary branching criteria, e.g. in the Encyclopédie L’art de penser branches from La Logique; La Morale branches from La Volonté

  12. Decision trees ● A decision tree operates by decision criteria, and assumes a direction ● e.g. Color:Red; Size:Medium → Apple

  13. Syntactic trees ● A syntactic tree depends on a grammar that is used to parse a sentence ● S → NP → NN: Protein

  14. Maps: semantic networks ● A semantic network, or frame network is a knowledge base that represents semantic relat ions between concepts in a network

  15. Maps: concept maps ● A concept map is a type of graphic organiser used to help one organise and represent knowledge of a subject. ● Concept maps begin with a main idea (or concept) and then branch out to show how that main idea can be broken down into specific topics.

  16. Rationale ● Semantic networks and concept maps try to create a concept language from linguistic terms and sentences ● Typically, nouns are represented as nodes, verbs/prepositions as links ● e.g. (water) – changes – (state) but just “typically”

  17. Map: E-R diagrams ● Describes interrelated things of interest in a specific domain of knowledge. ● A basic ER model is composed of entity types (which classify the things of interest) and specifies relationships that can exist between entities (instances of those entity types).

  18. Maps: activity diagrams Maps: activity diagrams ● Activity Diagrams describe how activities are coordinated to provide a service which can be at different levels of abstraction. ● Typically, an event needs to be achieved by some operations, particularly where the operation is intended to achieve a number of different things that require coordination.

  19. Rationale ● ER and activity diagrams are data modelling patterns, which impose some restrictions on the freedom of concept maps ● e.g. (vehicle) –[1] fitted [n]– (options) ● (some) logical background! (cf. next classes)

  20. Ontology ● Historically ontology, listed as part of metaphysics, is the philosophical study of the nature of being, becoming, existence, or reality, as well as the basic categories of being and their relations. ● Ontology deals with questions concerning what entities exist or can be said to exist, and how such entities can be grouped, related within a hierarchy, and subdivided according to similarities and differences.

  21. Ontology in AI ● While the term ontology has been rather confined to the philosophical sphere in the recent past, it is now gaining a specific role in a variety of fields of Computer Science, such as Artificial Intelligence, Computational Linguistics, and Database Theory and Semantic Web. ● In Computer Science the term loses part of its metaphysical background and, still keeping a general expectation that the features of the model in an ontology should closely resemble the real world, it is referred as a formal model consisting of a set of types, properties, and relationship types aimed at modelling objects in a certain domain or in the world.

  22. Philosophy Vs. Computer Science ● Philosophy: Ontology is the philosophical study of being. More broadly, it studies concepts that directly relate to being, in particular becoming, existence, reality, as well as the basic categories of being and their relations. ● Computer Science: a formal schema that provides classes (types of entities) and properties (relations among entities) and allows to model the knowledge within a certain domain of interest

  23. Ontology: some definitions ● Tom Gruber. A translation approach to portable ontology specifications. “an ontology is a formal, explicit specification of a shared conceptualisation. An ontology is a description (like a formal specification of a program) of the concepts and relationships that can formally exist for an agent or a community of agents” ● Nicola Guarino. A translation approach to portable ontology specifications. “[a conceptualization] contains many “world structures” one for each world. It has both extensional and intentional components”

  24. Example of ontology • Share common understanding over a domain T-Box (i.e. terminological component) • Enable reuse of domain knowledge A-Box (i.e. “assertion component)

  25. Representing knowledge on the Web

  26. The Web a graph ● To a computer, then, the web is a flat, boring world devoid of meaning

  27. The traditional web https://www.nature.com/articles/sdata201618 <p> … 600 content standards, the BioSharing registry (<a href="https://biosharing.org/" > https://biosharing.org/ </a>) can be of use as it describes the standards in detail, including versions where applicable. </p> … <https://www.nature.com/articles/sdata201618> <https://biosharing.org/> @href

  28. Links are meaningful ● This is a pity, as in fact documents on the web describe real objects and imaginary concepts , and give particular relationships between them.

  29. The semantic web ● Adding semantics to the web involves two things: allowing documents which have information in machine-readable forms, and allowing links to be created with relationship values.

  30. Resource Description Framework (RDF)

  31. RDF ● RDF is a data model (some times it is improperly called “language”) ● It is based on triples subject-predicate-object called statements ● “Umberto Eco is author of The name of the rose” can be expressed through an RDF statement assigning to ● “Umberto Eco” the role of subject ● “is author of” the role of predicate ● “The name of the rose” the role of object

  32. RDF key concepts ● Resource → it is an object we want to talk about, and it is identified by an IRI 
 e.x. <https://www.nature.com/articles/sdata201618> ● Property → it is a special type of resource, and it is used to describe relation between resources. It is identified by an IRI 
 e.x. <http://purl.org/spar/cito/citesAsPotentialSolution> ● Statements → they assert properties between resources. Each statement is a triple subject-predicate-object, where the subject is a resource, the predicate is a property and the object is either a resource or a literal (i.e., a string) ● RDF Graph → a set of RDF statements ● A file that contains RDF statements represents an RDF graph ● IRIs contained in different graph actually refer to the same resource ● Triplestore → it is a database built for storing and retrieving statements RDF (and can contain one or more RDF graphs)

  33. RDF graphical representation ● One of the possible representations of RDF statements, which is very intuitive for humans, is that of semantic networks. A semantic network is, actually, a graph where the subjects and objects of RDF statements are represented by nodes, while the direct edge linking those represents the predicate ● This graphical notation can be used to declare semantic relations explicitly

Recommend


More recommend