I'm using a sparql query on live.dbpedia.org to traverse a hierarchy of 
categories and return property values from pages in those categories.  There 
seems to be an issue where the URLs for some of the categories use "%3A" 
instead of ":" which prevents the query from finding pages in that category.

The example query below, when run on live.dbpedia.org/sparql shows that the 
first 32 categories have this issue, while the rest is ok.

SELECT ?category replace(str(?category),'%3A',':') as ?category_fixed
WHERE {
  { SELECT ?category ?y WHERE {
    ?category skos:broader ?y .
    ?category rdfs:label ?categoryName .
    FILTER (regex(?categoryName, "power station", "i") ||
    regex(?categoryName, "power plant", "i") ||
    regex(?categoryName, "CHP plants", "i") ||
    regex(?categoryName, "Wave farms", "i") ||
    regex(?categoryName, "Wind farms", "i")) .
  } }
  OPTION ( TRANSITIVE, T_DISTINCT, t_in(?category), t_out(?y), 
t_step('path_id') as ?path, t_step(?category) as ?route, t_step('step_no') AS 
?jump, T_DIRECTION 2 )
  FILTER ( ?y = 
<http://dbpedia.org/resource/Category:Power_stations_by_country> ) .
  OPTIONAL { ?plant dc:subject ?category } .
} group by ?category order by ?category limit 50

Is this a known issue?  Is there a workaround that I can employ?

Regards,

Chris
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to