Hello,

What is going on with http://wiki.dbpedia.org/snorql ?? I get the following 
response: 

                        
                        
                                Your are here:
                                
                                
                        
                

                

This page doesn't exist yet. Maybe you want to create it? 

I am trying to execute the following query through Jena. 

String prefixes = "PREFIX owl: <http://www.w3.org/2002/07/owl#>\n" +
        "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\n"+
        "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n"+
        "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n"+
        "PREFIX foaf: <http://xmlns.com/foaf/0.1/>\n"+
        "PREFIX dc: <http://purl.org/dc/elements/1.1/>\n"+
        "PREFIX : <http://dbpedia.org/resource/>\n"+
        "PREFIX dbpedia2: <http://dbpedia.org/property/>\n"+
        "PREFIX dbpedia: <http://dbpedia.org/>\n"+
        "PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\n"+  
        "PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>\n"+
        "PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>\n";
        
        String sparqlQueryString = prefixes +
        "SELECT ?resource ?page ?icon ?lat ?lon WHERE {\n" +
        "?resource foaf:name \""+name+"\"@en ;\n" +
         " foaf:page ?page ;\n" +
        "dbpedia-owl:thumbnail ?icon ;\n" +
        "geo:lat ?lat ;\n" +
        "geo:long ?lon.\n" +
        "}";
        
        Query query = QueryFactory.create(sparqlQueryString);
        QueryExecution qexec = 
QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql";, query);


        try {
           
            ResultSet results = qexec.execSelect();

.....}

and I get no results but when i execute the same query in 
http://dbpedia.org/sparql/ i get results. What is going on??

Could you help me please??

 



------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to