Hi folks :

   I am querying dbpedia using sparql through python. I am facing issues
with the upper execution time limit . This is the error :

   Code :

      sparql = SPARQLWrapper("http://dbpedia.org/sparql";)
    newquery = "DEFINE input:inference \"skos-trans\" \
 PREFIX dcterms: <http://purl.org/dc/terms/> \
 select distinct ?cat1 ?cat2 ?cat3 ?cat4  where { \
    <http://dbpedia.org/resource/Pulp_Fiction> dcterms:subject ?cat1 . \
    ?cat1  skos:broaderTransitive   ?cat2. \
    ?cat2  skos:broaderTransitive   ?cat3. \
    ?cat3  skos:broaderTransitive   ?cat4. \
     } "

    sparql.setQuery( newquery)
    sparql.setReturnFormat(JSON)
    results = sparql.query().convert()


Response :  Virtuoso 42000 Error The estimated execution time 5286 (sec)
exceeds the limit of 3000 (sec)
How to get through this problem ??

Regards
Somesh Jain
4th year Undergraduate Student
Department of Computer Science & Engineering
IIT Kharagpur
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to