SlideShare a Scribd company logo
1 of 57
Download to read offline
Logic and Reasoning in
     the Semantic Web
     (part I – RDF/RDFS)

Fulvio Corno, Laura Farinetti
Politecnico di Torino
Dipartimento di Automatica e Informatica
e-Lite Research Group – http://elite.polito.it
Outline
    Reasoning in Semantic Web Knowledge Bases
    RDF/RDFS Semantics and Entailments
    OWL Semantics                           Part I
    Pellet




F. Corno, L. Farinetti - Politecnico di Torino        2
Outline
    Reasoning in Semantic Web Knowledge Bases
    RDF/RDFS Semantics and Entailments
    OWL Semantics
    Pellet




F. Corno, L. Farinetti - Politecnico di Torino   3
Reasoning
    Reasoning is required when a program must
     determine some information or some action that has
     not been explicitly told about
    It must figure out what it needs to know from what it
     already knows




F. Corno, L. Farinetti - Politecnico di Torino               4
Example
    Facts:
        Robins   are birds
        All birds have wings
    Questions:
        Are Robins birds?  Yes
        Do all birds have wings?  Yes
        Do robins have wings?  ?????




F. Corno, L. Farinetti - Politecnico di Torino   5
Semantic Web peculiarities
    Traditional KBS used to be developed top down
    The Semantic Web is developed bottom-up
    Problems:
        Scalability: Everybody having a web page is a
         potential Knowledge Engineer
        Distribution: Pieces of knowledge can be all over the
         place, finding them can be hard
        Heterogeneity: People use different ways of describing
         the same information
        Quality: Knowledge will be incomplete and even
         inconsistent across different sources of mapping
         approaches
F. Corno, L. Farinetti - Politecnico di Torino                6
Reasoning in the Semantic Web
    New methods are needed that
        Scale  to large amounts of data and knowledge
        Are tolerant to errors, incompleteness and
         inconsistency between and within sources
        Work on distributed representations and ideally are
         distributed themselves
        ...and are compatible with Semantic web standards




F. Corno, L. Farinetti - Politecnico di Torino                 7
Outline
    Reasoning in Semantic Web Knowledge Bases
    RDF/RDFS Semantics and Entailments
    OWL Semantics
    Pellet




F. Corno, L. Farinetti - Politecnico di Torino   8
Recall: RDF Schema




                                                 Source: Practical Reasoning for the Semantic Web (ESSLLI2005), S. Schlobach,
                                                       H. Stuckenschmidt, http://www.few.vu.nl/~schlobac/esslli_day1.pdf
F. Corno, L. Farinetti - Politecnico di Torino                                                                          9
RDF vs RDFS




              Source: http://www.dcs.bbk.ac.uk/~michael/sw/sw.html
                              Michael Zakharyaschev
Some RDFS inference rules
    (X R Y), (R subPropertyOf Q) => (X Q Y)
    (X R Y), (R domain C) => (X type C)
    (X type C), (C subClassOf D) => (X type D)
    …




F. Corno, L. Farinetti - Politecnico di Torino    11
RDF Semantics
    Semantics is not about the “meaning” of assertions
        The  „meaning‟ of an assertion in RDF or RDFS may
         depend on many factors, including social conventions,
         comments in natural language or links to other content-
         bearing documents, … (non machine-processable
         information)
        Semantics restricts itself to a formal notion of
         meaning which could be characterized as the part that
         is common to all other accounts of meaning, and can
         be captured in mechanical inference rules




F. Corno, L. Farinetti - Politecnico di Torino                 12
Model Semantics
    The RDF Semantics W3C Recommendation uses
     model theory for specifying the semantics of the RDF
     language.
 Model theory assumes that the language refers to a
     „world‟, and describes the minimal conditions that a
     world must satisfy in order to assign an appropriate
     meaning for every expression in the language
 A particular world is called an interpretation
 The idea is to provide an abstract, mathematical
     account of the properties that any such interpretation
     must have, making as few assumptions as possible
     about its actual nature or intrinsic structure, thereby
     retaining as much generality as possible
F. Corno, L. Farinetti - Politecnico di Torino               13
Goals of the inference process
    To provide a technical way to determine when
     inference processes are valid, i.e., when they
     preserve truth
    Starting from a set of assertions that are regarded as
     true in an RDF model, derive whether a new RDF
     model contains provably true assertions
    We never known about the “real” truth of any
     assertion in the “real” world.




F. Corno, L. Farinetti - Politecnico di Torino                14
Formalization
    Interpretations (Normative)
        Mapping   of RDF assertions into an abstract model,
         based on set-theory
        With an “interpretation operator” I(), maps a RDF graph
         into a highly abstract set of high-cardinality sets
        Highly theoretical model, useful to prove mathematical
         properties
    Entailments (Informative)
        Transformation                          rules to derive new assertions from
         existing ones
        May be proven complete and consistent with the
         formal interpretation
F. Corno, L. Farinetti - Politecnico di Torino                                         15
Interpretation: minimum notions
Conceptual framework
Interpretation: minimum notions
    I : interpretation operator
    E : fragment of RDF syntax
    If E is a graph:
        I(E)  = false if I(E') = false for some triple E' in E,
           otherwise I(E) =true
    If E is a triple <s, p, o>:
        I(E) = true if s, p and o are in V, I(p) is in IP and
         <I(s),I(o)> is in IEXT(I(p))
        otherwise I(E)= false
    IP : set of properties, IR : set of resources
    IEXT(I(p)) : mapping from IP into the powerset of IR x
     IR i.e. the set of sets of pairs <x,y> with x and y in IR
F. Corno, L. Farinetti - Politecnico di Torino                     18
Example
Example
Example of interpretation
Entailment
    I satisfies E if I(E)=true
    A set S of RDF graphs entails a graph E if every
     interpretation which satisfies every member of S also
     satisfies E
    In human words:
        assertion  = a claim that the world is an interpretation
         which assigns the value true to the assertion
        If A entails B, then
                 any interpretation that makes A true also makes B true
                 an assertion of A already contains the same "meaning" as an
                  assertion of B
                 the meaning of B is somehow contained in, or subsumed by,
                  that of A
F. Corno, L. Farinetti - Politecnico di Torino                                  22
Entailment regime
   RDF defines 4 entailment regimes:
       Simple entailment : does not interpret any RDF or
        RDFS vocabulary (just structural matching, by re-
        naming blank nodes)
       RDF entailment : interprets RDF vocabulary
       RDFS entailment : interprets RDF and RDFS
        vocabularies
       D entailment : additional support for datatypes
RDF Entailment rules (legend)
    aaa, bbb: any URI reference
    uuu, vvv: any URI reference or blank node identifier
    xxx, yyy: any URI reference, blank node identifier or
     literal
    lll: any literal
    _:nnn: blank node identifiers




F. Corno, L. Farinetti - Politecnico di Torino               24
Simple Entailment rules
Rule          If E contains                       then add
name
se1           uuu aaa xxx .                       uuu aaa _:nnn .
                                                  where _:nnn identifies a blank node
                                                  allocated to xxx by rule se1 or se2.
se2           uuu aaa xxx .                       _:nnn aaa xxx .
                                                  where _:nnn identifies a blank node
                                                  allocated to uuu by rule se1 or se2.
lg            uuu aaa lll .                       uuu aaa _:nnn .
                                                  where _:nnn identifies a blank node
                                                  allocated to the literal lll by this rule.
gl            uuu aaa _:nnn .                          uuu aaa lll .
              where _:nnn identifies a blank node
              allocated to the literal lll by rule lg.



 F. Corno, L. Farinetti - Politecnico di Torino                                                25
Role of Entailment rules (1/3)
    Simple entailment satisfies the “Interpolation Lemma”:
       S   entails a graph E if and only if a subgraph of S is an
         instance of E
        It completely characterizes simple RDF entailment in
         syntactic terms
    RDF entailment satisfies the “RDF entailment lemma”:
       S  rdf-entails E if and only if there is a graph which can
         be derived from S plus the RDF axiomatic triples by the
         application of rule lg and the RDF entailment rules and
         which simply entails E
        This means that the entailment rules are “complete”


F. Corno, L. Farinetti - Politecnico di Torino                       26
RDF Entailment rules
Rule          If E contains                       then add
name
rdf1          uuu aaa yyy .                       aaa rdf:type rdf:Property .



rdf2          uuu aaa lll .                         _:nnn rdf:type
              where lll is a well-typed XML       rdf:XMLLiteral .
              literal .                           where _:nnn identifies a blank node
                                                  allocated to lll by rule lg.




 F. Corno, L. Farinetti - Politecnico di Torino                                         27
RDF Axiomatic triples

                 rdf:type                        rdf:type   rdf:Property   .
                 rdf:subject                     rdf:type   rdf:Property   .
                 rdf:predicate                   rdf:type   rdf:Property   .
                 rdf:object                      rdf:type   rdf:Property   .
                 rdf:first                       rdf:type   rdf:Property   .
                 rdf:rest                        rdf:type   rdf:Property   .
                 rdf:value                       rdf:type   rdf:Property   .
                 rdf:_1                          rdf:type   rdf:Property   .
                 rdf:_2                          rdf:type   rdf:Property   .
                 ...
                 rdf:nil                         rdf:type   rdf:List .




F. Corno, L. Farinetti - Politecnico di Torino                                 28
Role of Entailment rules (2/3)
    RDF entailment satisfies the “RDF entailment lemma”:
       S  rdf-entails E if and only if there is a graph which can
         be derived from S plus the RDF axiomatic triples by the
         application of rule lg and the RDF entailment rules and
         which simply entails E
        This means that the entailment rules are “complete”




F. Corno, L. Farinetti - Politecnico di Torino                   29
RDFS Entailment rules (1/2)
Rule         If E contains                           then add
name
rdfs1        uuu aaa lll.                              _:nnn rdf:type rdfs:Literal
             where lll is a plain literal (with or   .
             without a language tag)                 where _:nnn identifies a blank node
                                                     allocated to lll by rule rule lg.
rdfs2        aaa rdfs:domain xxx .                   uuu rdf:type xxx .
             uuu aaa yyy .
rdfs3        aaa rdfs:range xxx .                    vvv rdf:type xxx .
             uuu aaa vvv .
rdfs4a       uuu aaa xxx .                           uuu rdf:type rdfs:Resource .
rdfs4b       uuu aaa vvv.                            vvv rdf:type rdfs:Resource .
rdfs5        uuu       rdfs:subPropertyOf            uuu rdfs:subPropertyOf xxx .
             vvv       .
             vvv       rdfs:subPropertyOf
             xxx       .

 F. Corno, L. Farinetti - Politecnico di Torino                                       30
RDFS Entailment rules (2/2)
Rule         If E contains                       then add
name
rdfs6        uuu rdf:type rdf:Property . uuu rdfs:subPropertyOf uuu .


rdfs7        aaa rdfs:subPropertyOf bbb          uuu bbb yyy .
             uuu aaa yyy .
rdfs8        uuu rdf:type rdfs:Class .           uuu rdfs:subClassOf
                                                 rdfs:Resource .
rdfs9        uuu rdfs:subClassOf xxx .           vvv rdf:type xxx .
             vvv rdf:type uuu .
rdfs10       uuu rdf:type rdfs:Class .           uuu rdfs:subClassOf uuu .
rdfs11       uuu rdfs:subClassOf vvv .           uuu rdfs:subClassOf xxx .
             vvv rdfs:subClassOf xxx .
rdfs12       uuu rdf:type                uuu rdfs:subPropertyOf
             rdfs:ContainerMembershipPro rdfs:member .
             perty .
rdfs13       uuu rdf:type rdfs:Datatype          uuu rdfs:subClassOf
F. Corno, L. Farinetti - Politecnico di Torino   rdfs:Literal .              31
RDFS Axiomatic triples (1/3)
          rdf:type                               rdfs:domain   rdfs:Resource .
          rdfs:domain                            rdfs:domain   rdf:Property .
          rdfs:range                             rdfs:domain   rdf:Property .
          rdfs:subPropertyOf                     rdfs:domain   rdf:Property .
          rdfs:subClassOf                        rdfs:domain   rdfs:Class .
          rdf:subject                            rdfs:domain   rdf:Statement .
          rdf:predicate                          rdfs:domain   rdf:Statement .
          rdf:object                             rdfs:domain   rdf:Statement .
          rdfs:member                            rdfs:domain   rdfs:Resource .
          rdf:first                              rdfs:domain   rdf:List .
          rdf:rest                               rdfs:domain   rdf:List .
          rdfs:seeAlso                           rdfs:domain   rdfs:Resource .
          rdfs:isDefinedBy                       rdfs:domain   rdfs:Resource .
          rdfs:comment                           rdfs:domain   rdfs:Resource .
          rdfs:label                             rdfs:domain   rdfs:Resource .
          rdf:value                              rdfs:domain   rdfs:Resource .



F. Corno, L. Farinetti - Politecnico di Torino                                   32
RDFS Axiomatic triples (2/3)
          rdf:type                               rdfs:range   rdfs:Class .
          rdfs:domain                            rdfs:range   rdfs:Class .
          rdfs:range                             rdfs:range   rdfs:Class .
          rdfs:subPropertyOf                     rdfs:range   rdf:Property .
          rdfs:subClassOf                        rdfs:range   rdfs:Class .
          rdf:subject                            rdfs:range   rdfs:Resource .
          rdf:predicate                          rdfs:range   rdfs:Resource .
          rdf:object                             rdfs:range   rdfs:Resource .
          rdfs:member                            rdfs:range   rdfs:Resource .
          rdf:first                              rdfs:range   rdfs:Resource .
          rdf:rest                               rdfs:range   rdf:List .
          rdfs:seeAlso                           rdfs:range   rdfs:Resource .
          rdfs:isDefinedBy                       rdfs:range   rdfs:Resource .
          rdfs:comment                           rdfs:range   rdfs:Literal .
          rdfs:label                             rdfs:range   rdfs:Literal .
          rdf:value                              rdfs:range   rdfs:Resource .



F. Corno, L. Farinetti - Politecnico di Torino                                  33
RDFS Axiomatic triples (3/3)
rdf:Alt                  rdfs:subClassOf           rdfs:Container .
rdf:Bag                  rdfs:subClassOf           rdfs:Container .
rdf:Seq                  rdfs:subClassOf           rdfs:Container .
rdfs:ContainerMembershipProperty rdfs:subClassOf rdf:Property .

rdfs:isDefinedBy                                 rdfs:subPropertyOf       rdfs:seeAlso .

rdf:XMLLiteral                                   rdf:type                 rdfs:Datatype .
rdf:XMLLiteral                                   rdfs:subClassOf          rdfs:Literal .
rdfs:Datatype                                    rdfs:subClassOf          rdfs:Class .

rdf:_1                                           rdf:type rdfs:ContainerMembershipProperty .
rdf:_1                                           rdfs:domain              rdfs:Resource .
rdf:_1                                           rdfs:range               rdfs:Resource .
rdf:_2                                           rdf:type rdfs:ContainerMembershipProperty .
rdf:_2                                           rdfs:domain              rdfs:Resource .
rdf:_2                                           rdfs:range               rdfs:Resource .
...




F. Corno, L. Farinetti - Politecnico di Torino                                                 34
Role of Entailment rules (3/3)
    RDFS entailment satisfies the “RDFS entailment
     lemma”:
       S     rdfs-entails E if and only if there is a graph which can
           be derived from S plus the RDF and RDFS axiomatic
           triples by the application of rule lg, rule gl and the RDF
           and RDFS entailment rules and which either simply
           entails E or contains an XML clash




F. Corno, L. Farinetti - Politecnico di Torino                       35
Effect of Entailment rules (1/3)
    The outputs of these rules will often trigger others.




                                                 Source: Inferencing and Truth Maintenance in RDF Schema, Exploring a naive practical
F. Corno, L. Farinetti - Politecnico di Torino                                                                                36
                                                 approach, J. Broekstra, A. Kampman, http://www.openrdf.org/doc/papers/inferencing.pdf
Effect of Entailment rules (2/3)
    Rules propagate all rdf:type assertions in the graph
     up the subproperty and subclass hierarchies
    rdf1 generates type assertions for all the property
     names used in the graph
        uuu            aaa yyy → aaa rdf:type rdf:Property
    rdfs3 together with the last RDFS axiomatic triple
     adds all type assertions for all the class names used
       →  rdf:_2 rdfs:range rdfs:Resource
        aaa rdfs:range xxx  uuu aaa vvv → vvv
         rdf:type xxx



F. Corno, L. Farinetti - Politecnico di Torino                37
Effect of Entailment rules (3/3)
    Any subproperty or subclass assertion generates type
     assertions for its subject and object via rdfs2 and
     rdfs3 and the domain and range assertions in the
     RDFS axiomatic triple set
        aaa rdfs:domain xxx  uuu aaa yyy → uuu
         rdf:type xxx
        aaa rdfs:range xxx  uuu aaa vvv → vvv
         rdf:type xxx
    For every uuu in V, the rules generate all assertions
        uuu            rdf:type rdfs:Resource
    For every class name uuu, the rules generate
        uuu            rdfs:subClassOf rdfs:Resource
F. Corno, L. Farinetti - Politecnico di Torino               38
Example (axiomatic nodes)
Example (rdf:type and
rdfs:subclassOf)
Example (properties, domains,
ranges)
Example (reification of properties)
Example (reification of
properties+axiomatic properties)
Closure and Reduction
    The closure of a graph is the graph defined by all
     triples that are inferred by the deduction system
        Using   the closure of a graph for storing minimizes
           query processing time

    The reduction of a graph is the minimal subset of
     triples needed to compute its closure
        Using   the reduction of a graph for storing minimizes the
           storage space needed.




F. Corno, L. Farinetti - Politecnico di Torino                    44
Example

                                                                           ex:Human
                                                    ex:r2
                                                                           rdfs:subClassOf
                                                   ex:paints
                                                                rdf:type
                      ex:creates                                           ex:Artist
                                                    ex:r1
                                                                           rdfs:subClassOf
              rdfs:subPropertyOf
                                                               rdf:type

                        ex:paints                                          ex:Painter
                                                 rdfs:domain




F. Corno, L. Farinetti - Politecnico di Torino                                               45
Example: closure

                                                                              ex:Human
rdfs:Property
                                                    ex:r2
                                ex:creates                         rdf:type   rdfs:subClassOf
              rdf:type                             ex:paints
                                                                 rdf:type
                                                                                                      rdfs:subClassOf
                      ex:creates                                              ex:Artist
  rdf:type                                          ex:r1
                                                                              rdfs:subClassOf
              rdfs:subPropertyOf
                                                               rdf:type

                        ex:paints                                             ex:Painter
                                                 rdfs:domain                                             rdf:type
                                                                                                     rdf:type
                                                                                                rdf:type
                                                                                                          rdfs:Class




F. Corno, L. Farinetti - Politecnico di Torino                                                                      46
Example: reduction

                                                                              ex:Human
rdfs:Property
                                                    ex:r2
                                ex:creates                         rdf:type   rdfs:subClassOf
              rdf:type                             ex:paints
                                                                 rdf:type
                                                                                                      rdfs:subClassOf
                      ex:creates                                              ex:Artist
  rdf:type                                          ex:r1
                                                                              rdfs:subClassOf
              rdfs:subPropertyOf
                                                               rdf:type

                        ex:paints                                             ex:Painter
                                                 rdfs:domain                                             rdf:type
                                                                                                     rdf:type
                                                                                                rdf:type
                                                                                                          rdfs:Class




F. Corno, L. Farinetti - Politecnico di Torino                                                                      47
Discussion on RDF
    RDF is a simple, but useful language to make
     relations between resources explicit
 It allows to define a simple form of schema which
     mostly consists of class and property hierarchies as
     well as relations with domain and range restriction
 There is a simple rule based reasoning mechanism
     for RDF schema that in most cases can be used
     offline because the increase is only factor 1.5 – this
     can further be reduced by only completing the
     schema offline
 Unlike most traditional KR languages RDF schema
     allows to freely combine modeling primitives which
     affects reasoning
F. Corno, L. Farinetti - Politecnico di Torino                48
Problems with RDF
    Not always meaningful representation




F. Corno, L. Farinetti - Politecnico di Torino   49
Need logical axioms!




F. Corno, L. Farinetti - Politecnico di Torino   50
We can detect inconsistencies




F. Corno, L. Farinetti - Politecnico di Torino   51
What properties do we need?
    Subclass relations
    Sub-properties



    Set operations




F. Corno, L. Farinetti - Politecnico di Torino   52
What properties do we need? /2
    Cardinality restriction



    Existential quantifier

    Universal quantifier




F. Corno, L. Farinetti - Politecnico di Torino   53
What properties do we need? /3
    Inverse properties

    Symmetric properties

    Transitivity




F. Corno, L. Farinetti - Politecnico di Torino   54
References
    RDF Semantics - W3C Recommendation 10 February
     2004
        http://www.w3.org/TR/rdf-mt/
    Course material for “Practical Reasoning for the
     Semantic Web” course at the 17th European Summer
     School in Logic, Language and Information (ESSLLI)
        http://www.few.vu.nl/~schlobac/




F. Corno, L. Farinetti - Politecnico di Torino        55
References
    http://www.aaai.org/AITopics/html/reason.html
    http://media.cwi.nl/survey/
    http://www.mkbergman.com
    http://www.dcs.bbk.ac.uk/~michael/sw/sw.html
    http://www.inf.unibz.it/~debruijn/teaching/swt/




F. Corno, L. Farinetti - Politecnico di Torino         56
License
    This work is licensed under the Creative Commons
     Attribution-Noncommercial-Share Alike 3.0
     Unported License.
    To view a copy of this license, visit
     http://creativecommons.org/licenses/by-nc-sa/3.0/ or
     send a letter to Creative Commons, 171 Second
     Street, Suite 300, San Francisco, California, 94105,
     USA.




F. Corno, L. Farinetti - Politecnico di Torino              57

More Related Content

What's hot

GSCL2013.Phrase Tagset Mapping for French and English Treebanks and Its Appli...
GSCL2013.Phrase Tagset Mapping for French and English Treebanks and Its Appli...GSCL2013.Phrase Tagset Mapping for French and English Treebanks and Its Appli...
GSCL2013.Phrase Tagset Mapping for French and English Treebanks and Its Appli...Lifeng (Aaron) Han
 
MSR2012 - Explaining Software Defects Using Topic Models
MSR2012 - Explaining Software Defects Using Topic ModelsMSR2012 - Explaining Software Defects Using Topic Models
MSR2012 - Explaining Software Defects Using Topic ModelsConcordia University
 
Deep Learning for Machine Translation: a paradigm shift - Alberto Massidda - ...
Deep Learning for Machine Translation: a paradigm shift - Alberto Massidda - ...Deep Learning for Machine Translation: a paradigm shift - Alberto Massidda - ...
Deep Learning for Machine Translation: a paradigm shift - Alberto Massidda - ...Codemotion
 
CodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-Issue
CodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-IssueCodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-Issue
CodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-IssueDhaval Dalal
 
Concepts in Application Context ( How we may think conceptually )
Concepts in Application Context ( How we may think conceptually )Concepts in Application Context ( How we may think conceptually )
Concepts in Application Context ( How we may think conceptually )Steffen Staab
 
Divide and Conquer Semantic Web with Modular
Divide and Conquer Semantic Web with ModularDivide and Conquer Semantic Web with Modular
Divide and Conquer Semantic Web with ModularJie Bao
 
LREC 2010 presentation
LREC 2010 presentationLREC 2010 presentation
LREC 2010 presentationStefania Spina
 
Logic Programming and Prolog
Logic Programming and PrologLogic Programming and Prolog
Logic Programming and PrologSadegh Dorri N.
 
Language-Independent Detection of Object-Oriented Design Patterns
Language-Independent Detection of Object-Oriented Design PatternsLanguage-Independent Detection of Object-Oriented Design Patterns
Language-Independent Detection of Object-Oriented Design PatternsESUG
 
A Distributed Tableau Algorithm for Package-based Description Logics
A Distributed Tableau Algorithm for Package-based Description LogicsA Distributed Tableau Algorithm for Package-based Description Logics
A Distributed Tableau Algorithm for Package-based Description LogicsJie Bao
 
Problem solving (programming) 5
Problem solving (programming) 5Problem solving (programming) 5
Problem solving (programming) 5ahmed safwat
 
Representing and Reasoning with Modular Ontologies
Representing and Reasoning with Modular OntologiesRepresenting and Reasoning with Modular Ontologies
Representing and Reasoning with Modular OntologiesJie Bao
 
A Contextualized Knowledge Repository for Open Data about Trentino
A Contextualized Knowledge Repository for Open Data about TrentinoA Contextualized Knowledge Repository for Open Data about Trentino
A Contextualized Knowledge Repository for Open Data about TrentinoPlanetData Network of Excellence
 

What's hot (16)

GSCL2013.Phrase Tagset Mapping for French and English Treebanks and Its Appli...
GSCL2013.Phrase Tagset Mapping for French and English Treebanks and Its Appli...GSCL2013.Phrase Tagset Mapping for French and English Treebanks and Its Appli...
GSCL2013.Phrase Tagset Mapping for French and English Treebanks and Its Appli...
 
UWB semeval2016-task5
UWB semeval2016-task5UWB semeval2016-task5
UWB semeval2016-task5
 
MSR2012 - Explaining Software Defects Using Topic Models
MSR2012 - Explaining Software Defects Using Topic ModelsMSR2012 - Explaining Software Defects Using Topic Models
MSR2012 - Explaining Software Defects Using Topic Models
 
Deep Learning for Machine Translation: a paradigm shift - Alberto Massidda - ...
Deep Learning for Machine Translation: a paradigm shift - Alberto Massidda - ...Deep Learning for Machine Translation: a paradigm shift - Alberto Massidda - ...
Deep Learning for Machine Translation: a paradigm shift - Alberto Massidda - ...
 
CodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-Issue
CodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-IssueCodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-Issue
CodeJugalbandi-Expression-Problem-HealthyCode-Magazine#Jan-2015-Issue
 
NFA to DFA
NFA to DFANFA to DFA
NFA to DFA
 
Concepts in Application Context ( How we may think conceptually )
Concepts in Application Context ( How we may think conceptually )Concepts in Application Context ( How we may think conceptually )
Concepts in Application Context ( How we may think conceptually )
 
Divide and Conquer Semantic Web with Modular
Divide and Conquer Semantic Web with ModularDivide and Conquer Semantic Web with Modular
Divide and Conquer Semantic Web with Modular
 
LREC 2010 presentation
LREC 2010 presentationLREC 2010 presentation
LREC 2010 presentation
 
Logic Programming and Prolog
Logic Programming and PrologLogic Programming and Prolog
Logic Programming and Prolog
 
Language-Independent Detection of Object-Oriented Design Patterns
Language-Independent Detection of Object-Oriented Design PatternsLanguage-Independent Detection of Object-Oriented Design Patterns
Language-Independent Detection of Object-Oriented Design Patterns
 
A Distributed Tableau Algorithm for Package-based Description Logics
A Distributed Tableau Algorithm for Package-based Description LogicsA Distributed Tableau Algorithm for Package-based Description Logics
A Distributed Tableau Algorithm for Package-based Description Logics
 
Problem solving (programming) 5
Problem solving (programming) 5Problem solving (programming) 5
Problem solving (programming) 5
 
Representing and Reasoning with Modular Ontologies
Representing and Reasoning with Modular OntologiesRepresenting and Reasoning with Modular Ontologies
Representing and Reasoning with Modular Ontologies
 
eSPERTo’s Paraphrastic Knowledge Applied to Question-Answering and Summarization
eSPERTo’s Paraphrastic Knowledge Applied to Question-Answering and SummarizationeSPERTo’s Paraphrastic Knowledge Applied to Question-Answering and Summarization
eSPERTo’s Paraphrastic Knowledge Applied to Question-Answering and Summarization
 
A Contextualized Knowledge Repository for Open Data about Trentino
A Contextualized Knowledge Repository for Open Data about TrentinoA Contextualized Knowledge Repository for Open Data about Trentino
A Contextualized Knowledge Repository for Open Data about Trentino
 

Viewers also liked

Linked Data for Ambient Intelligence
Linked Data for Ambient IntelligenceLinked Data for Ambient Intelligence
Linked Data for Ambient IntelligenceFulvio Corno
 
Accessibilità dei siti web
Accessibilità dei siti webAccessibilità dei siti web
Accessibilità dei siti webFulvio Corno
 
Ausili definizioni e normative
Ausili definizioni e normativeAusili definizioni e normative
Ausili definizioni e normativeFulvio Corno
 
Introduction to Ajax programming
Introduction to Ajax programmingIntroduction to Ajax programming
Introduction to Ajax programmingFulvio Corno
 
Search and Optimization Strategies
Search and Optimization StrategiesSearch and Optimization Strategies
Search and Optimization StrategiesFulvio Corno
 
Presentazione Servizio Poli@Home
Presentazione Servizio Poli@HomePresentazione Servizio Poli@Home
Presentazione Servizio Poli@HomeFulvio Corno
 
Introduction to Javascript programming
Introduction to Javascript programmingIntroduction to Javascript programming
Introduction to Javascript programmingFulvio Corno
 
Logic and Reasoning in the Semantic Web (part II –OWL)
Logic and Reasoning in the Semantic Web (part II –OWL)Logic and Reasoning in the Semantic Web (part II –OWL)
Logic and Reasoning in the Semantic Web (part II –OWL)Fulvio Corno
 
Computational complexity
Computational complexityComputational complexity
Computational complexityFulvio Corno
 
Lucidi relativi al DVD di Programmazione in C
Lucidi relativi al DVD di Programmazione in CLucidi relativi al DVD di Programmazione in C
Lucidi relativi al DVD di Programmazione in CFulvio Corno
 
Introduction to SKOS - Simple Knowledge Organization System
Introduction to SKOS - Simple Knowledge Organization SystemIntroduction to SKOS - Simple Knowledge Organization System
Introduction to SKOS - Simple Knowledge Organization SystemFulvio Corno
 
Web services in PHP using the NuSOAP library
Web services in PHP using the NuSOAP libraryWeb services in PHP using the NuSOAP library
Web services in PHP using the NuSOAP libraryFulvio Corno
 
Semantic Web, Metadata, Knowledge Representation, Ontologies
Semantic Web, Metadata, Knowledge Representation, OntologiesSemantic Web, Metadata, Knowledge Representation, Ontologies
Semantic Web, Metadata, Knowledge Representation, OntologiesFulvio Corno
 

Viewers also liked (16)

Linked Data for Ambient Intelligence
Linked Data for Ambient IntelligenceLinked Data for Ambient Intelligence
Linked Data for Ambient Intelligence
 
Accessibilità dei siti web
Accessibilità dei siti webAccessibilità dei siti web
Accessibilità dei siti web
 
Ausili definizioni e normative
Ausili definizioni e normativeAusili definizioni e normative
Ausili definizioni e normative
 
Introduction to Ajax programming
Introduction to Ajax programmingIntroduction to Ajax programming
Introduction to Ajax programming
 
Web Accessibility
Web AccessibilityWeb Accessibility
Web Accessibility
 
Search and Optimization Strategies
Search and Optimization StrategiesSearch and Optimization Strategies
Search and Optimization Strategies
 
JDBC programming
JDBC programmingJDBC programming
JDBC programming
 
Presentazione Servizio Poli@Home
Presentazione Servizio Poli@HomePresentazione Servizio Poli@Home
Presentazione Servizio Poli@Home
 
Introduction to Javascript programming
Introduction to Javascript programmingIntroduction to Javascript programming
Introduction to Javascript programming
 
Logic and Reasoning in the Semantic Web (part II –OWL)
Logic and Reasoning in the Semantic Web (part II –OWL)Logic and Reasoning in the Semantic Web (part II –OWL)
Logic and Reasoning in the Semantic Web (part II –OWL)
 
Computational complexity
Computational complexityComputational complexity
Computational complexity
 
Lucidi relativi al DVD di Programmazione in C
Lucidi relativi al DVD di Programmazione in CLucidi relativi al DVD di Programmazione in C
Lucidi relativi al DVD di Programmazione in C
 
Web Transactions
Web TransactionsWeb Transactions
Web Transactions
 
Introduction to SKOS - Simple Knowledge Organization System
Introduction to SKOS - Simple Knowledge Organization SystemIntroduction to SKOS - Simple Knowledge Organization System
Introduction to SKOS - Simple Knowledge Organization System
 
Web services in PHP using the NuSOAP library
Web services in PHP using the NuSOAP libraryWeb services in PHP using the NuSOAP library
Web services in PHP using the NuSOAP library
 
Semantic Web, Metadata, Knowledge Representation, Ontologies
Semantic Web, Metadata, Knowledge Representation, OntologiesSemantic Web, Metadata, Knowledge Representation, Ontologies
Semantic Web, Metadata, Knowledge Representation, Ontologies
 

Similar to Logic and Reasoning in the Semantic Web (part I –RDF/RDFS)

RDF - Resource Description Framework and RDF Schema
RDF - Resource Description Framework and RDF SchemaRDF - Resource Description Framework and RDF Schema
RDF - Resource Description Framework and RDF SchemaFulvio Corno
 
Ontology languages and OWL
Ontology languages and OWLOntology languages and OWL
Ontology languages and OWLFulvio Corno
 
SPARQL and the Open Linked Data initiative
SPARQL and the Open Linked Data initiativeSPARQL and the Open Linked Data initiative
SPARQL and the Open Linked Data initiativeFulvio Corno
 
Framester: A Wide Coverage Linguistic Linked Data Hub
Framester: A Wide Coverage Linguistic Linked Data HubFramester: A Wide Coverage Linguistic Linked Data Hub
Framester: A Wide Coverage Linguistic Linked Data HubMehwish Alam
 
Deep Dependency Graph Conversion in English
Deep Dependency Graph Conversion in EnglishDeep Dependency Graph Conversion in English
Deep Dependency Graph Conversion in EnglishJinho Choi
 
First order predicate logic(fopl)
First order predicate logic(fopl)First order predicate logic(fopl)
First order predicate logic(fopl)surbhi jha
 
Machine Learning Methods for Analysing and Linking RDF Data
Machine Learning Methods for Analysing and Linking RDF DataMachine Learning Methods for Analysing and Linking RDF Data
Machine Learning Methods for Analysing and Linking RDF DataJens Lehmann
 
A Semantic Multimedia Web (Part 2)
A Semantic Multimedia Web (Part 2)A Semantic Multimedia Web (Part 2)
A Semantic Multimedia Web (Part 2)Raphael Troncy
 
Chapter 2 Text Operation and Term Weighting.pdf
Chapter 2 Text Operation and Term Weighting.pdfChapter 2 Text Operation and Term Weighting.pdf
Chapter 2 Text Operation and Term Weighting.pdfJemalNesre1
 
Machine learning-and-data-mining-19-mining-text-and-web-data
Machine learning-and-data-mining-19-mining-text-and-web-dataMachine learning-and-data-mining-19-mining-text-and-web-data
Machine learning-and-data-mining-19-mining-text-and-web-dataitstuff
 
Ontology engineering: Ontology alignment
Ontology engineering: Ontology alignmentOntology engineering: Ontology alignment
Ontology engineering: Ontology alignmentGuus Schreiber
 
Introduction to database-Normalisation
Introduction to database-NormalisationIntroduction to database-Normalisation
Introduction to database-NormalisationAjit Nayak
 
Lecture 2: From Semantics To Semantic-Oriented Applications
Lecture 2: From Semantics To Semantic-Oriented ApplicationsLecture 2: From Semantics To Semantic-Oriented Applications
Lecture 2: From Semantics To Semantic-Oriented ApplicationsMarina Santini
 
The RDA Vocabularies: What They Are, How They Work
The RDA Vocabularies: What They Are, How They WorkThe RDA Vocabularies: What They Are, How They Work
The RDA Vocabularies: What They Are, How They WorkDiane Hillmann
 
Diane Hillmann: RDA Vocabularies in the Semantic Web
Diane Hillmann: RDA Vocabularies in the Semantic WebDiane Hillmann: RDA Vocabularies in the Semantic Web
Diane Hillmann: RDA Vocabularies in the Semantic WebALATechSource
 
Ch3 4 regular expression and grammar
Ch3 4 regular expression and grammarCh3 4 regular expression and grammar
Ch3 4 regular expression and grammarmeresie tesfay
 

Similar to Logic and Reasoning in the Semantic Web (part I –RDF/RDFS) (20)

RDF - Resource Description Framework and RDF Schema
RDF - Resource Description Framework and RDF SchemaRDF - Resource Description Framework and RDF Schema
RDF - Resource Description Framework and RDF Schema
 
Ontology languages and OWL
Ontology languages and OWLOntology languages and OWL
Ontology languages and OWL
 
LefrancoisGandon@MSW11: ULiS
LefrancoisGandon@MSW11: ULiSLefrancoisGandon@MSW11: ULiS
LefrancoisGandon@MSW11: ULiS
 
SPARQL and the Open Linked Data initiative
SPARQL and the Open Linked Data initiativeSPARQL and the Open Linked Data initiative
SPARQL and the Open Linked Data initiative
 
Framester: A Wide Coverage Linguistic Linked Data Hub
Framester: A Wide Coverage Linguistic Linked Data HubFramester: A Wide Coverage Linguistic Linked Data Hub
Framester: A Wide Coverage Linguistic Linked Data Hub
 
Deep Dependency Graph Conversion in English
Deep Dependency Graph Conversion in EnglishDeep Dependency Graph Conversion in English
Deep Dependency Graph Conversion in English
 
First order predicate logic(fopl)
First order predicate logic(fopl)First order predicate logic(fopl)
First order predicate logic(fopl)
 
Machine Learning Methods for Analysing and Linking RDF Data
Machine Learning Methods for Analysing and Linking RDF DataMachine Learning Methods for Analysing and Linking RDF Data
Machine Learning Methods for Analysing and Linking RDF Data
 
A Semantic Multimedia Web (Part 2)
A Semantic Multimedia Web (Part 2)A Semantic Multimedia Web (Part 2)
A Semantic Multimedia Web (Part 2)
 
Chapter 2 Text Operation and Term Weighting.pdf
Chapter 2 Text Operation and Term Weighting.pdfChapter 2 Text Operation and Term Weighting.pdf
Chapter 2 Text Operation and Term Weighting.pdf
 
J79 1063
J79 1063J79 1063
J79 1063
 
Text Similarity
Text SimilarityText Similarity
Text Similarity
 
Machine learning-and-data-mining-19-mining-text-and-web-data
Machine learning-and-data-mining-19-mining-text-and-web-dataMachine learning-and-data-mining-19-mining-text-and-web-data
Machine learning-and-data-mining-19-mining-text-and-web-data
 
Ontology engineering: Ontology alignment
Ontology engineering: Ontology alignmentOntology engineering: Ontology alignment
Ontology engineering: Ontology alignment
 
Introduction to database-Normalisation
Introduction to database-NormalisationIntroduction to database-Normalisation
Introduction to database-Normalisation
 
Lecture 2: From Semantics To Semantic-Oriented Applications
Lecture 2: From Semantics To Semantic-Oriented ApplicationsLecture 2: From Semantics To Semantic-Oriented Applications
Lecture 2: From Semantics To Semantic-Oriented Applications
 
The RDA Vocabularies: What They Are, How They Work
The RDA Vocabularies: What They Are, How They WorkThe RDA Vocabularies: What They Are, How They Work
The RDA Vocabularies: What They Are, How They Work
 
Diane Hillmann: RDA Vocabularies in the Semantic Web
Diane Hillmann: RDA Vocabularies in the Semantic WebDiane Hillmann: RDA Vocabularies in the Semantic Web
Diane Hillmann: RDA Vocabularies in the Semantic Web
 
Ch3 4 regular expression and grammar
Ch3 4 regular expression and grammarCh3 4 regular expression and grammar
Ch3 4 regular expression and grammar
 
MTT-2013
MTT-2013MTT-2013
MTT-2013
 

Recently uploaded

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Recently uploaded (20)

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

Logic and Reasoning in the Semantic Web (part I –RDF/RDFS)

  • 1. Logic and Reasoning in the Semantic Web (part I – RDF/RDFS) Fulvio Corno, Laura Farinetti Politecnico di Torino Dipartimento di Automatica e Informatica e-Lite Research Group – http://elite.polito.it
  • 2. Outline  Reasoning in Semantic Web Knowledge Bases  RDF/RDFS Semantics and Entailments  OWL Semantics Part I  Pellet F. Corno, L. Farinetti - Politecnico di Torino 2
  • 3. Outline  Reasoning in Semantic Web Knowledge Bases  RDF/RDFS Semantics and Entailments  OWL Semantics  Pellet F. Corno, L. Farinetti - Politecnico di Torino 3
  • 4. Reasoning  Reasoning is required when a program must determine some information or some action that has not been explicitly told about  It must figure out what it needs to know from what it already knows F. Corno, L. Farinetti - Politecnico di Torino 4
  • 5. Example  Facts:  Robins are birds  All birds have wings  Questions:  Are Robins birds?  Yes  Do all birds have wings?  Yes  Do robins have wings?  ????? F. Corno, L. Farinetti - Politecnico di Torino 5
  • 6. Semantic Web peculiarities  Traditional KBS used to be developed top down  The Semantic Web is developed bottom-up  Problems:  Scalability: Everybody having a web page is a potential Knowledge Engineer  Distribution: Pieces of knowledge can be all over the place, finding them can be hard  Heterogeneity: People use different ways of describing the same information  Quality: Knowledge will be incomplete and even inconsistent across different sources of mapping approaches F. Corno, L. Farinetti - Politecnico di Torino 6
  • 7. Reasoning in the Semantic Web  New methods are needed that  Scale to large amounts of data and knowledge  Are tolerant to errors, incompleteness and inconsistency between and within sources  Work on distributed representations and ideally are distributed themselves  ...and are compatible with Semantic web standards F. Corno, L. Farinetti - Politecnico di Torino 7
  • 8. Outline  Reasoning in Semantic Web Knowledge Bases  RDF/RDFS Semantics and Entailments  OWL Semantics  Pellet F. Corno, L. Farinetti - Politecnico di Torino 8
  • 9. Recall: RDF Schema Source: Practical Reasoning for the Semantic Web (ESSLLI2005), S. Schlobach, H. Stuckenschmidt, http://www.few.vu.nl/~schlobac/esslli_day1.pdf F. Corno, L. Farinetti - Politecnico di Torino 9
  • 10. RDF vs RDFS Source: http://www.dcs.bbk.ac.uk/~michael/sw/sw.html Michael Zakharyaschev
  • 11. Some RDFS inference rules  (X R Y), (R subPropertyOf Q) => (X Q Y)  (X R Y), (R domain C) => (X type C)  (X type C), (C subClassOf D) => (X type D)  … F. Corno, L. Farinetti - Politecnico di Torino 11
  • 12. RDF Semantics  Semantics is not about the “meaning” of assertions  The „meaning‟ of an assertion in RDF or RDFS may depend on many factors, including social conventions, comments in natural language or links to other content- bearing documents, … (non machine-processable information)  Semantics restricts itself to a formal notion of meaning which could be characterized as the part that is common to all other accounts of meaning, and can be captured in mechanical inference rules F. Corno, L. Farinetti - Politecnico di Torino 12
  • 13. Model Semantics  The RDF Semantics W3C Recommendation uses model theory for specifying the semantics of the RDF language.  Model theory assumes that the language refers to a „world‟, and describes the minimal conditions that a world must satisfy in order to assign an appropriate meaning for every expression in the language  A particular world is called an interpretation  The idea is to provide an abstract, mathematical account of the properties that any such interpretation must have, making as few assumptions as possible about its actual nature or intrinsic structure, thereby retaining as much generality as possible F. Corno, L. Farinetti - Politecnico di Torino 13
  • 14. Goals of the inference process  To provide a technical way to determine when inference processes are valid, i.e., when they preserve truth  Starting from a set of assertions that are regarded as true in an RDF model, derive whether a new RDF model contains provably true assertions  We never known about the “real” truth of any assertion in the “real” world. F. Corno, L. Farinetti - Politecnico di Torino 14
  • 15. Formalization  Interpretations (Normative)  Mapping of RDF assertions into an abstract model, based on set-theory  With an “interpretation operator” I(), maps a RDF graph into a highly abstract set of high-cardinality sets  Highly theoretical model, useful to prove mathematical properties  Entailments (Informative)  Transformation rules to derive new assertions from existing ones  May be proven complete and consistent with the formal interpretation F. Corno, L. Farinetti - Politecnico di Torino 15
  • 18. Interpretation: minimum notions  I : interpretation operator  E : fragment of RDF syntax  If E is a graph:  I(E) = false if I(E') = false for some triple E' in E, otherwise I(E) =true  If E is a triple <s, p, o>:  I(E) = true if s, p and o are in V, I(p) is in IP and <I(s),I(o)> is in IEXT(I(p))  otherwise I(E)= false  IP : set of properties, IR : set of resources  IEXT(I(p)) : mapping from IP into the powerset of IR x IR i.e. the set of sets of pairs <x,y> with x and y in IR F. Corno, L. Farinetti - Politecnico di Torino 18
  • 22. Entailment  I satisfies E if I(E)=true  A set S of RDF graphs entails a graph E if every interpretation which satisfies every member of S also satisfies E  In human words:  assertion = a claim that the world is an interpretation which assigns the value true to the assertion  If A entails B, then  any interpretation that makes A true also makes B true  an assertion of A already contains the same "meaning" as an assertion of B  the meaning of B is somehow contained in, or subsumed by, that of A F. Corno, L. Farinetti - Politecnico di Torino 22
  • 23. Entailment regime  RDF defines 4 entailment regimes:  Simple entailment : does not interpret any RDF or RDFS vocabulary (just structural matching, by re- naming blank nodes)  RDF entailment : interprets RDF vocabulary  RDFS entailment : interprets RDF and RDFS vocabularies  D entailment : additional support for datatypes
  • 24. RDF Entailment rules (legend)  aaa, bbb: any URI reference  uuu, vvv: any URI reference or blank node identifier  xxx, yyy: any URI reference, blank node identifier or literal  lll: any literal  _:nnn: blank node identifiers F. Corno, L. Farinetti - Politecnico di Torino 24
  • 25. Simple Entailment rules Rule If E contains then add name se1 uuu aaa xxx . uuu aaa _:nnn . where _:nnn identifies a blank node allocated to xxx by rule se1 or se2. se2 uuu aaa xxx . _:nnn aaa xxx . where _:nnn identifies a blank node allocated to uuu by rule se1 or se2. lg uuu aaa lll . uuu aaa _:nnn . where _:nnn identifies a blank node allocated to the literal lll by this rule. gl uuu aaa _:nnn . uuu aaa lll . where _:nnn identifies a blank node allocated to the literal lll by rule lg. F. Corno, L. Farinetti - Politecnico di Torino 25
  • 26. Role of Entailment rules (1/3)  Simple entailment satisfies the “Interpolation Lemma”: S entails a graph E if and only if a subgraph of S is an instance of E  It completely characterizes simple RDF entailment in syntactic terms  RDF entailment satisfies the “RDF entailment lemma”: S rdf-entails E if and only if there is a graph which can be derived from S plus the RDF axiomatic triples by the application of rule lg and the RDF entailment rules and which simply entails E  This means that the entailment rules are “complete” F. Corno, L. Farinetti - Politecnico di Torino 26
  • 27. RDF Entailment rules Rule If E contains then add name rdf1 uuu aaa yyy . aaa rdf:type rdf:Property . rdf2 uuu aaa lll . _:nnn rdf:type where lll is a well-typed XML rdf:XMLLiteral . literal . where _:nnn identifies a blank node allocated to lll by rule lg. F. Corno, L. Farinetti - Politecnico di Torino 27
  • 28. RDF Axiomatic triples rdf:type rdf:type rdf:Property . rdf:subject rdf:type rdf:Property . rdf:predicate rdf:type rdf:Property . rdf:object rdf:type rdf:Property . rdf:first rdf:type rdf:Property . rdf:rest rdf:type rdf:Property . rdf:value rdf:type rdf:Property . rdf:_1 rdf:type rdf:Property . rdf:_2 rdf:type rdf:Property . ... rdf:nil rdf:type rdf:List . F. Corno, L. Farinetti - Politecnico di Torino 28
  • 29. Role of Entailment rules (2/3)  RDF entailment satisfies the “RDF entailment lemma”: S rdf-entails E if and only if there is a graph which can be derived from S plus the RDF axiomatic triples by the application of rule lg and the RDF entailment rules and which simply entails E  This means that the entailment rules are “complete” F. Corno, L. Farinetti - Politecnico di Torino 29
  • 30. RDFS Entailment rules (1/2) Rule If E contains then add name rdfs1 uuu aaa lll. _:nnn rdf:type rdfs:Literal where lll is a plain literal (with or . without a language tag) where _:nnn identifies a blank node allocated to lll by rule rule lg. rdfs2 aaa rdfs:domain xxx . uuu rdf:type xxx . uuu aaa yyy . rdfs3 aaa rdfs:range xxx . vvv rdf:type xxx . uuu aaa vvv . rdfs4a uuu aaa xxx . uuu rdf:type rdfs:Resource . rdfs4b uuu aaa vvv. vvv rdf:type rdfs:Resource . rdfs5 uuu rdfs:subPropertyOf uuu rdfs:subPropertyOf xxx . vvv . vvv rdfs:subPropertyOf xxx . F. Corno, L. Farinetti - Politecnico di Torino 30
  • 31. RDFS Entailment rules (2/2) Rule If E contains then add name rdfs6 uuu rdf:type rdf:Property . uuu rdfs:subPropertyOf uuu . rdfs7 aaa rdfs:subPropertyOf bbb uuu bbb yyy . uuu aaa yyy . rdfs8 uuu rdf:type rdfs:Class . uuu rdfs:subClassOf rdfs:Resource . rdfs9 uuu rdfs:subClassOf xxx . vvv rdf:type xxx . vvv rdf:type uuu . rdfs10 uuu rdf:type rdfs:Class . uuu rdfs:subClassOf uuu . rdfs11 uuu rdfs:subClassOf vvv . uuu rdfs:subClassOf xxx . vvv rdfs:subClassOf xxx . rdfs12 uuu rdf:type uuu rdfs:subPropertyOf rdfs:ContainerMembershipPro rdfs:member . perty . rdfs13 uuu rdf:type rdfs:Datatype uuu rdfs:subClassOf F. Corno, L. Farinetti - Politecnico di Torino rdfs:Literal . 31
  • 32. RDFS Axiomatic triples (1/3) rdf:type rdfs:domain rdfs:Resource . rdfs:domain rdfs:domain rdf:Property . rdfs:range rdfs:domain rdf:Property . rdfs:subPropertyOf rdfs:domain rdf:Property . rdfs:subClassOf rdfs:domain rdfs:Class . rdf:subject rdfs:domain rdf:Statement . rdf:predicate rdfs:domain rdf:Statement . rdf:object rdfs:domain rdf:Statement . rdfs:member rdfs:domain rdfs:Resource . rdf:first rdfs:domain rdf:List . rdf:rest rdfs:domain rdf:List . rdfs:seeAlso rdfs:domain rdfs:Resource . rdfs:isDefinedBy rdfs:domain rdfs:Resource . rdfs:comment rdfs:domain rdfs:Resource . rdfs:label rdfs:domain rdfs:Resource . rdf:value rdfs:domain rdfs:Resource . F. Corno, L. Farinetti - Politecnico di Torino 32
  • 33. RDFS Axiomatic triples (2/3) rdf:type rdfs:range rdfs:Class . rdfs:domain rdfs:range rdfs:Class . rdfs:range rdfs:range rdfs:Class . rdfs:subPropertyOf rdfs:range rdf:Property . rdfs:subClassOf rdfs:range rdfs:Class . rdf:subject rdfs:range rdfs:Resource . rdf:predicate rdfs:range rdfs:Resource . rdf:object rdfs:range rdfs:Resource . rdfs:member rdfs:range rdfs:Resource . rdf:first rdfs:range rdfs:Resource . rdf:rest rdfs:range rdf:List . rdfs:seeAlso rdfs:range rdfs:Resource . rdfs:isDefinedBy rdfs:range rdfs:Resource . rdfs:comment rdfs:range rdfs:Literal . rdfs:label rdfs:range rdfs:Literal . rdf:value rdfs:range rdfs:Resource . F. Corno, L. Farinetti - Politecnico di Torino 33
  • 34. RDFS Axiomatic triples (3/3) rdf:Alt rdfs:subClassOf rdfs:Container . rdf:Bag rdfs:subClassOf rdfs:Container . rdf:Seq rdfs:subClassOf rdfs:Container . rdfs:ContainerMembershipProperty rdfs:subClassOf rdf:Property . rdfs:isDefinedBy rdfs:subPropertyOf rdfs:seeAlso . rdf:XMLLiteral rdf:type rdfs:Datatype . rdf:XMLLiteral rdfs:subClassOf rdfs:Literal . rdfs:Datatype rdfs:subClassOf rdfs:Class . rdf:_1 rdf:type rdfs:ContainerMembershipProperty . rdf:_1 rdfs:domain rdfs:Resource . rdf:_1 rdfs:range rdfs:Resource . rdf:_2 rdf:type rdfs:ContainerMembershipProperty . rdf:_2 rdfs:domain rdfs:Resource . rdf:_2 rdfs:range rdfs:Resource . ... F. Corno, L. Farinetti - Politecnico di Torino 34
  • 35. Role of Entailment rules (3/3)  RDFS entailment satisfies the “RDFS entailment lemma”: S rdfs-entails E if and only if there is a graph which can be derived from S plus the RDF and RDFS axiomatic triples by the application of rule lg, rule gl and the RDF and RDFS entailment rules and which either simply entails E or contains an XML clash F. Corno, L. Farinetti - Politecnico di Torino 35
  • 36. Effect of Entailment rules (1/3)  The outputs of these rules will often trigger others. Source: Inferencing and Truth Maintenance in RDF Schema, Exploring a naive practical F. Corno, L. Farinetti - Politecnico di Torino 36 approach, J. Broekstra, A. Kampman, http://www.openrdf.org/doc/papers/inferencing.pdf
  • 37. Effect of Entailment rules (2/3)  Rules propagate all rdf:type assertions in the graph up the subproperty and subclass hierarchies  rdf1 generates type assertions for all the property names used in the graph  uuu aaa yyy → aaa rdf:type rdf:Property  rdfs3 together with the last RDFS axiomatic triple adds all type assertions for all the class names used → rdf:_2 rdfs:range rdfs:Resource  aaa rdfs:range xxx  uuu aaa vvv → vvv rdf:type xxx F. Corno, L. Farinetti - Politecnico di Torino 37
  • 38. Effect of Entailment rules (3/3)  Any subproperty or subclass assertion generates type assertions for its subject and object via rdfs2 and rdfs3 and the domain and range assertions in the RDFS axiomatic triple set  aaa rdfs:domain xxx  uuu aaa yyy → uuu rdf:type xxx  aaa rdfs:range xxx  uuu aaa vvv → vvv rdf:type xxx  For every uuu in V, the rules generate all assertions  uuu rdf:type rdfs:Resource  For every class name uuu, the rules generate  uuu rdfs:subClassOf rdfs:Resource F. Corno, L. Farinetti - Politecnico di Torino 38
  • 42. Example (reification of properties)
  • 44. Closure and Reduction  The closure of a graph is the graph defined by all triples that are inferred by the deduction system  Using the closure of a graph for storing minimizes query processing time  The reduction of a graph is the minimal subset of triples needed to compute its closure  Using the reduction of a graph for storing minimizes the storage space needed. F. Corno, L. Farinetti - Politecnico di Torino 44
  • 45. Example ex:Human ex:r2 rdfs:subClassOf ex:paints rdf:type ex:creates ex:Artist ex:r1 rdfs:subClassOf rdfs:subPropertyOf rdf:type ex:paints ex:Painter rdfs:domain F. Corno, L. Farinetti - Politecnico di Torino 45
  • 46. Example: closure ex:Human rdfs:Property ex:r2 ex:creates rdf:type rdfs:subClassOf rdf:type ex:paints rdf:type rdfs:subClassOf ex:creates ex:Artist rdf:type ex:r1 rdfs:subClassOf rdfs:subPropertyOf rdf:type ex:paints ex:Painter rdfs:domain rdf:type rdf:type rdf:type rdfs:Class F. Corno, L. Farinetti - Politecnico di Torino 46
  • 47. Example: reduction ex:Human rdfs:Property ex:r2 ex:creates rdf:type rdfs:subClassOf rdf:type ex:paints rdf:type rdfs:subClassOf ex:creates ex:Artist rdf:type ex:r1 rdfs:subClassOf rdfs:subPropertyOf rdf:type ex:paints ex:Painter rdfs:domain rdf:type rdf:type rdf:type rdfs:Class F. Corno, L. Farinetti - Politecnico di Torino 47
  • 48. Discussion on RDF  RDF is a simple, but useful language to make relations between resources explicit  It allows to define a simple form of schema which mostly consists of class and property hierarchies as well as relations with domain and range restriction  There is a simple rule based reasoning mechanism for RDF schema that in most cases can be used offline because the increase is only factor 1.5 – this can further be reduced by only completing the schema offline  Unlike most traditional KR languages RDF schema allows to freely combine modeling primitives which affects reasoning F. Corno, L. Farinetti - Politecnico di Torino 48
  • 49. Problems with RDF  Not always meaningful representation F. Corno, L. Farinetti - Politecnico di Torino 49
  • 50. Need logical axioms! F. Corno, L. Farinetti - Politecnico di Torino 50
  • 51. We can detect inconsistencies F. Corno, L. Farinetti - Politecnico di Torino 51
  • 52. What properties do we need?  Subclass relations  Sub-properties  Set operations F. Corno, L. Farinetti - Politecnico di Torino 52
  • 53. What properties do we need? /2  Cardinality restriction  Existential quantifier  Universal quantifier F. Corno, L. Farinetti - Politecnico di Torino 53
  • 54. What properties do we need? /3  Inverse properties  Symmetric properties  Transitivity F. Corno, L. Farinetti - Politecnico di Torino 54
  • 55. References  RDF Semantics - W3C Recommendation 10 February 2004  http://www.w3.org/TR/rdf-mt/  Course material for “Practical Reasoning for the Semantic Web” course at the 17th European Summer School in Logic, Language and Information (ESSLLI)  http://www.few.vu.nl/~schlobac/ F. Corno, L. Farinetti - Politecnico di Torino 55
  • 56. References  http://www.aaai.org/AITopics/html/reason.html  http://media.cwi.nl/survey/  http://www.mkbergman.com  http://www.dcs.bbk.ac.uk/~michael/sw/sw.html  http://www.inf.unibz.it/~debruijn/teaching/swt/ F. Corno, L. Farinetti - Politecnico di Torino 56
  • 57. License  This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.  To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. F. Corno, L. Farinetti - Politecnico di Torino 57