On 11/10/13 13:45, Andrea Dessi wrote:
Hi Andy,

Thanks for your prompt response.

My Solr Server contains fields like

- mayor_s
- name_s
- etc etc.

The map between the field of Solr Server and Dbpedia is
(mayor_s-->dbpprop:mayor)

# dbpprop:mayor
         [ text:field "mayor_s" ; text:predicate dbpprop:mayor ]

I tried this query:

SELECT ?res
WHERE {
     ?res text:query (dbpprop:mayor 'Ma*')
}

and my Solr Server receives the query looking the log but Jena responds

Error 500: Node.Make null.

??
And you get the other message in the solr log?


Any idea,

The message:

"Document is missing mandatory uniqueKey field: id"

comes from Solr -- this looks like it is defined in schema.xml.

What is the schema.xml you are using?

text:entityField      "uri" ;

so the server.xml is going to need something like:

<field name="uri" type="string" indexed="true" stored="true" required="true" multiValued="false" />

isn't it?

        Andy


Thanks.

Andrea



2013/10/9 Andy Seaborne <[email protected]>

I'm trying to config the Jena file tdb-config.ttl for Solr index and I get
this error

Document is missing mandatory uniqueKey field: id

I want to map, for example, the field country_s Solr on my config.ttl
file.


Thanks for config file, which looks OK.

In your schema.xml for Solr, what have you defined?

Unfortunately, for Solr, you have to align the client (Solr4j and Fuseki)
with the server side.  There is no way to do this automatically.

         Andy






Reply via email to