Re: Want to run SPARQL Query with Hadoop Map Reduce Framework

2012-06-26 Thread Paolo Castagna
Md. Mizanur Rahoman wrote: > Hi Paolo, > > Thanks for your reply. > > Right now I am only using DBPedia, Geoname and NYTimes for LOD cloud. And > later on I want to extend my dataset. Ok, so it's big, but not huge! ;-) If you have enough RAM you can do everything on a single machine. > By the w

Re: Correct SPARQL query for all information for particular Individual

2012-06-26 Thread Lewis John Mcgibbney
Hi Andy, On Tue, Jun 26, 2012 at 6:35 PM, Andy Seaborne wrote: > I don't "do" RDF/XML :-) but this may achieve what you want. That makes two of us then!!! > > PREFIX > DESCRIBE ?x { ?x IFC2X3_subset:hasName IFC2X3_subset:IfcBeam } > > The default for DESCRIBE is the bNode closure. > > If y

Re: Correct SPARQL query for all information for particular Individual

2012-06-26 Thread Andy Seaborne
I don't "do" RDF/XML :-) but this may achieve what you want. PREFIX DESCRIBE ?x { ?x IFC2X3_subset:hasName IFC2X3_subset:IfcBeam } The default for DESCRIBE is the bNode closure. If you know the structure, then you can use CONSTRUCT or extract into variables with SELECT. Andy On

Correct SPARQL query for all information for particular Individual

2012-06-26 Thread Lewis John Mcgibbney
Hi Everyone, Having produced a subset of a rather large ontology I'm now attempting to write a SPARQL query to retrieve all attributes of any given individuals if the name matches. An example of one of my NamedIndividuals is below

Re: memory issues using TDB from servlet

2012-06-26 Thread Stephan Zednik
On Jun 26, 2012, at 4:24 AM, Andy Seaborne wrote: > a few questions and then a a suggestion: > > How much physical RAM does the machine have? 4 GB > Which version of the Jena software is this? 0.9.0-incubating (set via Maven) > Is this running on MS Windows? Mac OSX 10.7.4 > > If you are

Re: Want to run SPARQL Query with Hadoop Map Reduce Framework

2012-06-26 Thread Alex Miller
> Right now I am only using DBPedia, Geoname and NYTimes for LOD cloud. And > later on I want to extend my dataset. > > By the way, yes, I can use sparql directly to collect my required > statistics but my assumption is using Hadoop could give me some boosting in > collecting those stat. > > Sincer

Re: Queries with Multiple Aggregates in Select

2012-06-26 Thread Andy Seaborne
On 25/06/12 23:01, Stephen Allen wrote: All, I have a question about what the expected results are of a query with multiple aggregates when there are no matching solutions, specifically if one of them is COUNT. Take the following query for example: PREFIX books: PR

Re: memory issues using TDB from servlet

2012-06-26 Thread Andy Seaborne
a few questions and then a a suggestion: How much physical RAM does the machine have? Which version of the Jena software is this? Is this running on MS Windows? If you are on 64 bit hardware, then TDB uses out-of-heap memory as well as heap memory. But what I am most suspicious of is Dataset

Re: How to convert assign URL to blank node?

2012-06-26 Thread Damian Steer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26/06/12 09:20, Andy Seaborne wrote: > On 26/06/12 01:30, franswors...@googlemail.com wrote: >> How can I assign an URI to a blank node? The Resource class only >> provides getURI() or getId() methods, but the URI can't be set. >> Do I have to cre

Re: How to convert assign URL to blank node?

2012-06-26 Thread Damian Steer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26/06/12 09:20, Andy Seaborne wrote: You can use ResourceUtils.renameResource(oldResource, uri) [1] to achieve the same effect. Behind the scenes this removes old statements using oldResource and makes new ones with uri. Damian [1]

Re: Property not removed?

2012-06-26 Thread Dave Reynolds
On 26/06/12 09:56, Martynas Jusevičius wrote: Note that the statement seems to point to a bNode so a simple remove is probably not enough anyway. Dave, can you elaborate on this a little? I just meant that the contents of the bNode would remain. For some purposes that might be a problem.

Re: Property not removed?

2012-06-26 Thread Martynas Jusevičius
> > Note that the statement seems to point to a bNode so a simple remove is > probably not enough anyway. > > Dave, can you elaborate on this a little? What I'm trying to do, is to replace such ORDER BY expression sp:orderBy ([ a sp:Desc ; sp:express

Re: How to convert assign URL to blank node?

2012-06-26 Thread Andy Seaborne
On 26/06/12 01:30, franswors...@googlemail.com wrote: How can I assign an URI to a blank node? The Resource class only provides getURI() or getId() methods, but the URI can't be set. Do I have to create a new Resource, copy all properties and delete the original node? Yes, you create a new res

How to convert assign URL to blank node?

2012-06-26 Thread franswors...@googlemail.com
How can I assign an URI to a blank node? The Resource class only provides getURI() or getId() methods, but the URI can't be set. Do I have to create a new Resource, copy all properties and delete the original node?

Re: Can SDB 1.3.4 be used with Jena 2.7.1?

2012-06-26 Thread Andy Seaborne
Yes (it's 1.3.4-SNAPSHOT) SDB is being built against Jena each night. You can check the POM for version - it says 2.7.2-SNAPSHOT but there are no changes from 2.7.1. Andy PS Your next question will be about a release. We need a way to test SDB on all, or at least most, of the databa

Re: Reading JSON from Virtuoso OpenSource output

2012-06-26 Thread Andy Seaborne
#include everything Rob says about CONSTRUCT queries. 1/ But also the JSON results set parser has a bug in it - it is reading the link field as a string, but it should be an array. This is now fixed in SVN. The development snapshot build has the fix in it. https://repository.apache.org/conte

Re: Property not removed?

2012-06-26 Thread Dave Reynolds
Hi Martynas, On 26/06/12 00:42, Martynas Jusevičius wrote: Hey list, I have such code: log.debug("SPIN Query hasProperty(SP.orderBy): {}", spinQuery.hasProperty(SP.orderBy)); log.debug("SPIN Query Model size(): {}", spinQuery.getModel().size()); log.debug("spinQuery.ge

Re: Can SDB 1.3.4 be used with Jena 2.7.1?

2012-06-26 Thread Holger Knublauch
Yes sure, but this doesn't help with our existing customer base of SDB users. A good reason for using SDB is the use of standard tools to back-up your data etc. Holger On 6/26/2012 17:41, Martynas Jusevičius wrote: Have you tried TDB? I think it's currently more actively developed and more p

Re: Can SDB 1.3.4 be used with Jena 2.7.1?

2012-06-26 Thread Martynas Jusevičius
Have you tried TDB? I think it's currently more actively developed and more performant. On Jun 26, 2012 1:55 AM, "Holger Knublauch" wrote: > Yes this is my hope, assuming SDB still works for us. > > Holger > > > On 6/26/2012 9:46, Martynas Jusevičius wrote: > >> Holger, >> >> does that also mean