コード例 #1
0
        private static object Execute(string name, Dictionary <string, string> values)
        {
            var endpoint = Resources.DB.Endpoints[name];

            if (endpoint.Type == EndpointType.HardCoded)
            {
                return(FixedQueryController.ExecuteHardCoded(name, values));
            }
            else
            {
                return(FixedQueryController.ExecuteNamedSparql(name, values));
            }
        }
コード例 #2
0
        private static object Execute(string name, Dictionary <string, string> values)
        {
            var endpoint     = Resources.GetApiPathItem(name);
            var endpointType = Resources.GetEndpointType(endpoint);

            if (endpointType == EndpointType.HardCoded)
            {
                return(FixedQueryController.ExecuteHardCoded(name, values));
            }
            else
            {
                return(FixedQueryController.ExecuteNamedSparql(name, values));
            }
        }