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 <[email protected]>
> An: [email protected]
> CC: [email protected]
> 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, [email protected] 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
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx