Les traductions sont fournies par des outils de traduction automatique. En cas de conflit entre le contenu d'une traduction et celui de la version originale en anglais, la version anglaise prévaudra.
Exemples d'utilisation du service d'exportation Neptune pour exporter des données d'entraînement pour Neptune ML
Cette demande exporte les données d'entraînement de graphe de propriétés pour une tâche de classification de nœud :
- curl
-
curl \(your NeptuneExportApiUri)\ -X POST \ -H 'Content-Type: application/json' \ -d '{ "command": "export-pg", "outputS3Path": "s3://(your Amazon S3 bucket)/neptune-export", "params": { "endpoint": "(your Neptune endpoint DNS name)", "profile": "neptune_ml" }, "additionalParams": { "neptune_ml": { "version": "v2.0", "targets": [ { "node": "Movie", "property": "genre", "type": "classification" } ] } } }' - awscurl
-
awscurl(your NeptuneExportApiUri)\ --regionus-east-1\ --service execute-api \ -X POST \ -H 'Content-Type: application/json' \ -d '{ "command": "export-pg", "outputS3Path": "s3://(your Amazon S3 bucket)/neptune-export", "params": { "endpoint": "(your Neptune endpoint DNS name)", "profile": "neptune_ml" }, "additionalParams": { "neptune_ml": { "version": "v2.0", "targets": [ { "node": "Movie", "property": "genre", "type": "classification" } ] } } }'Note
Cet exemple suppose que vos AWS informations d'identification sont configurées dans votre environnement. Remplacez
us-east-1par la région de votre cluster Neptune.
Cette demande exporte les données d'entraînement RDF pour une tâche de classification de nœud :
- curl
-
curl \(your NeptuneExportApiUri)\ -X POST \ -H 'Content-Type: application/json' \ -d '{ "command": "export-rdf", "outputS3Path": "s3://(your Amazon S3 bucket)/neptune-export", "params": { "endpoint": "(your Neptune endpoint DNS name)", "profile": "neptune_ml" }, "additionalParams": { "neptune_ml": { "version": "v2.0", "targets": [ { "node": "http://aws.amazon.com/neptune/csv2rdf/class/Movie", "predicate": "http://aws.amazon.com/neptune/csv2rdf/datatypeProperty/genre", "type": "classification" } ] } } }' - awscurl
-
awscurl(your NeptuneExportApiUri)\ --regionus-east-1\ --service execute-api \ -X POST \ -H 'Content-Type: application/json' \ -d '{ "command": "export-rdf", "outputS3Path": "s3://(your Amazon S3 bucket)/neptune-export", "params": { "endpoint": "(your Neptune endpoint DNS name)", "profile": "neptune_ml" }, "additionalParams": { "neptune_ml": { "version": "v2.0", "targets": [ { "node": "http://aws.amazon.com/neptune/csv2rdf/class/Movie", "predicate": "http://aws.amazon.com/neptune/csv2rdf/datatypeProperty/genre", "type": "classification" } ] } } }'Note
Cet exemple suppose que vos AWS informations d'identification sont configurées dans votre environnement. Remplacez
us-east-1par la région de votre cluster Neptune.
Exportation de données
Réglages des paramètres