Re: [Virtuoso-users] http redirect according to owl:sameAs

2013-09-19 Thread Julien Cojan
Thank you for your reply Hugh, I was actually looking first on URL rewriting through the definition of rules. But I didn't see how to use sql functions within these rules. I cannot define a generic redirect rule with the use of regex. Here the redirection from http://fr.dbpedia.org/resourceByI

[Virtuoso-users] Property paths with optional bug

2013-09-19 Thread Dimitris Kontokostas
Hi, I think I found a bug with property paths and optional statements in VOS7 (DBpedia sparql endpoint) See the following queries. Q1 runs fine but Q2 doesn't. If I remove the '+' from Q2 (Q3) then the query returns fine again. So there seems to be a bug with multiple optional statements and proper

[Virtuoso-users] use of rdf, rdfs & owl in virtuoso

2013-09-19 Thread Dimitris Kontokostas
Hi, I would like to get basic information for all the properties of an ontology like this select * { ?class rdfs:subClassOf+ rdf:Property . OPTIONAL { ?class rdfs:subPropertyOf ?subproperty } . OPTIONAL { ?class rdfs:domain ?domain } . OPTIONAL { ?class rdfs:range ?range } . } It looks li

[Virtuoso-users] Problem with SPARQL query

2013-09-19 Thread Julien Plu
Hi, I have a problem with a SPARQL, I try to find a valid query for SPARQL 1.0 through Virtuoso 06.01.3127 for doing a query like this : INSERT { GRAPH { ?s count(?x) }} where { GRAPH { ?x ?p ?s . ?s a

Re: [Virtuoso-users] Problem with SPARQL query

2013-09-19 Thread Julien Plu
Thanks for your quick reply :-) But when I use an aggregates functions inside the INSERT clause Virtuoso send me an error saying it was a syntax error. I would like using this count result inside the INSERT not inside a SELECT. Best. Julien. 2013/9/19 Jim McCusker > On virtuoso you need to

Re: [Virtuoso-users] Problem with SPARQL query

2013-09-19 Thread Jim McCusker
On virtuoso you need to use concat to count tuples of variables: select count(concat(?s,"|", ?o)) as ?indegree where { ?s ?o . } will return 81 on http://dbpedia.org/sparql On Thu, Sep 19, 2013 at 11:51 AM, Julien Plu < julien@redaction-developpez.com> wr

[Virtuoso-users] Error installing ODS VAD Packages

2013-09-19 Thread Javier Franco
Hello, I have installed develop/6 branch from Virtuoso in my Ubuntu machine. Everything works fine apparently, but when I try to install ODS Framework appears to me the following message error: 0 Errors detected 0 Installation of "ODS Framework" was unsuccessful. The installation of

Re: [Virtuoso-users] use of rdf, rdfs & owl in virtuoso

2013-09-19 Thread Kingsley Idehen
On 9/19/13 8:27 AM, Dimitris Kontokostas wrote: Hi, I would like to get basic information for all the properties of an ontology like this select * { ?class rdfs:subClassOf+ rdf:Property . OPTIONAL { ?class rdfs:subPropertyOf ?subproperty } . OPTIONAL { ?class rdfs:domain ?domain } . OP

Re: [Virtuoso-users] Virtuoso definition of calendar week

2013-09-19 Thread Quentin
In the meantime, this function will generate week numbers consistent with ISO8601. create procedure DB.DBA.ISOweek( IN targetDate datetime ) RETURNS integer { declare week, ISOweekdaynum integer; -- ISO8601 is Monday based, Virtuoso is Sunday based ISOweekdaynum := dayofweek(targetDate)-1; -- so

Re: [Virtuoso-users] Error installing ODS VAD Packages

2013-09-19 Thread Hugh Williams
Hi Javier, If you check in the virtuoos.log file is there any further information as to the cause of the error ? Also, have you tried building from the stable/6 archive to see if this error also occurs there ? Best Regards Hugh Williams Professional Services OpenLink Software, Inc. //