Contexts and Importing in RDF
    Jie Bao, Li Ding, and Deborah L. McGuinness
           Tetherless World Constellation
          Rensselaer Polytechnic Institute
              Troy, NY, 12180-3590, USA
           {baojie,dingl, dlm}@cs.rpi.edu
Context Matters
                               - Provenance
  Stanford

                                           hasRole                           PostDoc

             stanford:LiDing
                                         HasAffiliation                     Stanford


                                               hasRole
                     owl:sameAs
     RPI

                                                                       ResearchScientist
                                           hasRole
               rpi:LiDing
                                         HasAffiliation                        RPI


6/26/2010                      W3C RDF Next Steps Workshop, Stanford                       2
Context Matters
                             - Assumptions
                            rdf:type
            foaf:mbox                                   owl:InverseFunctionalProperty


     ISWC

                Jie Bao                     foaf:mbox
                                                                       baojie@cs.rpi.edu
                J. Bao                      foaf:mbox


  Foo forum

             janesmith456                   foaf:mbox
                                                                             n/a
             johnsmith123                   foaf:mbox

6/26/2010                      W3C RDF Next Steps Workshop, Stanford                       3
Context Matters
                              - “World”
        “Matrix”

            “Real World”

                       South Park

                                                  killed
                               THEY                                  Kenny


                                     rdf:type                 rdf:type

                                             Fictional People



                           0100010111010101010101010…


6/26/2010                    W3C RDF Next Steps Workshop, Stanford           4
Contexts are
• Something related to the meaning of a sentence
      –     Provenance (who, when, where, how, etc)
      –     Assumptions (e.g., OWA, UNA)
      –     World
      –     …


• Claim: when a triple is published/reused/inferred,
  its context should be made explicit.


6/26/2010                W3C RDF Next Steps Workshop, Stanford   5
Wait
• Don’t we already have
      – Named graph
      – C-OWL
      – N3 quotation
      – Contexts in AI
      –…




6/26/2010                W3C RDF Next Steps Workshop, Stanford   6
Named Graph
            Name = context
                                               Contexts are more than
                                                 names
    Graph_RPI
                                               • One triple may be in
      {:LiDing :hasRole                          multiple contexts
      :ResearchScientist.}                     • One context may be
                                                 reused
                                               • Relations between
                                                 contexts need to be
                                                 explicit, too.

6/26/2010               W3C RDF Next Steps Workshop, Stanford           7
C-OWL
            South Park
                                              • C-OWL provides an
                People                          ontology mapping
                                                language that respects
                                                contexts.
                      into
                                              • Knowledge transfer is
      RealWorld                                 controlled.

            Fictional People
                                              • Contexts are more than
                                                mapping

6/26/2010                      W3C RDF Next Steps Workshop, Stanford     8
N3Logic
rpi:LiDing says                        • Again, contexts are
  {rpi:LiDing :hasRole                   more than quotation.
  :ResearchScientist.}




6/26/2010          W3C RDF Next Steps Workshop, Stanford        9
Our Proposal
  • Based on named graph
  • Add two constructs
    • rdf:context
    • rdf:imports
6/26/2010     W3C RDF Next Steps Workshop, Stanford   10
Adding Contexts to RDF
Part I: rdf:context                   Part II: rdf:import

                                      G1 rdf:imports G2.
G rdf:context C.                       G1 rdf:context C1.
                                       G2 rdf:context C2.

C may give a context  • Importing as citation
  definition document • How knowledge G2 to G1
                        transferred from
      C agent LiDing.                     can be controlled by
                                          relations between C1 and
      C semantics OWL_Full                C2.

6/26/2010           W3C RDF Next Steps Workshop, Stanford            11
Partial Reuse
{s1 p1 o1.}              rdf:imports
                                     {s3 p3 o3.}
  rdf:context C1.                      rdf:context C3.
{s2 p2 o2.}              rdf:imports
  rdf:context C2.

                                 C3
                                 C3 rdfc:compatibleWith C1.
                                 C3 rdfc:incompatibleWith C2.

6/26/2010       W3C RDF Next Steps Workshop, Stanford      12
Reasoning with Contexts
Context relations                       Context rules
• Compatible                            • C is compatible with
• Incompatible                            contexts with agent
• Extend                                  “rpi:LiDing”
• In                                    • C is compatible with
                                          contexts that are
                                          compatible with C2

                                        Can be specified in OWL,RIF
                                          or other languages

6/26/2010           W3C RDF Next Steps Workshop, Stanford         13
Open Issues
• Context specification
     – Provenance model?
     – Context relation vocabulary?
• Formal semantics of contexts
• Default contexts




6/26/2010            W3C RDF Next Steps Workshop, Stanford   14

Contexts and Importing in RDF

  • 1.
    Contexts and Importingin RDF Jie Bao, Li Ding, and Deborah L. McGuinness Tetherless World Constellation Rensselaer Polytechnic Institute Troy, NY, 12180-3590, USA {baojie,dingl, dlm}@cs.rpi.edu
  • 2.
    Context Matters - Provenance Stanford hasRole PostDoc stanford:LiDing HasAffiliation Stanford hasRole owl:sameAs RPI ResearchScientist hasRole rpi:LiDing HasAffiliation RPI 6/26/2010 W3C RDF Next Steps Workshop, Stanford 2
  • 3.
    Context Matters - Assumptions rdf:type foaf:mbox owl:InverseFunctionalProperty ISWC Jie Bao foaf:mbox baojie@cs.rpi.edu J. Bao foaf:mbox Foo forum janesmith456 foaf:mbox n/a johnsmith123 foaf:mbox 6/26/2010 W3C RDF Next Steps Workshop, Stanford 3
  • 4.
    Context Matters - “World” “Matrix” “Real World” South Park killed THEY Kenny rdf:type rdf:type Fictional People 0100010111010101010101010… 6/26/2010 W3C RDF Next Steps Workshop, Stanford 4
  • 5.
    Contexts are • Somethingrelated to the meaning of a sentence – Provenance (who, when, where, how, etc) – Assumptions (e.g., OWA, UNA) – World – … • Claim: when a triple is published/reused/inferred, its context should be made explicit. 6/26/2010 W3C RDF Next Steps Workshop, Stanford 5
  • 6.
    Wait • Don’t wealready have – Named graph – C-OWL – N3 quotation – Contexts in AI –… 6/26/2010 W3C RDF Next Steps Workshop, Stanford 6
  • 7.
    Named Graph Name = context Contexts are more than names Graph_RPI • One triple may be in {:LiDing :hasRole multiple contexts :ResearchScientist.} • One context may be reused • Relations between contexts need to be explicit, too. 6/26/2010 W3C RDF Next Steps Workshop, Stanford 7
  • 8.
    C-OWL South Park • C-OWL provides an People ontology mapping language that respects contexts. into • Knowledge transfer is RealWorld controlled. Fictional People • Contexts are more than mapping 6/26/2010 W3C RDF Next Steps Workshop, Stanford 8
  • 9.
    N3Logic rpi:LiDing says • Again, contexts are {rpi:LiDing :hasRole more than quotation. :ResearchScientist.} 6/26/2010 W3C RDF Next Steps Workshop, Stanford 9
  • 10.
    Our Proposal • Based on named graph • Add two constructs • rdf:context • rdf:imports 6/26/2010 W3C RDF Next Steps Workshop, Stanford 10
  • 11.
    Adding Contexts toRDF Part I: rdf:context Part II: rdf:import G1 rdf:imports G2. G rdf:context C. G1 rdf:context C1. G2 rdf:context C2. C may give a context • Importing as citation definition document • How knowledge G2 to G1 transferred from C agent LiDing. can be controlled by relations between C1 and C semantics OWL_Full C2. 6/26/2010 W3C RDF Next Steps Workshop, Stanford 11
  • 12.
    Partial Reuse {s1 p1o1.} rdf:imports {s3 p3 o3.} rdf:context C1. rdf:context C3. {s2 p2 o2.} rdf:imports rdf:context C2. C3 C3 rdfc:compatibleWith C1. C3 rdfc:incompatibleWith C2. 6/26/2010 W3C RDF Next Steps Workshop, Stanford 12
  • 13.
    Reasoning with Contexts Contextrelations Context rules • Compatible • C is compatible with • Incompatible contexts with agent • Extend “rpi:LiDing” • In • C is compatible with contexts that are compatible with C2 Can be specified in OWL,RIF or other languages 6/26/2010 W3C RDF Next Steps Workshop, Stanford 13
  • 14.
    Open Issues • Contextspecification – Provenance model? – Context relation vocabulary? • Formal semantics of contexts • Default contexts 6/26/2010 W3C RDF Next Steps Workshop, Stanford 14