Hi Lorenz, Can you please help me to resolve this?
Regards, Deepali On Wed, Jan 6, 2021 at 7:52 PM Deepali Singhavi <[email protected]> wrote: > Hi Lorenz, > > Yes I am referring to the same document(Apache Jena - Jena Full Text > Search > <https://jena.apache.org/documentation/query/text-query.html#lists-of-indexed-properties> > ) > > I have added prop list with two predicates( > *movie:initial_release_date,rdfs:label*) to my config.ttl file and given > proplist prop name as *rdfs:labels* > > *text:propLists (* > * [ text:propListProp rdfs:labels ;* > * text:props ( movie:initial_release_date * > * rdfs:label ) ;* > * ]* > > And register one predicate as default in entity map as below > > *text:defaultField "label" ;* > * text:map (* > * [ text:field "label" ; text:predicate rdfs:label]* > * ) .* > > I am building index using command - "*java -cp fuseki-server.jar > jena.textindexer --desc=fuseki-textsearch_WithPropList.ttl*" index is > getting built > > Running fuseki server with command - "*java -Xmx1200M -jar > fuseki-server.jar --config=fuseki-textsearch_WithPropList.ttl*" > > Below Sparql query without proplist is returning result > > PREFIX text: <http://jena.apache.org/text#> > PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> > select ?subject ?object > WHERE { > ?subject text:query (rdfs:label "city"). > ?subject rdfs:label ?object . > } > > But Sparql query with proplist is throwing warning and not returning any > result > > PREFIX text: <http://jena.apache.org/text#> > PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> > select ?subject ?object > WHERE { > ?subject text:query (*rdfs:labels* "city"). > ?subject *rdfs:labels* ?object . > } > > *Warning*: TextQueryPF :: *Predicate not indexed: > http://data.linkedmdb.org/resource/movie/initial_release_date > <http://data.linkedmdb.org/resource/movie/initial_release_date>* > TextQueryPF :: *objectToStruct: props are not indexed * > *[http://data.linkedmdb.org/resource/movie/initial_release_date > <http://data.linkedmdb.org/resource/movie/initial_release_date>, > http://www.w3.org/2000/01/rdf-schema#label > <http://www.w3.org/2000/01/rdf-schema#label>]* > > Attaching the sample data file(films.ttl) which I am using and > configuration file. > > So just want to understand how to register prop list in entity map? > > *Regards,* > *Deepali* > > > > On Wed, Jan 6, 2021 at 6:46 PM Lorenz Buehmann < > [email protected]> wrote: > >> can you show an example please? Are you referring to [1] ? >> >> I'm wondering what you did in the config, for the future, please always >> provide as many details as possible, e.g. config, file, what you did to >> built the index, how you query the index ... >> >> So please show config and all other steps you did. Thanks >> >> [1] >> >> https://jena.apache.org/documentation/query/text-query.html#lists-of-indexed-properties >> >> On 06.01.21 13:55, Deepali Singhavi wrote: >> > Hi, >> > >> > I want to use a prop list to register multiple predicates. I have >> > updated my configuration file and the index is getting built but when >> > I am trying to query them using those predicates getting messages as >> > they are not indexed only predicates registered under entity map is >> > working. >> > >> > Do we need to register this prop list to the entity map? How to do that? >> > >> > Will this proplist work for elastic search as well? >> > >> > Please let me know if any other information is needed from my side >> > >> > Regards, >> > Deepali >> >
