Thanks! Built with maven now and the dependencies are resolved.
I'm trying to get the text-query code to run from here:
http://jena.apache.org/documentation/query/text-query.html#configuration-by-code
Am I supposed to leave the strings "uri" and "text" as is?
EntityDefinition entDef = new EntityDefinition("uri", "text", RDFS.label) ;
The query simply returns an empty result.
The test data are the two triples:
<http://de.dbpedia.org/resource/Gurkenkraut> <
http://www.w3.org/2000/01/rdf-schema#label> "Gurkenkraut".
<http://de.dbpedia.org/resource/Sauregurkenzeit> <
http://www.w3.org/2000/01/rdf-schema#label> "blablu".
and the query:
SELECT *
{ ?s text:query (rdfs:label 'Gurke' 10) ;
rdfs:label ?label
}
Thanks!
2013/6/26 Andy Seaborne <[email protected]>
> On 26/06/13 15:15, tadum tada wrote:
>
>> Hello!
>>
>> trying to use jena-text with Lucene here. But it says
>> ClassNotFoundException: org.apache.solr.client.solrj.**SolrServer
>> because it
>> tries to load that in TextAssembler.init().
>>
>> Is there a way to tell it that I don't even want to use Solr? Thanks!
>>
>
>
> That's the SolrJ, the clients-side interface - not the whole of Solr.
> As the POM says:
>
> <dependency>
> <artifactId>solr-solrj</**artifactId>
> <groupId>org.apache.solr</**groupId>
> <version>${ver.solr}</version>
> <exclusions>
> <exclusion>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-api</**artifactId>
> </exclusion>
> <exclusion>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-jdk14</**artifactId>
> </exclusion>
> </exclusions>
> </dependency>
>
> Anything else from solr is scoped to "test" (use of embedded solr for
> testing).
>
> Andy
>
>
>
>> P.S. using Jena 2.10.2 with jean-text from:
>> https://repository.apache.org/**content/repositories/**
>> snapshots/org/apache/jena/**jena-text/1.0.0-SNAPSHOT/jena-**
>> text-1.0.0-20130626.075943-23.**jar<https://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-text/1.0.0-SNAPSHOT/jena-text-1.0.0-20130626.075943-23.jar>
>>
>>
>