18.10.2014 Views

An inference engine for RDF - Agfa

An inference engine for RDF - Agfa

An inference engine for RDF - Agfa

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>An</strong> <strong>inference</strong> <strong>engine</strong> <strong>for</strong> <strong>RDF</strong><br />

2. a mapping IEXT from IR into the powerset of IR X (IR union LV) i.e. the set<br />

of sets of pairs with x in IR and y in IR or LV. This mapping defines the<br />

properties of the <strong>RDF</strong> triples.<br />

3. a mapping IS from V into IR<br />

IEXT(x) is a set of pairs which identify the arguments <strong>for</strong> which the property is<br />

true, i.e. a binary relational extension, called the extension of x. [<strong>RDF</strong>MS]<br />

In<strong>for</strong>mally this means that every URI represents a resource which might be a<br />

page on the internet but not necessarily: it might as well be a physical object. A<br />

property is a relation; this relation is defined by an extension mapping from the<br />

property into a set. This set contains pairs where the first element of a pair<br />

represents the subject of a triple and the second element of a pair represent the<br />

object of a triple. With this system of extension mapping the property can be<br />

part of its own extension without causing paradoxes. This is explained in<br />

[<strong>RDF</strong>MS].<br />

2.7.3. Examples<br />

Take the triple:<br />

:bird :color :yellow.<br />

In the set of URI’ s there will be things like: :bird, :mammal, :color, :weight,<br />

:yellow, :blue etc...These are part of the vocabulary V.<br />

In the set IR of resources will be: #bird, #color etc.. i.e. resources on the internet<br />

or elsewhere. #bird might represent e.g. the set of all birds.<br />

There then is a mapping IEXT from #color (resources are abbreviated) to the set<br />

{(#bird,#blue),(#bird,#yellow),(#sun,#yellow),...}<br />

and the mapping IS from V to IR:<br />

:bird Æ #bird, :color Æ #color, ...<br />

The URI refers to a page on the internet where the domain IR is defined (and<br />

thus the semantic interpretation of the URI).<br />

2.8. <strong>RDF</strong>Prolog<br />

2.8.1. Introduction<br />

I have defined a language called <strong>RDF</strong>Prolog (by the Haskell module<br />

<strong>RDF</strong>Prolog.hs: <strong>for</strong> a sample see 5.17. Applications). This language is a concrete<br />

syntax with <strong>RDF</strong> semantics. It <strong>for</strong>ms a subset of <strong>RDF</strong> and the syntax is less<br />

30

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!