Re: [Virtuoso-users] Randomness in a SPARQL results

2010-01-21 Thread Marc-Alexandre Nolin
Thanks everybody, I've managed to accomplish exactly what I wanted using the query you provided me and including it into another select ?go count(?go) where { {select distinct ?protein where { ?protein rdf:type . } order by order by asc (bif:rnd(200

Re: [Virtuoso-users] Randomness in a SPARQL results

2010-01-21 Thread Ivan Mikhailov
Hello Marc-Alexandre, The proper trick is select distinct ?s where { ?s rdf:type . } order by order by asc (bif:rnd(20, ?s)) limit 100 but this is a costly thing because it should find all proteins during the run. If you need random sampling on a regular

Re: [Virtuoso-users] Randomness in a SPARQL results

2010-01-21 Thread Marc-Alexandre Nolin
Thanks a lot, your query do give me a random set, but It don't work exactly like I would like to. I will reformulate my Sparql example: select ?protein ?go where { ?protein rdf:type . bif:random(?protein, 100) . ?protein ?go . } I don

Re: [Virtuoso-users] Randomness in a SPARQL results

2010-01-21 Thread Kingsley Idehen
Marc-Alexandre Nolin wrote: Hello, When I do the following query: select distinct ?s where { ?s rdf:type . } limit 100 Lets say I have 2 objects of type protein in the triplestore. I will receive a results containing 100 rows of 100 distinct proteins. If I run

Re: [Virtuoso-users] Randomness in a SPARQL results

2010-01-21 Thread Nathan
Marc-Alexandre Nolin wrote: > Hello, > > When I do the following query: > > select distinct > ?s > where > { > ?s rdf:type . > } > limit 100 > > Lets say I have 2 objects of type protein in the triplestore. I > will receive a results containing 100 rows of 100 di

[Virtuoso-users] Randomness in a SPARQL results

2010-01-21 Thread Marc-Alexandre Nolin
Hello, When I do the following query: select distinct ?s where { ?s rdf:type . } limit 100 Lets say I have 2 objects of type protein in the triplestore. I will receive a results containing 100 rows of 100 distinct proteins. If I run the same query again, I will r

Re: [Virtuoso-users] Virtuoso & OWL 2

2010-01-21 Thread Kingsley Idehen
Nathan wrote: Just wondering about Virtuoso's feature-set as an OWL 2 reasoner (other than the info at http://docs.openlinksw.com/virtuoso/rdfsparqlrule.html); specifically I'm wondering about any support for datatype validation / property restrictions. In general language, if my ontology states

Re: [Virtuoso-users] Problem with virtuoso procedure in a sparql query.

2010-01-21 Thread Ivan Mikhailov
Hello Aldo, > OK, and what about: > [10]* DefaultGraphClause ::= SourceSelector SpongeOptionList? > [11]* NamedGraphClause ::= 'NAMED' SourceSelector SpongeOptionList? > ? That costs much more than an extension for LIMIT/OFFSET (that is implemented already, right today). The reaso

Re: [Virtuoso-users] Does Virtuoso HTTP Proxy play along with HTTP Delete ( the Verb )

2010-01-21 Thread Ricardo Z
Related to HTTP methods. There is any way when you publish a procedure through http tell the allow http method POST GET UPDATE DELETE lik?e: DB.DBA.VHOST_DEFINE ( lpath=>'/http_procedure', method=>'GET' ppath => '/!get_procedure/', is_dav => 1, vsp_user => 'dba', opts => ve

Re: [Virtuoso-users] Problem with virtuoso procedure in a sparql query.

2010-01-21 Thread Aldo Bucchi
Hi, On Thu, Jan 21, 2010 at 11:05 AM, Ricardo Z wrote: > Hi Ivan. > > Thanks for the quick response. > So the problem is related to the sparql expresions parser. > > I think the change of the rule of this parser it should be consistent with > the definition of the others elements on the sparql ex

Re: [Virtuoso-users] Problem with virtuoso procedure in a sparql query.

2010-01-21 Thread Ricardo Z
Hi Ivan. Thanks for the quick response. So the problem is related to the sparql expresions parser. I think the change of the rule of this parser it should be consistent with the definition of the others elements on the sparql expresion in order to obtain a coherent behaviour. For example, I thin

Re: [Virtuoso-users] SPARQL query problem: 22023 Error SR008

2010-01-21 Thread Hugh Williams
Hi Alison, Can you please provide details of the actual sample query parts that work and the the query(s) that fail when combined ? Also, what SPARQL endpoint are you querying is this a public Virtuoso hosted endpoint or your own local instance ? Please provide details of the service and if it

[Virtuoso-users] Virtuoso & OWL 2

2010-01-21 Thread Nathan
Just wondering about Virtuoso's feature-set as an OWL 2 reasoner (other than the info at http://docs.openlinksw.com/virtuoso/rdfsparqlrule.html); specifically I'm wondering about any support for datatype validation / property restrictions. In general language, if my ontology states that a property

Re: [Virtuoso-users] Problem with virtuoso procedure in a sparql query.

2010-01-21 Thread Ivan Mikhailov
Hello Ricardo, > for(sparql select > ... > order by desc(?relevance) limit 50 offset ?:offsetValue > ) do { > ... > } > ... > > Its warn. > syntax error at '?:offsetValue' at ')' before 'do' In original SPARQL the syntax was [19]OffsetClause ::= 'OFFSET' INTEGER and I did not

Re: [Virtuoso-users] FYI: Dbpedia-Live Reports "Could Not Connect to Host"

2010-01-21 Thread Stephen Hatton
Patrick, On Wed, Jan 20, 2010 at 9:36 PM, Patrick van Kleef wrote: > > Apologies for the inconvenience. > > We are in the process of doing some upgrades to this experimental system > and one of the nodes was not restarted automatically. > > > I restarted cluster node and checked the database is o

Re: [Virtuoso-users] FYI: Dbpedia-Live Reports "Could Not Connect to Host"

2010-01-21 Thread Patrick van Kleef
Hi Stephen, > I noticed all of the directly accessed resources at > dbpedia-live.openlinksw.com weren't > working. > > Here's what it's been saying for at least several resources: > > *Address:* > http://dbpedia-live.openlinksw.com/page/Dauphin_commun_%C3%A0_

[Virtuoso-users] FYI: Dbpedia-Live Reports "Could Not Connect to Host"

2010-01-21 Thread Stephen Hatton
Hi, I noticed all of the directly accessed resources at dbpedia-live.openlinksw.com weren't working. Here's what it's been saying for at least several resources: *Address:* http://dbpedia-live.openlinksw.com/page/Dauphin_commun_%C3%A0_bec_court *Error 08C01* CL...: Cluster could not connect t