Re: Text search from sparql

2019-01-23 Thread Mikael Pesonen
Thanks, now Skosmos works too. This all works when ran from command line, but not as service. I'm getting still Jan 23 13:18:19 semantic-dev java[7286]: [2019-01-23 13:18:19] Server INFO  Apache Jena Fuseki 3.9.0 Jan 23 13:18:20 semantic-dev java[7286]: [2019-01-23 13:18:20] Config

Re: Text search from sparql

2019-01-22 Thread Rob Vesse
http://jena.apache.org/documentation/fuseki2/fuseki-configuration.html You need to add fuseki:serviceQuery "sparql" as an additional entry to your fuseki:Service definition in order for it to respond to SPARQL queries on /ds/sparql Rob On 22/01/2019, 15:28, "Mikael Pesonen" wrote:

Re: Text search from sparql

2019-01-22 Thread Mikael Pesonen
Thanks I'll change that to something better when have working setup. On 22/01/2019 17:28, vincent ventresque wrote: Maybe it doesn't have any connection with your problem but I noticed you have a /tmp directory for your index : don't know if your /tmp directory is erased when you reboot, but

Re: Text search from sparql

2019-01-22 Thread vincent ventresque
Maybe it doesn't have any connection with your problem but I noticed you have a /tmp directory for your index : don't know if your /tmp directory is erased when you reboot, but you may have trouble when restarting Fuseki text:directory Le 22/01/2019 à 16:21, Mikael Pesonen a écrit : Sorry ha

Re: Text search from sparql

2019-01-22 Thread Mikael Pesonen
This is the call Skosmos makes: GET http://localhost:3030/ds/sparql?query=... On 22/01/2019 17:21, Mikael Pesonen wrote: Sorry had issues with permissions. So now I can load configuration from cmd line /usr/bin/java -Dlog4j.configuration=file:/home/text/tools/apache-jena-fuseki-3.9.0/l

Re: Text search from sparql

2019-01-22 Thread Mikael Pesonen
Sorry had issues with permissions. So now I can load configuration from cmd line /usr/bin/java -Dlog4j.configuration=file:/home/text/tools/apache-jena-fuseki-3.9.0/log4j.properties -Xmx5600M -jar fuseki-server.jar --update --port 3030 --config=run/config.ttl and Indexer works ... INFO  2

Re: Text search from sparql

2019-01-22 Thread Lorenz B.
Can't reproduce this. With the config file I shared with you, it works for me as expected with Fuseki 3.10.0 Which config file do you use now? > > On 22/01/2019 16:17, vincent ventresque wrote: >> Hello >> >> If the configuration folder is empty, the run/config.ttl (default >> file) should be the

Re: Text search from sparql

2019-01-22 Thread Lorenz B.
Well I started Fuseki with the path of the config file, i.e. ./fuseki-server --config=/PATH/TO/CONFIG/FILE Does this not work for you? For me it does using Fuseki 3.10.0 > > Hi, > > there is still this error and it comes only when ANYTHING is placed on > configuration folder: > > WebAppContext

Re: Text search from sparql

2019-01-22 Thread Mikael Pesonen
On 22/01/2019 16:17, vincent ventresque wrote: Hello If the configuration folder is empty, the run/config.ttl (default file) should be the one that Fuseki uses : you should try to replace the content of run/config.ttl with the one Chris has sent in previous msg That worked! So now with t

Re: Text search from sparql

2019-01-22 Thread vincent ventresque
Hello If the configuration folder is empty, the run/config.ttl (default file) should be the one that Fuseki uses : you should try to replace the content of run/config.ttl with the one Chris has sent in previous msg Le 22/01/2019 à 14:58, Mikael Pesonen a écrit : Hi, we haven't made any con

Re: Text search from sparql

2019-01-22 Thread Mikael Pesonen
Hi, there is still this error and it comes only when ANYTHING is placed on configuration folder: WebAppContext WARN  Failed startup of context o.e.j.w.WebAppContext@4159e81b{Apache Jena Fuseki Server,/,file:///home/text/tools/apache-jena-fuseki-3.9.0/webapp/,UNAVAILABLE} That folder is a

Re: Text search from sparql

2019-01-22 Thread Mikael Pesonen
Hi, we haven't made any configuration files, so configuration folder is empty. Everything is working fine except text search so are there some advances for doing custom config? I understand now that for text search we need the config and about that I asked for help. On 21/01/2019 19:24, Ch

Re: Text search from sparql

2019-01-21 Thread Chris Tomlinson
Hi, You’ve presented your system service configuration. We need to see the configuration file in: $FUSEKI_BASE/configuration/text_svc.ttl It is a ttl file that is interpreted by the assembler system to build the endp

Re: Text search from sparql

2019-01-21 Thread Lorenz B.
Hello Mikael, attachments to not work so I'll post a config that works for me at the end of the message. You have to adopt the path for tdb:location and text:directory And as said before, you have to create the text index once. Note, as I also said in my previous response, your query will wor

Re: Text search from sparql

2019-01-21 Thread Mikael Pesonen
Hi, On 18/01/2019 18:13, Chris Tomlinson wrote: Hi, 1) If you’re using a default config, it does not have a working jena-text configuration. The config will need to include skos:prefLabel in the entity map. 2) when you change the jena-text in significant ways, such as changing what analyz

Re: Text search from sparql

2019-01-18 Thread vincent ventresque
Hi Tom > I’ll be happy to review the changes also. Thank you! > Best to have a user that has recent experience with the deficits in the current docs -- My experience is not that recent : I installed a Lucene index in 2017 (and haven't tried TDB2 yet, so it's a limited experience!). I subs

Re: Text search from sparql

2019-01-18 Thread Chris Tomlinson
Hi Vincent, I’ll be happy to review the changes also. Best to have a user that has recent experience with the deficits in the current docs make changes that clarify their issues. Thanks, Chris > On Jan 18, 2019, at 12:09 PM, vincent ventresque > wrote: > > Hi ajs6f > > Thank you for your

Re: Text search from sparql

2019-01-18 Thread vincent ventresque
Hi ajs6f Thank you for your proposal, I'd be glad to contribute (as soon as I find a moment, maybe next week). By the way, I wrote a small tutorial (in french) for our project, and some PHP code to use with Fuseki + a sample dataset (data from french national library). I consider translating

Re: Text search from sparql

2019-01-18 Thread ajs6f
Hi, Vincent-- As mentioned in a recent thread, you needn't be a committer or have any other official role to improve that page. Just use the link in the upper right to submit your suggested changes, and I promise to review/commit them! (Probably with some help from Chris or Osma, who know the t

Re: Text search from sparql

2019-01-18 Thread Lorenz B.
Hello Mikael, the config file should define 1)  the TDB dataset 2) the Lucene dataset that wraps the TDB dataset 3) the service should point to the Lucene dataset In addition, you have to run the text indexer once to create the Lucene index. Once this is done, you have to check the Lucene qu

Re: Text search from sparql

2019-01-18 Thread Vincent Ventresque
Hi Chris, I'd like to add sthg about the documentation page : it's a bit laconic, and I spent a few hours to understand that values have to be provided in config file for dataset uri. Furthermore, I had to search on Stackoverflow, and saw other users had the same problem with jena-text confi

Re: Text search from sparql

2019-01-18 Thread Chris Tomlinson
Hi again, Indeed, if there is no TextIndex configured then the text:query will return null to the surrounding context: Log.warn(TextQueryPF.class, "Failed to find the text index : tried context and as a text-enabled dataset") ; return null ; So you could perhaps verify that wh

Re: Text search from sparql

2019-01-18 Thread Chris Tomlinson
Hi, 1) If you’re using a default config, it does not have a working jena-text configuration. The config will need to include skos:prefLabel in the entity map. 2) when you change the jena-text in significant ways, such as changing what analyzer is used for a given property and so on, then you’

Re: Text search from sparql

2019-01-18 Thread Mikael Pesonen
On 18/01/2019 13:40, Andy Seaborne wrote: On 17/01/2019 15:45, Mikael Pesonen wrote: On 17/01/2019 17:38, Andy Seaborne wrote: On 17/01/2019 12:51, Mikael Pesonen wrote: On 17/01/2019 13:58, Andy Seaborne wrote: On 16/01/2019 12:50, Mikael Pesonen wrote: Hi, I'm trying to get t

Re: Text search from sparql

2019-01-18 Thread Andy Seaborne
On 17/01/2019 15:45, Mikael Pesonen wrote: On 17/01/2019 17:38, Andy Seaborne wrote: On 17/01/2019 12:51, Mikael Pesonen wrote: On 17/01/2019 13:58, Andy Seaborne wrote: On 16/01/2019 12:50, Mikael Pesonen wrote: Hi, I'm trying to get text search work. Sparql REGEX takes few seco

Re: Text search from sparql

2019-01-17 Thread Mikael Pesonen
On 17/01/2019 17:38, Andy Seaborne wrote: On 17/01/2019 12:51, Mikael Pesonen wrote: On 17/01/2019 13:58, Andy Seaborne wrote: On 16/01/2019 12:50, Mikael Pesonen wrote: Hi, I'm trying to get text search work. Sparql REGEX takes few seconds to finish so hoping this would be faster.

Re: Text search from sparql

2019-01-17 Thread Andy Seaborne
On 17/01/2019 12:51, Mikael Pesonen wrote: On 17/01/2019 13:58, Andy Seaborne wrote: On 16/01/2019 12:50, Mikael Pesonen wrote: Hi, I'm trying to get text search work. Sparql REGEX takes few seconds to finish so hoping this would be faster. Application is term search using SKOS ontol

Re: Text search from sparql

2019-01-17 Thread Mikael Pesonen
This error comes what ever I put in the config file. So if run/configuration is empty, everything works except text search. If I put anything there, following error occurs. Jan 17 17:00:28 semantic-dev java[16800]: [2019-01-17 17:00:28] Config INFO  Load configuration: file:///home/tex

Re: Text search from sparql

2019-01-17 Thread Andy Seaborne
Just on this point: Is that path file:///home/text/tools/apache-jena-fuseki-3.9.0/webapp/ correct, should it be file:/home/text/tools/apache-jena-fuseki-3.9.0/webapp/ ? file:/// is correct An absolute URI is scheme://authority/path (RFC3986). file:/ is what Java produces - strictly, it's

Re: Text search from sparql

2019-01-17 Thread Mikael Pesonen
Fuseki is run as service (if helps any): [Unit] Description=Apache Jena Fuseki [Service] Type=simple User=fuseki #Environment=JAVA_HOME=/usr/lib/jvm/java-8-oracle/ Environment=FUSEKI_HOME=/home/text/tools/apache-jena-fuseki-3.9.0 Environment=FUSEKI_BASE=/home/text/tools/apache-jena-fuseki-3.9.

Re: Text search from sparql

2019-01-17 Thread Mikael Pesonen
On 17/01/2019 13:58, Andy Seaborne wrote: On 16/01/2019 12:50, Mikael Pesonen wrote: Hi, I'm trying to get text search work. Sparql REGEX takes few seconds to finish so hoping this would be faster. Application is term search using SKOS ontology.   First tested if it's enabled by defau

Re: Text search from sparql

2019-01-17 Thread Andy Seaborne
On 16/01/2019 12:50, Mikael Pesonen wrote: Hi, I'm trying to get text search work. Sparql REGEX takes few seconds to finish so hoping this would be faster. Application is term search using SKOS ontology.  First tested if it's enabled by default  ?concept text:query (skos:prefLabel "me

Re: Text search from sparql

2019-01-16 Thread Mikael Pesonen
That change didn't help. Also checked that folder /home/text/tools/apache-jena-fuseki-3.9.0/webapp is found and contains the default files from the package. On 16/01/2019 16:57, Vincent Ventresque wrote: the relevant part is in the config file (pasted on the page) but I thought the links o

Re: Text search from sparql

2019-01-16 Thread Mikael Pesonen
Ok sorry just learning this configuration stuff. Changing that value didn't help. Also tried giving the ttl file from command line parameter --config but same error. So something must be wrong with the config file. On 16/01/2019 16:57, Vincent Ventresque wrote: the relevant part is in the

Re: Text search from sparql

2019-01-16 Thread Vincent Ventresque
the relevant part is in the config file (pasted on the page) but I thought the links on the page could be useful too. In the code I used I had to replace "<#dataset>" with ":tdb_dataset_readwrite Le 16/01/2019 à 15:47, Mikael Pesonen a écrit : Thanks for reply. Didn't find any info

Re: Text search from sparql

2019-01-16 Thread Mikael Pesonen
Thanks for reply. Didn't find any info on fixed Uri on that page, it seemed to be about timeouts? On 16/01/2019 15:07, Vincent Ventresque wrote: Hello I'm not sure if your problem is the same I had encountered when configuring Lucene, but you might have to modify the config file to set a

Re: Text search from sparql

2019-01-16 Thread Vincent Ventresque
Hello I'm not sure if your problem is the same I had encountered when configuring Lucene, but you might have to modify the config file to set a fixed Uri for the dataset (see my question here : https://stackoverflow.com/questions/48318966/fuseki-config-for-2-datasets-text-index-how-to-use-turt

Text search from sparql

2019-01-16 Thread Mikael Pesonen
Hi, I'm trying to get text search work. Sparql REGEX takes few seconds to finish so hoping this would be faster. Application is term search using SKOS ontology.  First tested if it's enabled by default  ?concept text:query (skos:prefLabel "medi") .   ?concept skos:prefLabel ?prefLabel Tha