W3C home > Mailing lists > Public > public-rif-wg@w3.org > May 2009

Object-oriented Frames

From: Adrian Paschke <adrian.paschke@gmx.de>
Date: Tue, 12 May 2009 11:03:26 +0200
To: "'Paul Vincent'" <pvincent@tibco.com>
Cc: "'RIF WG'" <public-rif-wg@w3.org>
Message-ID: <00a901c9d2e0$82c585e0$885091a0$@paschke@gmx.de>
>On frames-objects: "... there are significant semantics/functionality
>differences ..." probably deserves some attention.

Right, this is important since many modern rule engines support OO models
and type systems, e.g. EJBs. 

Frames as they are define in BLD are interpretations in the strict
model-theoretic definition. They are defined as first-order structures whose
points are “flat”, that is devoid of further composition. Objects as we have
them in Object-oriented programming such as Java are typically composite
structures involving several different structures whose elements have a
prior definition and certain inner composition. The advantage of composite
structures over their flat model theoretic counterparts is their
hierarchical composition from other familiar objects and the locality of
inner objects preserving object identity. In OO models it is also allowed to
have collections such as lists as value of attributes. For instance, a OO
frame such as o[a->list(b,b)]. In BLD this frame would be o[a->b a->b] which
reduces to o[a->b] according to the semantics of BLD.

-Adrian

-----Ursprüngliche Nachricht-----
Von: public-rif-wg-request@w3.org [mailto:public-rif-wg-request@w3.org] Im
Auftrag von Paul Vincent
Gesendet: Montag, 11. Mai 2009 12:31
An: Bijan Parsia; Sandro Hawke
Cc: RIF WG
Betreff: RE: NOT implementing triple stores
Wichtigkeit: Niedrig

Gentlemen: I don't think anyone doubts that performance of Prolog
systems can be "quite good"... :)

I believe the "misquote" mentioned should in fact be the understatement:
"Gary wants to translate frames to Java objects".

Please interpret this as "the general software industry (as in users of
Java and .NET) will need to translate RIF Frames to the Java/.NET
objects used in their software systems". The motivation for this is
presumably the unwritten end-of-sentance "...for RIF to succeed outside
of the semantic web and academic community". 

I suggest that the above is (likelihood> 99% IMHO) true regardless of
Prolog compiler performance...

Apologies if you *really did mean* to discuss triple store performance
issues for RIF etc, although maybe that subject is premature for the RIF
WG mailing list?

---

On frames-objects: "... there are significant semantics/functionality
differences ..." probably deserves some attention.

Cheers
Paul Vincent 
+1 650 206 2493 / mobile +44 781 493 7229 

> -----Original Message-----
> From: public-rif-wg-request@w3.org
[mailto:public-rif-wg-request@w3.org]
> On Behalf Of Bijan Parsia
> Sent: 10 May 2009 17:03
> To: Sandro Hawke
> Cc: RIF WG
> Subject: Re: implementing triple stores
> 
> On 10 May 2009, at 15:08, Sandro Hawke wrote:
> 
> >> On 9 May 2009, at 13:40, Sandro Hawke wrote:
> >> [snip]
> >>> Right.  The interesting/challening part, I believe, is that Gary
> >>> wants
> >>> to translate frames to Java objects.  Doing so will require some
> >>> cleverness, since there are significant semantics/functionality
> >>> differences, but hopefully will give significant performance
gains.
> >>> Ternary predicates are typically not super fast at matching
(a,b,?).
> >>
> >> Really?
> >
> > I don't understand.  You seem to be disagreeing with my claim,
> 
> I was.
> 
> > but then,
> > below, you seem to be support it.
> 
> My understanding of what I subsequently wrote is that I was supporting
> my disagreement.
> 
> >  I'm trying to claim that a naive
> > system which just uses an ordinary rdf/3 predicate is not likely to
> be
> > able to list all the object for a given subject+predicate very
> quickly
> > (compared to a less-naive implementation.)
> 
> But not due to a fundamental property of the system, which you seemed
> to be implying. Using "isIndex" *is* using the built in predicate
> indexing system.
> 
> >>> (For example, SWI-Prolog uses a specially indexed structure for
RDF
> >>> triples/quads, because normal predicate indexing is too slow.)
> >>
> >> I wouldn't think that's the issue. Predicate indexing is typically
> >> one
> >> of the more optimized part of a Prolog engine (for obvious
> >> reasons). A
> >> uniform ternary predicate *defeats* predicate indexing because
> >> there's
> >> only one predicate. By default, IIRC and it hasn't changed, most
> >> Prolog engines do predicate plus first argument indexing, though
you
> >> can change that, e.g.,:
> >>
>
http://www.lix.polytechnique.fr/~catuscia/teaching/prolog/Manual/
> sec-3
> >> .
> >> 11.html#sec
> >> :3.11.1
> >>
>
http://www.lix.polytechnique.fr/~catuscia/teaching/prolog/Manual/
> sec-3
> >> .
> >> 12.html#index/
> >
> > I can't find a web page describing it, but from what I recall, the
> SWI
> > Prolog RDF store (which is really a quad store) has about 8 hash
> > indexes, convering different combinations of subject, predicate,
> > object,
> > and graph.
> 
> Sure. But you might want to have more hashing with a p(s, o)
> representation too (e.g., if you have lots of queries based on
> objects). I don't see that the reified representation makes a
> fundamental difference.
> 
> [snip]
> > I tend to think having a hash table per object/frame gives good
> enough
> > performance, but it is cool to be able to do various other queries
> > quickly as well.
> 
> My point was that p(s,o) vs. t(s,p,o) in a typical Prolog system is
> pretty much adding an isIndex call for the former. Thus, "naive
> performance"  isn't a reason (in those systems) for preferring one to
> the other. Performance of various queries *is* a reason for preferring
> another representation altogether.
> 
> Cheers,
> Bijan.
Received on Tuesday, 12 May 2009 09:04:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:34:08 GMT