Backing code for Fuseki *.html

2013-07-23 Thread Lewis John Mcgibbney
Hi All, I'm utilizing the Fuseki source [0] to build an application enabling access to my triples data. Can someone please explain to me how queries are sent to the server please? Looking at the source in sparql.html [1] I am struggling to see what code is called to initiative queries? Can someone

Re: ClassNotFoundException on running arq after building it (on mac)

2013-07-23 Thread Joshua TAYLOR
On Tue, Jul 23, 2013 at 3:14 PM, Dan Michael O. Heggø wrote: > Hi, this is probably a "stupid question", but I have no experience with > Maven and very little with Java, so I'm quite stuck right now. I have Maven > 3.0.5 installed, and here's what I've tried to install arq: > >> cd $HOME/dev >> wg

Re: ClassNotFoundException on running arq after building it (on mac)

2013-07-23 Thread Adeeb Noor
Maven it is very hard in my opinion. Try Ant, it does the same thing and it is a straightforward. http://www.tutorialspoint.com/ant/ant_creating_jar_files.htm On Tue, Jul 23, 2013 at 1:14 PM, Dan Michael O. Heggø wrote: > Hi, this is probably a "stupid question", but I have no experience with

ClassNotFoundException on running arq after building it (on mac)

2013-07-23 Thread Dan Michael O . Heggø
Hi, this is probably a "stupid question", but I have no experience with Maven and very little with Java, so I'm quite stuck right now. I have Maven 3.0.5 installed, and here's what I've tried to install arq: > cd $HOME/dev > wget http://www.apache.org/dist/jena/source/jena-2.10.1-source-release.zi

Re: Jena and Hbase Integration

2013-07-23 Thread Mgs Mgs
Hi Devs Are there any plans to integrate Jena and HBase ? Regards, Oleg On Jul 23, 2013, at 2:28 PM, Arash Shahkar wrote: > Hi, > > We have been using jena-hbase in a project a while ago. Do not use it. I > had to rewrite significant parts of it to make it work as it was intended > to

Re: Doubt about SPARQL

2013-07-23 Thread Andy Seaborne
See the SPARQL spec for the exact syntax for REPLACE: REPLACE(str(?YourVariable), '^.*(/|#)', '') AS assigns a variable so it is setting ?localName. You can not also use it in the pattern (variables are set once per solution). You will need to change ?YourVariable. And "?Desvio rdfs:label ?l

Re: Doubt about SPARQL

2013-07-23 Thread Anthony Ramalho
Hi  Andy,   I tried this (based on what you suggested):   PREFIX hazop: PREFIX rdfs: SELECT ?No ?Desvio (REPLACE(str(?YourVariable), '^.*(/|#)') AS ?localName)  WHERE { ?No hazop:hasDeviation ?Desvio.

Re: Doubt about SPARQL

2013-07-23 Thread Andy Seaborne
On 23/07/13 17:53, Anthony Diniz wrote: Thank you, Joshua. My case is the 3rd one. Can you give me an example? I have foo:someIndividual, but I would like just "someIndividual", without having to process the answer as string with Java. Thank you again, Anthony REPLACE(str(?YourVariable), '

Re: Doubt about SPARQL

2013-07-23 Thread Anthony Diniz
Thank you, Joshua. My case is the 3rd one. Can you give me an example? I have foo:someIndividual, but I would like just "someIndividual", without having to process the answer as string with Java. Thank you again, Anthony Enviado via iPhone Em 2013-07-23, às 12:24, Joshua TAYLOR escreveu: >

Doubt about SPARQL

2013-07-23 Thread Anthony Ramalho
Hi all,   I'd like to know if somebody knows a way of hiding the prefix from results in SPARQL queries. If yes, is it possible showing some kind of example?   Thanks for your support,   Anthony Diniz

Re: Doubt about SPARQL

2013-07-23 Thread Joshua TAYLOR
On Tue, Jul 23, 2013 at 9:57 AM, Anthony Ramalho wrote: > I'd like to know if somebody knows a way of hiding the prefix from results in > SPARQL queries. > If yes, is it possible showing some kind of example? What do you mean by "hiding the prefix"? 1) Are you currently getting results like: f

Re: Achieving reasonably performing federated queries

2013-07-23 Thread Diogo FC Patrao
Hello I observed the same behaviour as you did and have some considerations that are product of that. I haven't checked the Jena sources, so I may be wrong here. As stated before in this list, ARQ doesn't have any federation-specific optimization, so it behaves as if the cost of accessing local a

Re: Achieving reasonably performing federated queries

2013-07-23 Thread Olivier Rossel
Same interrogations here. So I +1 this question immensely! On Tue, Jul 23, 2013 at 11:48 AM, Sarven Capadisli wrote: > Hi all, > > This is partly a summary of my recent experiences with federated queries > and partly a request for your feedback on making /reasonably/ performing > federated quer

Re: AW: AW: transactions and multiple threads

2013-07-23 Thread Andy Seaborne
On 22/07/13 18:28, Billig, Andreas wrote: Thanks, now it is clearer, I think I have mixed up "transaction" and "transaction object" (instance of 'DatasetGraphTransaction', 1:1 relationship to the dataset object returned by 'TDBFactory.createDataset(...)', which performs thread-aware operations by

Re: Jena and Hbase Integration

2013-07-23 Thread Arash Shahkar
Hi, We have been using jena-hbase in a project a while ago. Do not use it. I had to rewrite significant parts of it to make it work as it was intended to. Also, I found huge parts of it unimplemented and incomplete. At last, we found it too unstable and unreliable too be of good use. On 23/07/201

Re: RDFDataTyping in a statement

2013-07-23 Thread Andy Seaborne
Add "xsd" "http://www.w3.org/2001/XMLSchema#"; as a prefix mapping for the model. The Turtle output (which I assume you're using), wil only abbreviate to prefix names if there is a prefix definition on the model. To get false as "false"^^, output in N

Re: RDFDataTyping in a statement

2013-07-23 Thread Phil Ashworth
Many Thanks for that. Is there a way to force the output to look like I was expecting? Cheers Phil On Tue, Jul 23, 2013 at 12:54 PM, Damian Steer wrote: > > On 23 Jul 2013, at 12:16, Phil Ashworth wrote: > > > Sorry if these are trivial questions. > > Not a problem. > > > The triple written to

Re: RDFDataTyping in a statement

2013-07-23 Thread Damian Steer
On 23 Jul 2013, at 12:16, Phil Ashworth wrote: > Sorry if these are trivial questions. Not a problem. > The triple written to the file is > > false ; > > For boolean I don’t see the data type written out > > i.e. I was expecting >

Re: Jena and Hbase Integration

2013-07-23 Thread Marco Neumann
you might want to take a look at this research report Vaibhav Khadilkar, Murat Kantarcioglu, Bhavani Thuraisingham: StormRider: Harnessing "Storm" for Social Networks, The University of Texas at Dallas 2012 http://www.utdallas.edu/~vvk072000/Research/StormRider/stormrider.html On Tue, Jul 2

Re: Best way to read a file.

2013-07-23 Thread Andy Seaborne
Phil, http://jena.apache.org/documentation/io/index.html The FileManager functionality is subsumed by RDFDataMgr - to give application compatibility, the old class remains. In fact, during full initialization, the global FileManger is replcaed by an adapter from the old code to the new RIOT

RDFDataTyping in a statement

2013-07-23 Thread Phil Ashworth
Sorry if these are trivial questions. I’m trying to add a statement to a model and I seem to be having issues with the Boolean datatype. The following works fine String objectval = “myname”; String objecttype = “http://www.w3.org/2001/XMLSchema#string”; com.hp.hpl.jena.rdf.model.Resource subject

Re: RESOLVED Re: Running transitive inference in a OntModel

2013-07-23 Thread Dave Reynolds
Hi Brice, Glad you are sorted, it did look like a namespace problem. You can define default namespaces and base URIs in the serializations and of course Jena will respect them. But internally all resources have fully resolved absolute URIs so that's what you have when working at the API level

RESOLVED Re: Running transitive inference in a OntModel

2013-07-23 Thread Brice Sommacal
Hi Dave, Thank you for your support. Yesterday, I was not able to send a minimal example quickly (that's why I have firstly been focused on the data). My component read a set of XML files and create a OWL files (using Jena). Then, we apply inference rules on it (to create inverse properties and s

Achieving reasonably performing federated queries

2013-07-23 Thread Sarven Capadisli
Hi all, This is partly a summary of my recent experiences with federated queries and partly a request for your feedback on making /reasonably/ performing federated queries. The query in question is here [1]. Essentially there are two endpoints (which may or may not be the same), and they ret

Best way to read a file.

2013-07-23 Thread Phil Ashworth
I have successfully read a file into a model using the following code based on the some of the documented examples. String inputfile = "c://myfile.ttl"; // create an empty model com.hp.hpl.jena.rdf.model.Model model= com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel(); java.io.InputStream

Jena and Hbase Integration

2013-07-23 Thread mgs . bravo
Hi all Well subject itself telling the question. Does anyone has experience ? I see only RDBMS in supported list of Jena . Are there any plans to include Hbase? Regards Oleg Ps I saw some project called jena-hbase, but it is not widely supported and seems to be unstable

Re: Question about inequality semantics

2013-07-23 Thread Andy Seaborne
Hi Evrin, ARQ "knows" that the value spaces of xsd:string and xsd:integer are disjoint. Therefore, it can implement the = and != operators as an extension adding: = xsd:string xsd:integer != xsd:string xsd:integer as always false and true respectively. However, your analysis is quite

AW: Fuseki construct output format nquads?

2013-07-23 Thread Neubert Joachim
Hi Stephen, hi Andy, I feel somewhat sorry for asking my question naively, just having verified that Jena supports N-quads, and not aware that the SPARQL 1.1 spec does not support it. My use case could have been fulfilled simply with ntriples. What I wanted to do is feeding a PHP json-ld libra