コード例 #1
0
 private void ConfigureWriterSettings(ODataSparqlServiceConfigurationSection serviceConfiguration)
 {
     BaseODataWriterSettings = new ODataMessageWriterSettings
     {
         Indent  = serviceConfiguration.OutputConfiguration.Indent,
         Version = ODataVersion.V3
     };
 }
コード例 #2
0
 private void ConfigureWriterSettings(ODataSparqlServiceConfigurationSection serviceConfiguration)
 {
     BaseODataWriterSettings = new ODataMessageWriterSettings
         {
             Indent = serviceConfiguration.OutputConfiguration.Indent,
             Version = ODataVersion.V3
         };
 }
コード例 #3
0
        private static SparqlEndpointConfigurationElement FindEndpointConfiguration(string name,
                                                                                    ODataSparqlServiceConfigurationSection
                                                                                    serviceConfiguration)
        {
            var endpoint =
                serviceConfiguration.Endpoints.OfType <SparqlEndpointConfigurationElement>()
                .FirstOrDefault(ep => ep.Name.Equals(name));

            if (endpoint == null)
            {
                throw new Exception("No configuration found for SPARQL service named " + name);
            }
            return(endpoint);
        }
コード例 #4
0
 private static SparqlEndpointConfigurationElement FindEndpointConfiguration(string name,
                                                                             ODataSparqlServiceConfigurationSection
                                                                                 serviceConfiguration)
 {
     var endpoint =
         serviceConfiguration.Endpoints.OfType<SparqlEndpointConfigurationElement>()
                             .FirstOrDefault(ep => ep.Name.Equals(name));
     if (endpoint == null)
     {
         throw new Exception("No configuration found for SPARQL service named " + name);
     }
     return endpoint;
 }