Hello Ivan,

maybe i got a wrong association of the word inference.

In joseki/Jena i can get the values0 to value5 with the following Query:

SELECT * FROM <http://localhost:8890/DAV/test> WHERE {?s rdfs:subClassOf 
<http://localhost/values#Value0>}

Is this possible with Virtuoso?

How is such resolving of subclasses called? Inference, Reasoning, Indexing?


Best Regards.
S.Matovic


-------- Original-Nachricht --------
> Datum: Thu, 18 Sep 2008 00:19:07 +0700
> Von: Ivan Mikhailov <imikhai...@openlinksw.com>
> An: "S. Matovic" <s.mato...@gmx.net>
> CC: virtuoso-users@lists.sourceforge.net
> Betreff: Re: [Virtuoso-users] Inference in Virtuoso 5.07 Sparql DAV   Web     
> Service?

> Hello Srdja,
> 
> First of all, I guess that
> rdfs_rule_set ('test, 'http://localhost:8890/DAV/test');
> is cited incorrectly in the mail and it was actually
> rdfs_rule_set ('test', 'http://localhost:8890/DAV/test');
> 
> Second issues is that subClassOf inference has sense only for rdf:type
> predicate, like in the following example:
> 
> SQL> sparql insert in <g> { <s> a <http://example/values#Value2> };
> callret-0
> VARCHAR
> _______________________________________________________________________________
> 
> Insert into <g>, 1 triples -- done
> 
> 1 Rows. -- 6 msec.
> SQL> sparql define input:inference "test8" SELECT * FROM <g> WHERE {?s
> a ?t};
> s        t
> VARCHAR  VARCHAR
> _______________________________________________________________________________
> 
> s        http://example/values#Value2
> s        http://example/values#Value1
> s        http://example/values#Value0
> 
> 3 Rows. -- 5 msec.
> 
> 
> Best Regards,
> 
> Ivan Mikhailov,
> OpenLink Software,
> http://virtuoso.openlinksw.com
> 
> On Sat, 2008-09-06 at 19:24 +0200, S. Matovic wrote:
> > Hello Ivan,
> > 
> > thanks for your answer.
> > 
> > I managed to get rdfs:subPropertyOf to work via a rdfs_sule_set but
> rdfs:subClasOf doesnt do.
> > 
> > I used the conductor to create a folder and import this dataset:
> > 
> > <rdf:RDF
> >     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
> >     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";> 
> > 
> >   <rdfs:Class rdf:about="http://localhost/values#Value0";>
> >   </rdfs:Class>
> > 
> >   <rdfs:Class rdf:about="http://localhost/values#Value1";>
> >     <rdfs:subClassOf rdf:resource="http://localhost/values#Value0"/>
> >   </rdfs:Class>
> > 
> >   <rdfs:Class rdf:about="http://localhost/values#Value2";>
> >     <rdfs:subClassOf rdf:resource="http://localhost/values#Value1"/>
> >   </rdfs:Class>
> > 
> >   <rdfs:Class rdf:about="http://localhost/values#Value3";>
> >     <rdfs:subClassOf rdf:resource="http://localhost/values#Value2"/>
> >   </rdfs:Class>
> > 
> >   <rdfs:Class rdf:about="http://localhost/values#Value4";>
> >     <rdfs:subClassOf rdf:resource="http://localhost/values#Value3"/>
> >   </rdfs:Class>
> > 
> >   <rdfs:Class rdf:about="http://localhost/values#Value5";>
> >     <rdfs:subClassOf rdf:resource="http://localhost/values#Value4"/>
> >   </rdfs:Class>
> > 
> > </rdf:RDF>
> > 
> > Than the interactive sql console:
> > 
> > rdfs_rule_set ('test, 'http://localhost:8890/DAV/test');
> > 
> > sparql define input:inference "test" 
> > PREFIX      rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> > SELECT * FROM <http://localhost:8890/DAV/test> WHERE {?s rdfs:subClassOf
> <http://localhost/values#Value0>}
> > 
> > 
> > Result is only  http://localhost/values#Value1 instead of Value1-5.
> > 
> > 
> > Any hint what i did wrong?
> > 
> > Best Regards,
> > Srdja Matovic
> > 
> > 
> > -------- Original-Nachricht --------
> > > Datum: Wed, 30 Jul 2008 00:58:26 +0700
> > > Von: Ivan Mikhailov <imikhai...@openlinksw.com>
> > > An: s.mato...@gmx.net
> > > CC: virtuoso-users@lists.sourceforge.net
> > > Betreff: Re: [Virtuoso-users] Inference in Virtuoso 5.07 Sparql DAV
> Web   Service?
> > 
> > > Hello Srdja,
> > > 
> > > You can place any 'define param value' configuration options in
> > > SH_DEFINES field of appropriate row of DB.DBA.SYS_SPARQL_HOST . In
> that
> > > table, SH_HOST is a mask for hostname so the row will be used for any
> > > HTTP request such that some name from 'Host:' HTTP header line is LIKE
> > > SH_HOST, SH_GRAPH_URI is "default default graph" that is used if the
> > > request does not specify default graph, SH_DEFINES is a string of
> > > options that are inserted at the very beginning of any query before
> > > execution.
> > > 
> > > Best Regards,
> > > 
> > > Ivan Mikhailov,
> > > OpenLink Software.
> > > 
> > > On Tue, 2008-07-29 at 13:26 +0200, s.mato...@gmx.net wrote:
> > > > Heyho,
> > > > 
> > > > i try to use Virtuosos preconfigured DAV Sparql Interface with
> > > rdfs:subClassOf and rdfs:subPropertyOf Inference but i found only
> documentation
> > > about defining rulesets and using them in sparql queries.
> > > > 
> > > > Is it possible to configure a SPARQL/SPARUL WebService with
> Inference?
> > > > 
> > > > Thanks and Regards,
> > > > Srdja Matovic
> > 

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

Reply via email to