[ 
https://issues.apache.org/jira/browse/JENA-339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne resolved JENA-339.
--------------------------------

       Resolution: Fixed
    Fix Version/s: Jena 2.11.1
         Assignee: Andy Seaborne

Done as part of JENA-595

> Review pushing FILTERs into sequences
> -------------------------------------
>
>                 Key: JENA-339
>                 URL: https://issues.apache.org/jira/browse/JENA-339
>             Project: Apache Jena
>          Issue Type: Task
>          Components: ARQ
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Minor
>             Fix For: Jena 2.11.1
>
>
> The code isn't doing the best it could (see below).
> This maybe just because SERVICE is involved. The code needs review for when 
> it takes place in the optimization processes and which forms if can push 
> filters over.
> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
> PREFIX owl: <http://www.w3.org/2002/07/owl#>
> PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
> PREFIX dbo: <http://dbpedia.org/ontology/>
> SELECT *
> WHERE {
>   ?country a dbo:Country .
>   ?country owl:sameAs ?wbcountry .
>   FILTER (regex(str(?wbcountry), "^http://worldbank.270a.info/";))
>   SERVICE <http://worldbank.270a.info/sparql> {
>       ?wbcountry skos:prefLabel ?label
>   }
> } 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to