pythontimeoutsparqlwrapper

Python : SpaqrlWrapper, Timeout?


I am new to python as well as new to the world of querying the semantic web. I am using SPARQLWrapper library to query dbpedia, I searched the library documentation but failed to find 'timeout' for a query fired to dbpedia from sparqlWrapper.

Anyone has any idea about the same.


Solution

  • DBPedia uses Virtuoso server for it's endpoint and timeout is a virtuoso-specific option. SparqlWrapper doesn't currently support it.

    Next version will feature better modularity and proper vendor-specific extensions might be implemented after that, but I guess you don't have time to wait.

    Currently, the only way to add such parameter is to manually hardcode it into your local version of library