Skip to content

Commit 34d16e5

Browse files
charlesiviemichaelnchinkrlawrence
authored
SPARQL / RDF Machine Learning guides (#252)
* added RDF ML notebooks * cleaning up the code a bit * completed regression and classification for SPARQL ML * added RDF ML notebooks * cleaning up the code a bit * completed regression and classification for SPARQL ML * Complete notebooks for SPARQL Classification - Regression and Link Prediction * Complete notebooks for SPARQL Classification - Regression and Link Prediction * Complete notebooks for SPARQL Classification - Regression and Link Prediction * Complete notebooks for SPARQL Classification - Regression and Link Prediction * Rename gremlin profile args for clarity (#249) Co-authored-by: Michael Chin <chnmch@amazon.com> * Add --results-per-page query option (#242) * Add -r option * Replace interval value * Add upper limit Co-authored-by: Michael Chin <chnmch@amazon.com> * Pin ipython<7.17.0 to patch vulnerability (#250) Co-authored-by: Michael Chin <chnmch@amazon.com> * Disable root logger output (#248) Co-authored-by: Michael Chin <chnmch@amazon.com> * Fix OC Bolt metadata (#255) * Fix OC Bolt query metadata output * Add OC metadata tests Co-authored-by: Michael Chin <chnmch@amazon.com> * Add groupby raw node result option (#253) * Add --group-by-raw query option * Add unit tests Co-authored-by: Michael Chin <chnmch@amazon.com> * Add Gremlin group-by-depth (#251) * Add --group-by-depth to Gremlin, modify OC with same explicit param * Add tests * PEP8 fixes Co-authored-by: Michael Chin <chnmch@amazon.com> * addressing comment left in PR #252 related to better conditional statements * Update ChangeLog.md * Suffix all doubles with d. Node batch reduced to 40 (#257) * Suffix all doubles with d. Node batch reduced to 40 * Update changelog for seed file changes * Update ChangeLog.md * Update ChangeLog.md Co-authored-by: Michael Chin <mchin188@yahoo.com> * Convert Decimal type results to float for Gremlin (#256) * Convert Decimal type values in GremlinNetwork * replace star import * Revert temp test change * Convert decimal type edge properties * Update Changelog Co-authored-by: Michael Chin <chnmch@amazon.com> * removed hard coded genre deletes, and moved them into the notebook. * removed hard coded genre deletes, and moved them into the notebook. * removed hard coded ciritcScore deletes, and moved them into the notebook. * removed hard coded link prediction retractions, and moved them into the notebook. * completed the Getting Started notebook with the pretrained models. * completed the Getting Started notebook with the pretrained models. * added RDF ML notebooks * cleaning up the code a bit * completed regression and classification for SPARQL ML * Complete notebooks for SPARQL Classification - Regression and Link Prediction * Complete notebooks for SPARQL Classification - Regression and Link Prediction * added RDF ML notebooks * cleaning up the code a bit * completed regression and classification for SPARQL ML * Complete notebooks for SPARQL Classification - Regression and Link Prediction * Complete notebooks for SPARQL Classification - Regression and Link Prediction * addressing comment left in PR #252 related to better conditional statements * removed hard coded genre deletes, and moved them into the notebook. * removed hard coded genre deletes, and moved them into the notebook. * removed hard coded ciritcScore deletes, and moved them into the notebook. * removed hard coded link prediction retractions, and moved them into the notebook. * completed the Getting Started notebook with the pretrained models. * completed the Getting Started notebook with the pretrained models. * tests passing for new SPARQL ML notebooks * Added detail fo new SPARQL/RDF ML notebooks to the change log * fixed bugs in link prediction, amde small improvements after review * updated location of pre-trained models Co-authored-by: Michael Chin <mchin188@yahoo.com> Co-authored-by: Michael Chin <chnmch@amazon.com> Co-authored-by: Kelvin Lawrence <gfxman@yahoo.com>
1 parent fa64335 commit 34d16e5

10 files changed

+3684
-2
lines changed

ChangeLog.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Starting with v1.31.6, this file will contain a record of major features and upd
1717
- Fixed Gremlin visualizer bug with handling non-string node IDs ([Link to PR](https://github.com/aws/graph-notebook/pull/245))
1818
- Fixed error in openCypher Bolt query metadata output ([Link to PR](https://github.com/aws/graph-notebook/pull/255))
1919
- Fixed handling of Decimal type properties when rendering Gremlin query results ([Link to PR](https://github.com/aws/graph-notebook/pull/256))
20+
- Added new notebooks: guides for using SPARQL and RDF with Neptune ML ([Link to PR](https://github.com/aws/graph-notebook/pull/252))
2021

2122
## Release 3.1.1 (December 21, 2021)
2223
- Added new dataset for DiningByFriends, and associated notebook ([Link to PR](https://github.com/aws/graph-notebook/pull/235))

src/graph_notebook/notebooks/04-Machine-Learning/Neptune-ML-SPARQL/Neptune-ML-00-Getting-Started-with-Neptune-ML-SPARQL.ipynb

+788
Large diffs are not rendered by default.

src/graph_notebook/notebooks/04-Machine-Learning/Neptune-ML-SPARQL/Neptune-ML-01-Introduction-to-Object-Classification-SPARQL.ipynb

+745
Large diffs are not rendered by default.

src/graph_notebook/notebooks/04-Machine-Learning/Neptune-ML-SPARQL/Neptune-ML-02-Introduction-to-Object-Regression-SPARQL.ipynb

+707
Large diffs are not rendered by default.

src/graph_notebook/notebooks/04-Machine-Learning/Neptune-ML-SPARQL/Neptune-ML-03-Introduction-to-Link-Prediction-SPARQL.ipynb

+708
Large diffs are not rendered by default.

src/graph_notebook/notebooks/04-Machine-Learning/Neptune-ML-SPARQL/__init__.py

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"models": {
3+
"object_classification": "s3://aws-neptune-customer-samples/v2/neptune-ml/pretrained-models/v2/rdf/object-classification/model.tar.gz",
4+
"object_regression": "s3://aws-neptune-customer-samples/v2/neptune-ml/pretrained-models/v2/rdf/object-regression/model.tar.gz",
5+
"link_prediction": "s3://aws-neptune-customer-samples/v2/neptune-ml/pretrained-models/v2/rdf/link-prediction/model.tar.gz"
6+
},
7+
"models_cn": {
8+
"object_classification": "s3://aws-neptune-customer-samples-cn-northwest-1/v2/neptune-ml/pretrained-models/v2/rdf/object-classification/model.tar.gz",
9+
"object_regression": "s3://aws-neptune-customer-samples-cn-northwest-1/v2/neptune-ml/pretrained-models/v2/rdf/object-regression/model.tar.gz",
10+
"link_prediction": "s3://aws-neptune-customer-samples-cn-northwest-1/v2/neptune-ml/pretrained-models/v2/rdf/link-prediction/model.tar.gz"
11+
},
12+
"container_images": {
13+
"us-west-1":"891482049861.dkr.ecr.us-west-1.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
14+
"us-west-2":"891482049861.dkr.ecr.us-west-2.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
15+
"us-east-1":"891482049861.dkr.ecr.us-east-1.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
16+
"us-east-2":"891482049861.dkr.ecr.us-east-2.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
17+
"ap-northeast-1":"891482049861.dkr.ecr.ap-northeast-1.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
18+
"ap-northeast-2":"891482049861.dkr.ecr.ap-northeast-2.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
19+
"ap-southeast-1":"891482049861.dkr.ecr.ap-southeast-1.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
20+
"ap-southeast-2":"891482049861.dkr.ecr.ap-southeast-2.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
21+
"ap-south-1":"891482049861.dkr.ecr.ap-south-1.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
22+
"ap-east-1":"492694554042.dkr.ecr.ap-east-1.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
23+
"ca-central-1": "891482049861.dkr.ecr.ca-central-1.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
24+
"eu-central-1":"891482049861.dkr.ecr.eu-central-1.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
25+
"eu-north-1":"891482049861.dkr.ecr.eu-north-1.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
26+
"eu-west-1":"891482049861.dkr.ecr.eu-west-1.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
27+
"eu-west-2":"891482049861.dkr.ecr.eu-west-2.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
28+
"eu-west-3":"891482049861.dkr.ecr.eu-west-3.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
29+
"me-south-1":"931515848886.dkr.ecr.me-south-1.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
30+
"sa-east-1":"891482049861.dkr.ecr.sa-east-1.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
31+
"cn-north-1":"639043989634.dkr.ecr.cn-north-1.amazonaws.com.cn/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
32+
"cn-northwest-1":"639043989634.dkr.ecr.cn-northwest-1.amazonaws.com.cn/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3",
33+
"us-gov-west-1":"106643864031.dkr.ecr.sa-east-1.amazonaws.com/graphlytics-pytorch-inference:v1-1.6.0-cpu-py3"
34+
}
35+
}

0 commit comments

Comments
 (0)