I made a typo - the reference to `<#myDatasetReadWrite>` (within the
<#myTextDS> definition) should match the subject of the last triples
block `:myDatasetReadWrite`.
Try changing one of these to match the other.

On Tue, Feb 27, 2024 at 4:23 PM Chirag Ratra <[email protected]> wrote:

> Hi David,
>
> *I am getting this error :*
>
> 11:48:25 INFO  Config          :: Load configuration: file:///
> path/run/configuration/tq-dataset.ttl
> 11:48:25 ERROR Server          :: Exception in initialization: Can't find
> <file:///path/run/configuration/tq-dataset.ttl#myDatasetReadWrite> as a
> subject
> 11:48:25 WARN  WebAppContext   :: Failed startup of context
> o.e.j.w.WebAppContext@787e4357{Apache Jena Fuseki
>
> Server,/,file:///C:/Users/chirag.ratra/Downloads/apache-jena-fuseki-4.10.0/apache-jena-fuseki-4.10.0/webapp/,UNAVAILABLE}
> org.apache.jena.assembler.exceptions.AssemblerException: Can't find
>
> <file:///C:/Users/chirag.ratra/Downloads/apache-jena-fuseki-4.10.0/apache-jena-fuseki-4.10.0/run/configuration/tq-dataset.ttl#myDatasetReadWrite>
> as a subject
>         at
>
> org.apache.jena.assembler.assemblers.AssemblerGroup$PlainAssemblerGroup.open(AssemblerGroup.java:137)
> ~[fuseki-server.jar:4.10.0]
>         at
>
> org.apache.jena.assembler.assemblers.AssemblerGroup$ExpandingAssemblerGroup.open(AssemblerGroup.java:93)
> ~[fuseki-server.jar:4.10.0]
>
>
> *Here is content of my file*
>
> @prefix : <https://data.coypu.org/> .
> @prefix fuseki: <http://jena.apache.org/fuseki#> .
> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
> @prefix text: <http://jena.apache.org/text#> .
> @prefix tdb2: <http://jena.apache.org/2016/tdb#> .
> @prefix skosxl: <http://www.w3.org/2008/05/skos-xl#> .
>
> :service_my_ds rdf:type fuseki:Service;
>     fuseki:name "my-dataset";
>     fuseki:endpoint [ fuseki:operation fuseki:query; fuseki:name "sparql"
> ];
>     fuseki:endpoint [ fuseki:operation fuseki:query; fuseki:name "query" ];
>     fuseki:endpoint [ fuseki:operation fuseki:update; fuseki:name "update"
> ];
>     fuseki:endpoint [ fuseki:operation fuseki:gsp-r; ];
>     fuseki:endpoint [ fuseki:operation fuseki:gsp-r; fuseki:name "get" ];
>     fuseki:endpoint [ fuseki:operation fuseki:gsp-rw; fuseki:name "data" ];
>     fuseki:dataset <#myTextDS> .
>
> <#myTextDS> rdf:type text:TextDataset ;
>     text:dataset <#myDatasetReadWrite> ;
>     text:index <#indexLucene> ;
>     .
>
> <#indexLucene> a text:TextIndexLucene ;
>     text:analyzer [ a text:StandardAnalyzer ];
>     text:directory
>
> "C:\\Users\\chirag.ratra\\Downloads\\apache-jena-fuseki-4.10.0\\apache-jena-fuseki-4.10.0\\run/databases";
>     text:storeValues true ;
>     text:entityMap <#entMap> ;
>     .
>
> <#entMap> a text:EntityMap ;
>     text:entityField "uri" ;
>     text:graphField "graph" ;
>     text:defaultField "prefLabel" ;
>     text:map (
>         [ text:field "prefLabel"; text:predicate skosxl:prefLabel; ]
>         [ text:field "altLabel"; text:predicate skosxl:altLabel; ]
>     ) .
>
> :myDatasetReadWrite rdf:type tdb2:DatasetTDB2 ;
>     tdb2:location
>
> "C:\\Users\\chirag.ratra\\Downloads\\apache-jena-fuseki-4.10.0\\apache-jena-fuseki-4.10.0\\run/databases/my-dataset"
> ;
>
> On Tue, Feb 27, 2024 at 10:58 AM David Habgood <[email protected]>
> wrote:
>
> > Hi Chirag,
> >
> > Try this, it is based on a working config I use - I inadvertently removed
> > some of your endpoint definitions, you may want to add these back in.
> >
> > @prefix : <https://data.coypu.org/> .
> > @prefix fuseki: <http://jena.apache.org/fuseki#> .
> > @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
> > @prefix text: <http://jena.apache.org/text#> .
> > @prefix tdb2: <http://jena.apache.org/2016/tdb#> .
> > @prefix skosxl: <http://www.w3.org/2008/05/skos-xl#> .
> >
> > :service_my_ds rdf:type fuseki:Service;
> >     fuseki:name "my-dataset";
> >     fuseki:endpoint [ fuseki:operation fuseki:query; fuseki:name "sparql"
> > ];
> >     fuseki:endpoint [ fuseki:operation fuseki:query; fuseki:name "query"
> ];
> >     fuseki:endpoint [ fuseki:operation fuseki:update; fuseki:name
> "update"
> > ];
> >     fuseki:endpoint [ fuseki:operation fuseki:gsp-r; ];
> >     fuseki:endpoint [ fuseki:operation fuseki:gsp-r; fuseki:name "get" ];
> >     fuseki:endpoint [ fuseki:operation fuseki:gsp-rw; fuseki:name "data"
> ];
> >     fuseki:dataset <#myTextDS> .
> >
> > <#myTextDS> rdf:type text:TextDataset ;
> >     text:dataset <#myDatasetReadWrite> ;
> >     text:index <#indexLucene> ;
> >     .
> >
> > <#indexLucene> a text:TextIndexLucene ;
> >     text:analyzer [ a text:StandardAnalyzer ];
> >     text:directory "path\\run/databases/my-dataset-text-index";
> >     text:storeValues true ;
> >     text:entityMap <#entMap> ;
> >     .
> >
> > <#entMap> a text:EntityMap ;
> >     text:entityField "uri" ;
> >     text:graphField "graph" ;
> >     text:defaultField "prefLabel" ;
> >     text:map (
> >         [ text:field "prefLabel"; text:predicate skosxl:prefLabel; ]
> >         [ text:field "altLabel"; text:predicate skosxl:altLabel; ]
> >     ) .
> >
> > :myDatasetReadWrite rdf:type tdb2:DatasetTDB2 ;
> >     tdb2:location "path\\run/databases/my-dataset" ;
> >     .
> >
> > On Tue, Feb 27, 2024 at 2:49 PM Chirag Ratra <[email protected]>
> > wrote:
> >
> > > @prefix :       <http://base/#> .
> > > @prefix fuseki: <http://jena.apache.org/fuseki#> .
> > > @prefix ja:     <http://jena.hpl.hp.com/2005/11/Assembler#> .
> > > @prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
> > > @prefix rdfs:   <http://www.w3.org/2000/01/rdf-schema#> .
> > > @prefix tdb2:   <http://jena.apache.org/2016/tdb#> .
> > >
> > > :service_tdb_all  rdf:type  fuseki:Service;
> > >         rdfs:label       "TDB2 tq-dataset";
> > >         fuseki:dataset   :tdb_dataset_readwrite;
> > >         fuseki:endpoint  [ fuseki:name       "sparql";
> > >                            fuseki:operation  fuseki:query
> > >                          ];
> > >         fuseki:endpoint  [ fuseki:name       "update";
> > >                            fuseki:operation  fuseki:update
> > >                          ];
> > >         fuseki:endpoint  [ fuseki:operation  fuseki:gsp-rw ];
> > >         fuseki:endpoint  [ fuseki:name       "query";
> > >                            fuseki:operation  fuseki:query
> > >                          ];
> > >         fuseki:endpoint  [ fuseki:operation  fuseki:query ];
> > >         fuseki:endpoint  [ fuseki:name       "data";
> > >                            fuseki:operation  fuseki:gsp-rw
> > >                          ];
> > >         fuseki:endpoint  [ fuseki:name       "get";
> > >                            fuseki:operation  fuseki:gsp-r
> > >                          ];
> > >         fuseki:endpoint  [ fuseki:operation  fuseki:update ];
> > >         fuseki:name      "tq-dataset" .
> > >
> > >
> > > :tdb_dataset_readwrite
> > >         rdf:type       tdb2:DatasetTDB2;
> > >         tdb2:location  "path\\run/databases/tq-dataset" .
> > >
> > >
> > > On Tue, Feb 27, 2024 at 10:09 AM David Habgood <[email protected]>
> > > wrote:
> > >
> > > > Hi Chirag,
> > > >
> > > > The mailing list does not support attachments, assuming your
> assembler
> > > file
> > > > isn't too long you can just copy it into the email body.
> > > >
> > > > Thanks
> > > >
> > > > On Tue, Feb 27, 2024 at 2:25 PM Chirag Ratra <[email protected]>
> > > > wrote:
> > > >
> > > > > Hi Andy,
> > > > > I have subscribed  to the mailing list, here is my query :
> > > > >
> > > > > I am having a problem setting up the full text search with Apache
> > Jena
> > > > > Fuseki.
> > > > > I have a dataset named tq-dataset (which has an assembler file
> > > > > /run/configuration/tq-dataset.ttl), it has skos xl preferred labels
> > > which
> > > > > have literal forms.  I need to create a fulltext search index on
> the
> > > > > literal form of skos xl-prefLabel and skos xl-altLabel.
> > > > > Through FTS documentation I am not getting an idea what changes
> > should
> > > be
> > > > > made and where and I am not sure what configuration changes to be
> > done
> > > in
> > > > > which configuration file. I  have shared the configuration file for
> > my
> > > > > dataset.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Mon, Feb 26, 2024 at 3:26 PM Andy Seaborne <[email protected]>
> > wrote:
> > > > >
> > > > >> Hi there,
> > > > >>
> > > > >> You don't appear to be subscribed to the [email protected]
> > > mailing
> > > > >> list with this email address, or you sent a message before
> replying
> > to
> > > > >> the acknowledgement. Your email has ended up in the moderators
> > inbox.
> > > > >> If you are not subscribed, you will not see replies to your
> > question.
> > > > >>
> > > > >> Please could you subscribe by sending an email to
> > > > >>
> > > > >> [email protected]
> > > > >>
> > > > >> then reply to the confirmation.
> > > > >>
> > > > >> After that, please could you re-send the message.
> > > > >>
> > > > >> You will then receive all replies that are sent to the list.
> > > > >>
> > > > >> More details:
> > > > >>
> > > > >> http://jena.apache.org/help_and_support/index.html
> > > > >>
> > > > >>     Andy
> > > > >>
> > > > >> email address used: [email protected]
> > > > >>
> > > > >> You probably want to show the configuration file you have tried
> when
> > > > >> posting your question.
> > > > >>
> > > > >>
> > > > >> On 26/02/2024 08:30, Chirag Ratra wrote:
> > > > >>
> > > > >> Hi ,
> > > > >>
> > > > >> I am having a problem setting up the full text search with Apache
> > Jena
> > > > >> Fuseki.
> > > > >> I have a dataset named tq-dataset (which has an assembler file
> > > > >> /run/configuration/tq-dataset.ttl), it has skos xl preferred
> labels
> > > > which
> > > > >> have literal forms.  I need to index these literal forms. But
> > through
> > > > >> documentation I am not sure what new configuration or modification
> > > > existing
> > > > >> ttl files has to be done.
> > > > >>
> > > > >> Regards
> > > > >> Chirag
> > > > >>
> > > > >>
> > > > >>
> > > > >> This email may contain material that is confidential, privileged,
> or
> > > for
> > > > >> the sole use of the intended recipient.  Any review, disclosure,
> > > > reliance,
> > > > >> or distribution by others or forwarding without express permission
> > is
> > > > >> strictly prohibited.  If you are not the intended recipient,
> please
> > > > contact
> > > > >> the sender and delete all copies, including attachments.
> > > > >>
> > > > >>
> > > > >>
> > > > > This email may contain material that is confidential, privileged,
> or
> > > for
> > > > > the sole use of the intended recipient.  Any review, disclosure,
> > > > reliance,
> > > > > or distribution by others or forwarding without express permission
> is
> > > > > strictly prohibited.  If you are not the intended recipient, please
> > > > contact
> > > > > the sender and delete all copies, including attachments.
> > > > >
> > > >
> > >
> > > --
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > This email may contain material that is confidential, privileged,
> > > or for the sole use of the intended recipient.  Any review, disclosure,
> > > reliance, or distribution by others or forwarding without express
> > > permission is strictly prohibited.  If you are not the intended
> > recipient,
> > > please contact the sender and delete all copies, including attachments.
> > >
> >
>
> --
>
>
>
>
>
>
>
>
> This email may contain material that is confidential, privileged,
> or for the sole use of the intended recipient.  Any review, disclosure,
> reliance, or distribution by others or forwarding without express
> permission is strictly prohibited.  If you are not the intended recipient,
> please contact the sender and delete all copies, including attachments.
>

Reply via email to