Re: How to add a new triple into a named graph in TDB?

2013-09-02 Thread Dave Reynolds
On 02/09/13 02:37, Wang Dongsheng wrote: Hi, all It confused me a lot that when I maintain a named graph. I stored many named graph in TDB, I can get the named graph by dataset.getNamedModel(model name); or delete the named model by dataset.removeNamedModel(). But when I want to

Re: SPARQL autentication and HTTP 403 error code

2013-09-02 Thread Arthur Vaïsse-Lesteven
Hi again, After a short talk with a workmate, I understand what's was my problem. The exceptions are RunTimeException and haven't to appear in method signature. Maybe just add to the comments of UpdateProcessRemoteForm.execute May throw HTTPException and ARQException may help someone who

JENA API question

2013-09-02 Thread bocai
Hi, I want to access remote sparql endpoint throuth JENA API. My program is below. After I ran the program, There is no record in resultset - | p | = - But I visit http://dbpedia.org/sparql and ran this sparql ( select * where {?p dbpedia-owl:country dbpedia:Germany.} LIMIT 10 ) as

Re: JENA API question

2013-09-02 Thread Dave Reynolds
On 02/09/13 10:37, bocai wrote: Hi, I want to access remote sparql endpoint throuth JENA API. My program is below. After I ran the program, There is no record in resultset - | p | = - But I visit http://dbpedia.org/sparql and ran this sparql ( select * where {?p

Re: JENA API question

2013-09-02 Thread Marco Neumann
change dbpedia prefix to PREFIX dbpedia: http://dbpedia.org/resource/ + On Mon, Sep 2, 2013 at 5:37 AM, bocai jian...@clas.ac.cn wrote: Hi, I want to access remote sparql endpoint throuth JENA API. My program is below. After I ran the program, There is no record in resultset - | p

Heavy queries followed by light queries

2013-09-02 Thread nadav hoze
hi, We are doing stress tests to our service which it's underlying data layer is jena TDB. one of our tests is tor run heavy queries for long time (about 6 Hrs) and afterwards run light queries. (we have clients which are in that mode). What we witness is a huge performance degradation, light

Re: Naming entities

2013-09-02 Thread Rob Walpole
+1 for UUIDs but with some domain information. i.e. http://my.base.uri/person/{uuid} or http://my.base.uri/employee/{uuid} In RDF terms you can have more human readable information in the label and render this where required, i.e. http://my.base.uri/person/{uuid-goes-here} a foaf:Person ;

Circular references when serializing RDF XML

2013-09-02 Thread Nis Jespersen
Dear users@jena.apache.org, I am currently working on producing an RDF XML file with a bunch of high voltage electrical objects in it. I've come a long way, but recently hit an obstacle because three classes are referencing each other circularly. Basically, a ShuntCompensator references a

Re: Heavy queries followed by light queries

2013-09-02 Thread Andy Seaborne
On 02/09/13 12:51, nadav hoze wrote: hi, We are doing stress tests to our service which it's underlying data layer is jena TDB. one of our tests is tor run heavy queries for long time (about 6 Hrs) and afterwards run light queries. (we have clients which are in that mode). What we witness is a

Re: Heavy queries followed by light queries

2013-09-02 Thread Andy Seaborne
On 02/09/13 14:33, nadav hoze wrote: Machine size: 12 GB OS: Windows Server 2008 64 bit I don't have much experience of Windows 64 bit and mmap files - you may find running with 32 bit mode a useful datapoint (this does not use memory mapped files which, from reading around the web, and

Re: How to filter SPARQL query with a list

2013-09-02 Thread Andy Seaborne
On 02/09/13 16:34, Charles Li wrote Thanks Andy! I managed to narrow down to the following SPAQL query issue (the model was in TDB loaded from file C:/temp/myrdf.xml. Jena 2.10.1) When I run the following query: select ?s ?p ?o WHERE { file:///C:/temp/myrdf.xml#ROOT ?p ?o . } I was able

Jena-text loading and IR features

2013-09-02 Thread Saud Al-Jaloud
Hi, Does Jena-Text support scores, similarity and distance searches as the old Larq? It seems not working as Larq syntax. I know that it does support: exact word match, exact phrase, wildcards, AND and OR operators, Did I miss any other features? Another question, Is this the right way to add

Re: How to filter SPARQL query with a list

2013-09-02 Thread Charles Li
Thanks, Andy! This is a legacy file that I cannot change anything. I tried using FILTER. Exactly as you said, the execution of the query is too slow. My questions - were you able to execute the query with URI() function in it? How can I make my query execute first with no syntax error ? Thanks

Re: Restricting Fuseki to localhost

2013-09-02 Thread Rob Vesse
It's a known bug - JENA-499 (https://issues.apache.org/jira/browse/JENA-499) The --host argument is not actually supported in past versions of Fuseki The fix which is available in the dev snapshots (1.0.0-SNAPSHOT) adds a --localhost argument to do this instead. The documentation has been

Restricting Fuseki to localhost

2013-09-02 Thread Adrian Gschwend
Hi group, According to the Fuseki documentation there is a --host argument for restricting it to some IPs: https://jena.apache.org/documentation/serving_data/index.html#running-a-fuseki-server but: ./fuseki-server --config=fuseki-persistent.ttl --host=127.0.0.1 Unknown argument: host --port

Re: Restricting Fuseki to localhost

2013-09-02 Thread Adrian Gschwend
On 02.09.13 21:12, Rob Vesse wrote: Hi Rob, It's a known bug - JENA-499 (https://issues.apache.org/jira/browse/JENA-499) thanks for the pointer The --host argument is not actually supported in past versions of Fuseki The fix which is available in the dev snapshots (1.0.0-SNAPSHOT) adds a

Re: How to filter SPARQL query with a list

2013-09-02 Thread Andy Seaborne
On 02/09/13 19:06, Charles Li wrote: Thanks, Andy! This is a legacy file that I cannot change anything. You are changing the file already because you are setting the base on loading. Text processing can fix the file. Or load and use SPARQL Update (slowly, but once). I tried using

Re: Jena-text loading and IR features

2013-09-02 Thread Andy Seaborne
On 02/09/13 18:55, Saud Al-Jaloud wrote: Hi, Does Jena-Text support scores, similarity and distance searches as the old Larq? It seems not working as Larq syntax. I know that it does support: exact word match, exact phrase, wildcards, AND and OR operators, Did I miss any other features?

Re: Impact on deprecation of BulkUpdateHandler on SDB

2013-09-02 Thread Holger Knublauch
Hi group, I did not see any response to my question below, which is usual for this list where responses are usually fast and competent. As this is quite a crucial issue for our upgrade right now, I would like to ask again, and rephrase my question. I understand SDB is rather unsupported, but