Docsity

Semantic Web Generalities, Appunti di Elementi di Informatica

Toggle sidebar
bg1
1]: INTRODUZIONE
1): STORIA
- idea by Tim Berners Lee and two other authors in a text on 2000
- now developed in languages, softwares and data
- promoted by W3C:
- captures the necessity of standardization
- favour the creation of experts groups to create specifications
- evaluates experts' specifications
- makes specifications become raccomendations if they receive large approval
2): ELEMENTI NECESSARI
2.1 FORMAL KNOWLEDGE
knowledge organised in machine-readable (formal) statements
--> replace HTML with more machine-readable (formal) languages
- always being generated by data in databases
- always being explorable by bots
2.2 ONTOLOGIES
formal vocabulary defining the terms to use in formal descriptions
--> formal specification of the terms and their relations in a domain
- every ontology defines a different domain
- the ontology has to be standardized to be shared
- born in AI knowledge representation
2.3 LOGIC
the discipline studying the principles of reasoning
--> offers many tools for semantic web:
- formal languages for expressing knowledge (syntax + vocabulary)
pf3
pf4
pf5
pf8
pf9
pfa

Anteprima parziale del testo

Scarica Semantic Web Generalities e più Appunti in PDF di Elementi di Informatica solo su Docsity!

1]: INTRODUZIONE

1): STORIA

  • idea by Tim Berners Lee and two other authors in a text on 2000
  • now developed in languages, softwares and data
  • promoted by W3C:
    • captures the necessity of standardization
    • favour the creation of experts groups to create specifications
    • evaluates experts' specifications
    • makes specifications become raccomendations if they receive large approval

2): ELEMENTI NECESSARI

2.1 FORMAL KNOWLEDGE

knowledge organised in machine-readable (formal) statements --> replace HTML with more machine-readable (formal) languages

  • always being generated by data in databases
  • always being explorable by bots

2.2 ONTOLOGIES

formal vocabulary defining the terms to use in formal descriptions --> formal specification of the terms and their relations in a domain

  • every ontology defines a different domain
  • the ontology has to be standardized to be shared
  • born in AI knowledge representation

2.3 LOGIC

the discipline studying the principles of reasoning --> offers many tools for semantic web:

  • formal languages for expressing knowledge (syntax + vocabulary)
  • inferential relations allowing to infer implicit knowledge --> Description Logics family used in semantic web decidable contractions of the predicate calculus
  • expressive enough to capture the semantic web knowledge
  • not computationally expensive as with the use of disjunction, existential quantification and negation

2.4 AGENTS

applications working autonomously and proactively on the semantic web

  • based on usage of formal knowledge, ontologies and logics
  • receives tasks with preferences and gives response
  • not to replace humans: simple support for human's decisions and activity [here the difference from IA agents: more pragmatic and simple]
  • evolved by object-oriented programming and component-based sw developement

2]: SOLUZIONI PRATICHE

statements structured according to a data model --> semantic or object-oriented data-modeling (developed in 80's)

0): LIVELLO GENERALE

SVILUPPO A FASI

how it works:

  • facilita la raccolta di consenso presentando un elemento alla volta
  • più gruppi si muovono in diverse direzioni in competizione, ma la necessità di standardizzazione porta presto a degli standard
  • appena raccolto il consenso su uno standard, si passa alla fase successiva consequent applications rules::
  • downward compatibility = compatibility with all previous phases
  • facts (the union of relationships and objects)

OBJECTS

use of a unique identifier for every object in the database

  • in the web, an object is called "resource"
  • the identifier cannot be one of the object's attributes working as primary key: using one single attribute to identify the object would be semantically incorrect --> International Resource Identifier (IRI)
    • used by RDF
    • sp. of the HTTP protocol, making possible to associate web documents to them [creating a web-parallel machine-navigable semantic hypertext]

RELATIONSHIPS

properties connecting two or more resources -->in RDF also properties are represented by IRIs

FACTS

  • represented as triples [resource --> property --> resource]
  • only relationship types of rank 2
    • rank = number of resources connected by the property [es. "give" is rank 3 for subject + dative + accusative]
    • every relationship can be expressed in one or more relationships of rank 2 [es. using blank nodes or connecting more resources with more predicates]

SEMANTIC NETWORKS representation of the semantic model --> adopted as a modelling style by RDF

2): IRIs alphanumeric string identifying resources on the web

URI EXTENSION

URIs (Uniform Resource Identifiers) allow only a subset of the ASCII character set

  • Uniform Resource Locator (URL) defines the primary access mechanism and network location of the resoure
    • access mechanism = protocol (es. http)
    • network location = server addres
  • Uniform Resource Name (URN) identifies a resource by name in a particular namespace --> IRIs allow characters from the Universal Character Set (Unicode/ISO 10646)

THE CHOICE according to the target community

  • a specific community = use language/idioms used/understood by that community
  • widest possible community = use one or more of the widest used languages and avoid idiosyncratic expressions

LITERALS

pure values used for fixed entities such as strings, numbers, dates... --> without an IRI

3): CONTROLLED VOCABULARIES

formalized vocabularies defining the terms to use in formal descriptions --> allow required control, standardization and interoperability for the non-logical symbols of the language

  • every dataset resort to one or more controlled vocabulary
  • terms are predefined in way to be unambiguous

TYPES

  • Ontology = formal framework for representing knowledge
    • defines classes and relation in a domain of reality
    • understandable by a computer --> knowledge representation in order to be processed sp. by computers
  • considering features of the resources
  • selecting features considered relevant for a certain purpose
  • assigning a name or symbol to those features, thereby creating the class [usually a word of a natural language close to the meaning of the class]
  • grouping inside the class the resources sharing those features

CLASS MEMBERSHIP FEATURES

  • multiplicity = a resource may belong to more than one class to express different aspects of its nature
  • classification occurs in different ways for different resources:
    • objects = grouped in classes --> classes are types of objects
    • relationships = grouped in properties --> properties are types of relationships in any case the intension of the group is its extension in every possible world

IMPLEMENTATION

  • natural language = is a
  • semantic modelling = instance of
  • RDF Vocabulary = rdf:type connects a subject to its class
  • RDFS Vocabulary = rdfs:Class defines that the resource with this rdf:type is a class

1.2 SPECIALIZATION

definition of classes inside other classes [borrowed from natural sciences]

TAXONOMY hierarchy of classes

  • sub-class = a class contained by an other class
  • super-class = a class containing an other class usually with a unique super-class at the top of all

STEPS

  • definition of a pivot class
  • definition of new classes within the domain of the pivot class
    • new classes can then be new pivot classes, recursively applying grouping
    • generalization = the inverse process of defining a new class containing the domain of the pivot class

IMPLEMENTATION

  • semantic modelling = isA
  • RDFS Vocabulary = rdfs:subClassOf (for objects) defines that the extension of the subject class is a subset of the extension of the object class
  • RDFS Vocabulary = rdfs:subPropertyOf (for relationships) defines that the extension of the subject property is a subset of the extension of the object property

LOGICAL CONSEQUENCES

entailments from the subset relation in classes

  • reflexivity = every class is a subset of itself
  • transitivity = a class which is subset of a super-class, is also a subset of the super-class of the super-class, and so on
  • an instance belonging to a class also belongs to all of its super-classes

1.3 PROPERTY TYPING

definition of the types that a property may have as subject and object [directly from computer science]

DOMAIN AND RANGE [borrowed from mathematics]

  • domain = accepted in-values --> accepted types for the subject
  • range = accepted out-values

3): ABSTRACTION MECHANISMS IN DETAIL

3.1 CONCEPTUALIZATION

an abstract, language-independent simplified view of the world

  • conceptualizations are not important since they do or do not exist, but because they help people in some tasks [es. light as wave or as particles: both helpful conceptualizations, though only now joined in modern quantum physics]
  • conceptualizations are a selection of the resources in each possible world:
    • the chosen resources are the range of the interpretation function
    • possible worlds which differ for resources outside the conceptualization collapse into the same world --> intended interpretations possible worlds viewed through a conceptualization

3.2 ONTOLOGY

a formal, explicit specification of a shared conceptualization

ONTOLOGY AS FORMAL THEORY a formal theory including:

  • a formal language = gives a name to particulars (individuals) and universals (classes/properties) of the conceptualization
  • a set of axioms = express the intension of univerals
  • a set of semantic conditions = express more intension of universals

MODELS OF THE THEORY

interpretations satisfying the axioms and the semantic conditions of the theory

  • adequate ontology = its models coincide with the intended interpretations of its conceptualizations --> axioms and semantic conditions are accurate descriptions of the conceptualization
  • approximation ontology = its models don't fully coincide with the intended interpretations of its conceptualizations --> more likely: formalization is not always fully possible

es. number theory

NOT ONLY A VOCABULARY

used but ambiguous name:

  • emphasize the fact that they provide a list of names and their meaning
  • doesn't focus on the formal and logical aspects of theese theories

REASONS FOR DEVELOPING ONTOLOGIES

stand even with approximation ontologies:

  • create documentation of knowledge bases
  • create interoperability between knowledge bases
  • introduce automation in managing knowledge bases

TYPES OF ONTOLOGIES by level of generality:

  • top-level = describe very general concepts independent of any domain or task [es. space, time, matter, object, event, action...] --> sp. unified top-level ontologies for large community of users probabily only a standardized one in not too many years...
  • domain / task = describe concepts related to a generic domain or task [es. domain = medicine, automobilies; task = diagnosing, selling] --> it should be a specialization of a top-level ontology
  • application = describe concepts related to a particular domain and task --> it should be a specialization of a domain or task ontology by level of formality:
  • glossaries / data dictionaries = full informality of natural languages --> unintelligible by computers
  • thesauri / taxonomies = informality enriched with some abstraction mechanisms
  • metadata / data models = formality of RDF, XML Schema and so on [though XML Schema is about describing data more than worlds]
  • logical languages = fully formal languages:
    • logic programming = first step of formal languages
    • description logic = the maximum decidable level of logics, used by OWL
    • first / higher order logic = undecidable logic