Ejemplo n.º 1
0
 /// <summary>
 /// Default constructor. This constructor is used by Lambda to construct the instance. When invoked in a Lambda environment
 /// the AWS credentials will come from the IAM role associated with the function and the AWS region will be set to the
 /// region the Lambda function is executed in.
 /// </summary>
 public Function()
 {
     _s3Client             = new AmazonS3Client();
     _blazegraph           = new BlazegraphConnector(BLAZEGRAPH_ENDPOINT);
     _supportedExportTypes = new List <string> {
         "ttl", "rdf"
     };
 }
        private T RetrieveObject <T>(Func <T, bool> where)
            where T : class
        {
            using (var _graphConn = new BlazegraphConnector("http://51.144.44.26:8080/blazegraph", "oqtopus-main"))
            {
                var grap1 = new Graph();
                grap1.BaseUri = new Uri("http://graph.oqtopus.io/raw/logic");
            }

            return(null);
        }
        private void UpdateObject <T>(T obj1, Func <T, string> idFunc)
            where T : class
        {
            using (var _graphConn = new BlazegraphConnector("http://51.144.44.26:8080/blazegraph", "oqtopus-main"))
            {
                var grap1 = new Graph();
                grap1.BaseUri = new Uri("http://graph.oqtopus.io/raw/logic");

                var lstTriples = new List <Triple>();

                _graphConn.UpdateGraph("http://graph.oqtopus.io/raw/logic", lstTriples, Enumerable.Empty <Triple>());
            }
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Default constructor. This constructor is used by Lambda to construct the instance. When invoked in a Lambda environment
 /// the AWS credentials will come from the IAM role associated with the function and the AWS region will be set to the
 /// region the Lambda function is executed in.
 /// </summary>
 public Function()
 {
     _s3Client    = new AmazonS3Client();
     _blazegraph  = new BlazegraphConnector(BLAZEGRAPH_ENDPOINT);
     _nodeFactory = new NodeFactory();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Default constructor. This constructor is used by Lambda to construct the instance. When invoked in a Lambda environment
 /// the AWS credentials will come from the IAM role associated with the function and the AWS region will be set to the
 /// region the Lambda function is executed in.
 /// </summary>
 public Function()
 {
     _s3Client    = new AmazonS3Client();
     _pollyClient = new AmazonPollyClient(RegionEndpoint.EUWest1);
     _blazegraph  = new BlazegraphConnector(BLAZEGRAPH_ENDPOINT);
 }