Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-24-2021 06:16 AM
Hello,
The general question is how you can provide a multiline JSON structure as a :param correctly?
Google NLP APOC procedures require a key which is in itself a complex JSON structure
Trying to get Google NLP functions to work with DBMS 4.2.4 and APOC 4.2.0.4
The documentation indicates to do the following
:param apiKey => ("")
Because of the json structure key this doesn't work
Kind regards, KT
06-24-2021 02:03 PM
The Google apiKey is normal text, not in JSON structure.
You can create it here.
APIs & services > Credentials > +CREATE CREDENTIALS > API Key
It is used in variables like this.
CALL apoc.nlp.gcp.entities.graph(nodes, {
key: $apiKey,
nodeProperty: 'body',
writeRelationshipType: 'GCP_ENTITY',
write:true
})
YIELD graph
06-28-2021 12:00 PM
Koji,
Thanks, I now have an API key and this works.
I only worked with Google Service account keys up until now so thanks for the tip!
Kind regards, Koen
All the sessions of the conference are now available online