[ 
https://issues.apache.org/jira/browse/JENA-1238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15551983#comment-15551983
 ] 

Andy Seaborne commented on JENA-1238:
-------------------------------------

This adds the operations in the common style of the Resource interface.

All {{get*}} return one (or none) items - {{list*}} is the style for returning 
zero-to-many as an iterator.

I'll add the operations to roll this improvement out systematically -- 
{{Resource.listProperty(,lang)}} and the matching 
Model.(get|list)(Required)?Property(,,lang)}}.

> Add methods on Resource class that look for Properties in a specific language
> -----------------------------------------------------------------------------
>
>                 Key: JENA-1238
>                 URL: https://issues.apache.org/jira/browse/JENA-1238
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: Jena 3.1.0
>            Reporter: Ramiro Pereira de Magalhães
>
> It would be very convenient to have in the 
> {{org.apache.jena.rdf.model.Resource}} interface methods such as:
> {code}
>     public Statement getProperty( Property p, String lang );
>     public Statement getRequiredProperty( Property p, String lang );
> {code}
> They'd work like very much like 
> {{org.apache.jena.rdf.model.ModelCon.listStatements(Resource, Property, 
> String, String)}}.
> This would simplify queries to a Resource's language-specific properties.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to