Skip to content

Commit

Permalink
Remove unused code; Timeout to 3 seconds;
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldelaparra committed Oct 24, 2021
1 parent a8ca67c commit db1ba21
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions SparqlForHumans.Server/Controllers/QueryGraphController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ public class Result
public string Id { get; set; }
public string Value { get; set; }
}
//public Dictionary<string, Result> ToDictionary(IEnumerable<Property> subjects)
//{
// return subjects.ToDictionary(x => x.Id, y => new Result() { Id = $"http://www.wikidata.org/prop/direct/{y.Id}", Value = y.Label });
//}
//public Dictionary<string, Result> ToDictionary(IEnumerable<Entity> subjects)
//{
// return subjects.ToDictionary(x => x.Id, y => new Result() { Id = $"http://www.wikidata.org/entity/{y.Id}", Value = y.Label });
//}
}


Expand Down
2 changes: 1 addition & 1 deletion SparqlForHumans.Wikidata/Services/GraphApiQueries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace SparqlForHumans.Wikidata.Services
{
public static class GraphApiQueries
{
public static int QueryTimeoutMs { get; set; } = 5000;
public static int QueryTimeoutMs { get; set; } = 3000;
public static SparqlResultSet RunQuery(string sparqlQuery, bool runOnEndpoint = true)
{
if (!runOnEndpoint)
Expand Down

0 comments on commit db1ba21

Please sign in to comment.