Re: GeoSpatial properties and relationships

2013-10-30 Thread Ralph Perniciaro
Thanks! Right under my nose. :) On Wed, Oct 30, 2013 at 7:05 PM, Ying Jiang wrote: > Hi, > > You can try out jena-spatial: > http://jena.apache.org/documentation/query/spatial-query.html > > Best regards, > Ying Jiang > > On Thu, Oct 31, 2013 at 2:44 AM, Ralph Perniciaro > wrote: > > All, >

Re: GeoSpatial properties and relationships

2013-10-30 Thread Ying Jiang
Hi, You can try out jena-spatial: http://jena.apache.org/documentation/query/spatial-query.html Best regards, Ying Jiang On Thu, Oct 31, 2013 at 2:44 AM, Ralph Perniciaro wrote: > All, > > I have a requirement to associate geospatial geometries to resources and > then be able to search for reso

GeoSpatial properties and relationships

2013-10-30 Thread Ralph Perniciaro
All, I have a requirement to associate geospatial geometries to resources and then be able to search for resources based on geospatial relationships such as intersects, near, etc. I would like to do this using jena, but not sure what has been done. If anyone has done this or has suggestions that

Re: SPARQL and FundRef RDF Registry

2013-10-30 Thread Milorad Tosic
Hi, I probably didn't understand what you need. The following query may help? SELECT ?r ?lf WHERE { BIND( as ?r)  ?r ?l . ?l ?lf . } Regards, Milorad >_

Re: Streaming and error recovery

2013-10-30 Thread Norman Walsh
Andy Seaborne writes: > It does? There is only a streaming parser - when it going into a > model, that is just the destination. You shoudl get an exception from > the error. I get an exception in both cases, but way more triples in one than the other. >> Can I recover in streaming mode? Ideally,

Should model.read emit addedStatements ?

2013-10-30 Thread Altmann, Michael
I am trying to upgrade our application from Jen 2.7.3 to 2.11.0 It appears that in Jena 2.7.3 model.read(stream, null, "RDF/XML") fired a single ModelChangedListener.addedStatements whereas model.read(stream, null, "TTL") fired separate addedStatement events. Now in 2.11.0, both types of load em

Re: Re: How to export uri prefixes within a resourse value

2013-10-30 Thread Ralph Perniciaro
Thanks! I will check. On Wed, Oct 30, 2013 at 3:23 AM, Chris Dollin wrote: > On Tuesday, October 29, 2013 08:01:33 PM Martynas Jusevičius wrote: > > What you want can be done on the syntactic XML level using entities: > > > > This would require a local entity definition however: > > > > >

RE: Writing big models to disk

2013-10-30 Thread Nikolaos Konstantinou
Thanks a lot for the prompt answer, it works now. All I had to do was close the stream afterwards. The following code does it, using jena 2.10.1: BufferedWriter out = new BufferedWriter(new FileWriter("file.rdf"));resultModel.write(out, "N-TRIPLE");out.close(); Best,Nikos > Date: Tue, 29 Oct 201

Re: Streaming and error recovery

2013-10-30 Thread Andy Seaborne
On 29/10/13 15:16, Norman Walsh wrote: Hi folks, I'm parsing some RDF documents in streaming mode: ...blah blah blah... try { ErrorHandler handler = new ParserErrorHandler(fsname); ParserProfile prof = RiotLib.profile(lang, fsname, handler);

Re: SPARQL and FundRef RDF Registry

2013-10-30 Thread Coeus[TM]
Hi Milorad, I appreciate you introducing me to the service. Unfortunately, it did not solve the problem as I was asking for a SPARQL construct. Thanks! On Wed, Oct 30, 2013 at 6:37 PM, Coeus[TM] wrote: > Hi, > > May I seek for someone's help on how to construct a query for FundRef > RDFregis

Re: SPAM-HIGH: TDB record timestamp of triples?

2013-10-30 Thread Andy Seaborne
On 30/10/13 11:10, Jean-Marc Vanel wrote: Thanks for the answer , which is not surprising . This suggests new questions: - 1. would it be difficult to add this feature, and make timestamp available through the API ? Contributions are always welcome (but this looks like a distinctly non-trivia

Re: SPAM-HIGH: TDB record timestamp of triples?

2013-10-30 Thread Jean-Marc Vanel
Thanks for the answer , which is not surprising . This suggests new questions: - 1. would it be difficult to add this feature, and make timestamp available through the API ? - 2. is the order of triples insertion also preserved in SPARQL results, API SPO queries and other outputs ? 2013/10/30

Re: SPAM-HIGH: TDB record timestamp of triples?

2013-10-30 Thread Rob Vesse
No it does However since triples are stored in B+Tree based indexes there is an ordering to the triples within the internal storage so when tdbdump outputs the contents of the database the triples will be serialized out in that order. Rob On 30/10/2013 10:20, "Jean-Marc Vanel" wrote: >Hi > >Do

SPARQL and FundRef RDF Registry

2013-10-30 Thread Coeus[TM]
Hi, May I seek for someone's help on how to construct a query for FundRef RDFregistry please. The idea is to simply search a funding source (e.g. National Science Foundation) by Id (e.g. http://dx.doi.org/10.13039/10001";>) and vice-versa. Dataset can be found at http://www.crossref.org/docs

TDB record timestamp of triples?

2013-10-30 Thread Jean-Marc Vanel
Hi Does Jena TDB record timestamp of triples? ( I noticed that tdbdump outputs triples in chronological order ). -- Jean-Marc Vanel Déductions SARL - Consulting, services, training, Rule-based programming, Semantic Web http://deductions-software.com/ +33 (0)6 89 16 29 52 Twitter: @jmvanel ; cha

Re: Re: How to export uri prefixes within a resourse value

2013-10-30 Thread Chris Dollin
On Tuesday, October 29, 2013 08:01:33 PM Martynas Jusevičius wrote: > What you want can be done on the syntactic XML level using entities: > > This would require a local entity definition however: > > http://www.w3.org/2000/01/rdf-schema#";> > ]> > > I don't think it can be done using quali