Re: [Virtuoso-users] Problem with dbpedia.vad

2011-07-04 Thread Kingsley Idehen

On 7/4/11 3:54 PM, Mohamed Morsey wrote:

Hi,
I'm trying to install dbpedia.vad to work with our DBpedia instance.
The problem now is that I divide DBpedia data into 2 separate graphs one
for static part called "http://static.dbpedia.org";, and one for dynamic
(live) part called "http://live.dbpedia.org";.
I've created a graph group called "'http://dbpedia.org"; that contains
both of these parts.
I execute command "registry_set ('dbp_graph',  'http://dbpedia.org');"
to register the graph group containing DBpedia data.
But, the vad is not working with graph groups, so when I try to access
it for any DBpedia resource I get an empty page.
When I replace the command with  "registry_set ('dbp_graph',
'http://live.dbpedia.org');" it works but the page display partial results.
My question is how to get that vad working with a graph group.


Don't use graph groups.

Just install the VAD, and then tweak the SPARQL in the re-write rule 
such that it doesn't have FROM  anymore.


Install the faceted browser vad to see what I mean.


--

Regards,

Kingsley Idehen 
President&  CEO
OpenLink Software
Web: http://www.openlinksw.com
Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter/Identi.ca: kidehen








Re: [Virtuoso-users] SPARQL sub-query to return a single result

2011-07-04 Thread Ivan Mikhailov
Hello Sebastian,
If ?app always gets exactly one value, what's the purpose in the
subquery?

If you're not sure that ?app is the only (e.g., if triple ?app
nao:identifier "nepomukindexer" can appear in more than one graph), then
you can write, of course,

select distinct ?r where {
 graph ?g {
 ?r nie:url ?url .
 }  .
 ?g nao:maintainedBy ?app .
 filter (?app = (select ?a where { ?a nao:identifier "nepomukindexer" }))
}

or even shorter

select distinct ?r where { 
graph ?g {
 ?r nie:url ?url .
 }  .
 ?g nao:maintainedBy `(select ?a where { ?a nao:identifier "nepomukindexer" 
})` .
}


Best Regards,

Ivan Mikhailov
OpenLink Software
http://virtuoso.openlinksw.com


On Mon, 2011-07-04 at 14:42 +0200, Sebastian Trüg wrote:
> Hi list,
> 
> in a query like this:
> 
> select distinct ?r where {
>  graph ?g {
>  ?r nie:url ?url .
>  }  .
>  ?g nao:maintainedBy ?app .
>  ?app nao:identifier "nepomukindexer" .
> }
> 
> I would like to use a sub-query to replace ?app since there is only
> exactly one resource which has this identifier. The simplest possibility
> is to use two queries and cache the resource URI of the app in the
> client. But I figure there could be a fancy sub-query which allowed me
> to query the app in-place.
> 
> Is that possible?
> 
> Cheers,
> Sebastian
> 
> --
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security 
> threats, fraudulent activity, and more. Splunk takes this data and makes 
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users





[Virtuoso-users] Problem with dbpedia.vad

2011-07-04 Thread Mohamed Morsey

Hi,
I'm trying to install dbpedia.vad to work with our DBpedia instance.
The problem now is that I divide DBpedia data into 2 separate graphs one 
for static part called "http://static.dbpedia.org";, and one for dynamic 
(live) part called "http://live.dbpedia.org";.
I've created a graph group called "'http://dbpedia.org"; that contains 
both of these parts.
I execute command "registry_set ('dbp_graph',  'http://dbpedia.org');" 
to register the graph group containing DBpedia data.
But, the vad is not working with graph groups, so when I try to access 
it for any DBpedia resource I get an empty page.
When I replace the command with  "registry_set ('dbp_graph',  
'http://live.dbpedia.org');" it works but the page display partial results.

My question is how to get that vad working with a graph group.

--
Kind Regards
Mohamed Morsey
Department of Computer Science
University of Leipzig




[Virtuoso-users] SPARQL sub-query to return a single result

2011-07-04 Thread Sebastian Trüg
Hi list,

in a query like this:

select distinct ?r where {
 graph ?g {
 ?r nie:url ?url .
 }  .
 ?g nao:maintainedBy ?app .
 ?app nao:identifier "nepomukindexer" .
}

I would like to use a sub-query to replace ?app since there is only
exactly one resource which has this identifier. The simplest possibility
is to use two queries and cache the resource URI of the app in the
client. But I figure there could be a fancy sub-query which allowed me
to query the app in-place.

Is that possible?

Cheers,
Sebastian



Re: [Virtuoso-users] use of "grab-" pragmas

2011-07-04 Thread Таня Тарасова
Hi Hugh,

yes, I can send my files to you. There are three of them, less than 150 KB in 
total. How can I send them to you? I'm sorry it's the first time I'm using a 
mailing list and I'm not sure if it is ok to attach my files to this 
broadcasting email.

Thank you,
Tatiana




Re: [Virtuoso-users] Virtuoso RDFXX Error Unknown language

2011-07-04 Thread Таня Тарасова
Hello Hugh,

yes, you were right the needed id was missing from the DB.DBA.RDF_LANGUAGE 
table. I started an empty database and that helped, thank you very much for 
your assistance!

Would be good to know why it could happen just to avoid such errors in the 
future, starting a new database always could be time consuming :(

Thank you,
Tatiana