<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>ISWC</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>An Extensible Approach for Query-Driven Multimodal Knowledge Graph Completion</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Marcelo Machado</string-name>
          <email>mmachado@ibm.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Guilherme Lima</string-name>
          <email>guilherme.lima@ibm.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Elton Soares</string-name>
          <email>eltons@ibm.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vítor Nascimento</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Rafael Brandao</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marcio Moreno</string-name>
          <email>mmoreno@br.ibm.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>IBM Research</institution>
          ,
          <addr-line>Rio de Janeiro - RJ</addr-line>
          ,
          <country country="BR">Brazil</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Universidade Federal Fluminense</institution>
          ,
          <addr-line>Rio de Janeiro - RJ</addr-line>
          ,
          <country country="BR">Brazil</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <volume>21</volume>
      <fpage>23</fpage>
      <lpage>27</lpage>
      <abstract>
        <p>The knowledge graph completion task has gained a lot of attention in recent years, especially with the use of machine learning (ML). However, most of the work has focused on the structure of the graph while ignoring the data it describes. In this demo, we present an approach that does the opposite: it leverages the multimodal data described by a knowledge graph for its completion. We use IBM's Hyperlinked Knowledge Graph framework, which allows nodes of the graph to carry arbitrary data content. This content is processed at query time by user-defined functions which are triggered by rules and whose output is used to decide the materialization of new links, completing the original graph. To demonstrate the approach, we use ML models to classify images of paintings and decide the materialization of links describing their semantics. DEMO</p>
      </abstract>
      <kwd-group>
        <kwd>Completion</kwd>
        <kwd>Hyperknowledge</kwd>
        <kwd>Hyperlinked Knowledge Graph</kwd>
        <kwd>Knowledge Graph Completion</kwd>
        <kwd>Multimodal data</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Knowledge Graphs (KGs) are widely used to enrich applications with factual knowledge about
objects in the world. In traditional KG systems, only symbolic content (e.g., concepts, instances)
is represented, while non-symbolic content (e.g., images, videos, scripts) and its integration
with the knowledge stored in the KG have to be handled by external systems. In contrast, in
Multimodal KGs (MMKGs) [
        <xref ref-type="bibr" rid="ref1 ref2">1, 2</xref>
        ], the relationships between symbolic and non-symbolic content
are represented natively, enabling richer knowledge discovery and consumption.
      </p>
      <p>
        Because of their generality and scope, real-world KGs and MMKGs are large and often
incomplete [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ]. This means that important nodes or links might be missing; absences which
can decrease the accuracy of queries and inhibit important insights from applications. The KG
completion task has emerged to address this problem in a scalable manner [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>
        Much of the research in KG completion has focused on predicting what is missing based solely
on the structure of the graph, usually represented in the form of low dimensional spaces (i.e.,
embedding space) [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], while fewer works have proposed to incorporate both multimodal data
and graph structure embeddings into machine learning (ML) models [
        <xref ref-type="bibr" rid="ref2 ref4">2, 4</xref>
        ]. Also, completion
techniques typically apply inference rules in batches [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] or ML models to the whole graph [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
      </p>
      <p>Our proposal difers from previous approaches in two key aspects: (1) It relies on an extensible
rule-based mechanism that completes the graph with new links considering the non-symbolic
and symbolic data. (2) It considers human expertise in the loop since the inference of new links
is triggered by the execution of user-defined queries. Thus, our work provides an interactive
and on-demand MMKG completion solution that can be easily extended by the user.</p>
      <p>
        We instantiate our proposal in IBM’s Hyperlinked Knowledge Graph (HKG) [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], an MMKG
framework with support for rules, nodes containing executable code, and the capability of
representing n-ary relationships among symbolic and non-symbolic data. The figures and
videos of this demonstration were made using the Knowledge Explorer System (KES) [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Proposed Approach</title>
      <p>The HKG is composed of traditional graph components such as nodes (i.e., circles in Fig. 1)
and links but it also ofers specialized components that are particularly interesting for our
proposal. We leverage two such specialized components to support extensible query-driven
MMKG completion: possibility links and possibility resolvers. A possibility link represents an
unasserted link, i.e., a yet-to-be-fulfilled possibility in the KG, which is ignored during regular
query evaluation. For example, a possibility link can be used to represent the possibility that a
painting  , initially without authorship, was painted by Salvador Dalí. Meanwhile, a possibility
resolver specifies how the assertion of a possibility link should be resolved. For example, we can
use a possibility resolver to indicate how to decide whether  was painted by Salvador Dalí. The
possibility resolver is represented by an n-ary link whose components act as parameters to solve
a given possibility. Its main component is an executable node, i.e., nodes containing a wrapper
code that invokes a function to be executed to perform a task on the graph. These nodes can
evaluate whether possibility links should be materialized as asserted links.</p>
      <p>To illustrate the usage of these components in our approach, consider Figure 1. In this
example, we have a set of images of paintings, an ontology of painters and painting styles, and a
set of executable nodes containing functions that calls ML models to classify images by painter
or painting style. Here we want to be able to answer queries such as “Give me all impressionist
paintings” or “List all paintings created by a Spanish painter”.</p>
      <p>To answer these queries by leveraging the multimodal knowledge available in this scenario
(ontology, images, and ML models), we represent the images as content nodes (i.e., nodes that
stand for non-symbolic content) and link them, using possibility links, to instances of concepts
of the ontology, such as painting, painting style, and painters. We define executable nodes to
invoke an ML model passing the non-symbolic data of a content node as a parameter (e.g., an
image).1 Finally, we define possibility resolvers to evaluate the possibility of materializing the
possibility links by executing the adequate ML model for each relation defined in the ontology
(e.g., ‘hasCreator’ corresponds to the painter of an image, therefore the ML model that identifies
the painter would be used to evaluate possibility links of this relation).</p>
      <p>A possibility resolver can be formally defined as a statement of the form R( , , ,  )
establishing that entity  is a procedure that decides whether an instance or subclass of  is related via
predicate  to an instance or subclass of  . The actual representation of this statement depends
on the KG system being used. 2 In HKG, this is represented as a 4-ary relationship among  ,  ,
 , and  , as illustrated in Figure 1. Thus, a rule of the form
() ∧  ( ) ∧</p>
      <p>R( , , ,  ) →</p>
      <p>P (, ,  )
is used to materialize (to convert from a possibility link to a regular link) the possibility links
from the declared possibility resolvers. This rule states that if  is an instance or subclass of  , 
is an instance or subclass of  , and  resolves whether  holds from an  to a  , then there is a
possibility link from  to  with label (predicate)  which can be resolved by  .</p>
      <p>During query evaluation, the links inferred by the above rule are used to decide whether a
given relationship exists in the graph. For instance, suppose that the query evaluator needs to
decide whether (,  ) , that is, whether there is a link with predicate  from  to  . If the link
does not exist in the graph and was not inferred, then the result is false. However, if the link
exists or was inferred there are two cases. Either the link is a regular link (not a possibility)
and in this case, the result is true. Or the link is a possibility link in which case the evaluator
calls the associated possibility resolver  with arguments  ,  , and  and the result of this call is
the result of the test. If  is deterministic (gives the same result for the same input) then the
evaluator can save the trouble of going through this process again by materializing the link.</p>
      <p>
        The entire process starts from a user-determined query execution – hence, human-in-the-loop
and query-driven. HKG provides a query language, the Hyperknowledge Query Language
(HyQL) [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], that enables the retrieval of the multimodal information described in the graph.
For example, a simple HyQL query to retrieve paintings created by Salvador Dali would be:
select Painting where Painting hasCreator SalvadorDali3
In this case, the relationship (,  ) was instantiated in the ‘where’ clause, where p = hasCreator,
x = Painting and y = SalvadorDali. If this possibility exists and it has not yet been materialized,
then all the aforementioned process is triggered. The output of this process is the query response
together with the completion of the graph in case of positive responses of the functions.
1We are using ML models here, but any user-defined function could be used to handle multimodal content.
2In RDF, this would have to be encoded as a set of triples using some form of reification. If OWL is used and if  and
 are the domain and range of  then an assertion linking  to  might be suficient.
3The entities that appear in natural language in the query, such as SalvadorDali, can be aliases for URIs, for example,
from Wikidata.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Demonstration</title>
      <p>The goal of this demo is to show HKG features that support extensible query-driven MMKG
completion through KES and HyQL. The demo uses the Kaggle’s Best Artworks of All Time
dataset4, two ML models trained over this dataset, and a simple ontology containing painters
(Salvador Dalí, Alfred Sisley, etc.), nationalities (Spain, UK, etc.), art movements (Surrealism,
Impressionism, Expressionism, etc.), and themes (landscape, portrait, etc.). The images, ML
models, and ontology are used to demonstrate how the HKG can be used to infer links from
multimodal data at query time while enabling rich semantic queries.</p>
      <p>Video 1: https://ibm.box.com/v/iswc2022keg1 – MMKG Representation with HKG and KES.
Video 2: https://ibm.box.com/v/iswc2022keg2 – MMKG Completion with HyQL and KES.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Garcia-Duran</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Niepert</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Onoro-Rubio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. S.</given-names>
            <surname>Rosenblum</surname>
          </string-name>
          ,
          <article-title>Mmkg: multi-modal knowledge graphs</article-title>
          ,
          <source>in: European Semantic Web Conference</source>
          , Springer,
          <year>2019</year>
          , pp.
          <fpage>459</fpage>
          -
          <lpage>474</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>S.</given-names>
            <surname>Liang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Zhu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , J. Shao,
          <article-title>Hyper-node relational graph attention network for multi-modal knowledge graph completion</article-title>
          ,
          <source>ACM Transactions on Multimedia Computing</source>
          , Communications, and
          <string-name>
            <surname>Applications</surname>
          </string-name>
          (TOMM) (
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>B.</given-names>
            <surname>Shi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Weninger</surname>
          </string-name>
          ,
          <article-title>Open-world knowledge graph completion</article-title>
          ,
          <source>in: Proceedings of the AAAI Conference on Artificial Intelligence</source>
          , volume
          <volume>32</volume>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>X.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Deng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Tan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Huang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Si</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <article-title>Hybrid transformer with multi-level fusion for multimodal knowledge graph completion</article-title>
          ,
          <source>CoRR abs/2205</source>
          .02357 (
          <year>2022</year>
          ).
          <article-title>doi:1 0 . 4 8 5 5 0 / a r X i v . 2 2 0 5 . 0 2 3 5 7 . a r X i v : 2 2 0 5 . 0 2 3 5 7</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Q.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Mao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Guo</surname>
          </string-name>
          ,
          <article-title>Knowledge graph embedding: A survey of approaches and applications</article-title>
          ,
          <source>IEEE Transactions on Knowledge and Data Engineering</source>
          <volume>29</volume>
          (
          <year>2017</year>
          )
          <fpage>2724</fpage>
          -
          <lpage>2743</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>Nickel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Murphy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Tresp</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Gabrilovich</surname>
          </string-name>
          ,
          <article-title>A review of relational machine learning for knowledge graphs</article-title>
          ,
          <source>Proceedings of the IEEE</source>
          <volume>104</volume>
          (
          <year>2015</year>
          )
          <fpage>11</fpage>
          -
          <lpage>33</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Q.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Guo</surname>
          </string-name>
          ,
          <article-title>Knowledge base completion using embeddings and rules</article-title>
          , in: Twenty-Fourth
          <source>International Joint Conference on Artificial Intelligence</source>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Q.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Ji</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Hao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Cao</surname>
          </string-name>
          ,
          <article-title>Grl: Knowledge graph completion with gan-based reinforcement learning</article-title>
          ,
          <source>Knowledge-Based Systems</source>
          <volume>209</volume>
          (
          <year>2020</year>
          )
          <fpage>106421</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M. F.</given-names>
            <surname>Moreno</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Brandao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Cerqueira</surname>
          </string-name>
          ,
          <article-title>Extending hypermedia conceptual models to support hyperknowledge specifications</article-title>
          ,
          <source>Int. J. Semant. Comput</source>
          .
          <volume>11</volume>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>M. F.</given-names>
            <surname>Moreno</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. C.</given-names>
            <surname>Santos</surname>
          </string-name>
          ,
          <string-name>
            <surname>W. H. dos Santos</surname>
          </string-name>
          , R. Cerqueira,
          <article-title>Kes: The knowledge explorer system</article-title>
          ., in: International Semantic Web Conference (P&amp;D/Industry/BlueSky),
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>M. F.</given-names>
            <surname>Moreno</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Costa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Costa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Nascimento</surname>
          </string-name>
          ,
          <string-name>
            <surname>E. F. de Souza Soares</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Machado</surname>
          </string-name>
          ,
          <article-title>Evaluating semantic queries for dataset engineering on the hyperknowledge platform</article-title>
          ., in: ISWC (Posters/Demos/Industry),
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>