[
https://issues.apache.org/jira/browse/JENA-1238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15533911#comment-15533911
]
ASF GitHub Bot commented on JENA-1238:
--------------------------------------
GitHub user ramiromagalhaes opened a pull request:
https://github.com/apache/jena/pull/172
Proposal to add 2 new getters in the Resource interface.
Here is a proposal to solve issue JENA-1238.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ramiromagalhaes/jena JENA-1238
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jena/pull/172.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #172
----
commit 15f9e4caa3cdbfd3f978be0ec1465dbcb377d742
Author: Ramiro Pereira de Magalhães <[email protected]>
Date: 2016-09-29T18:48:39Z
Proposal to add 2 new getters in the Resource interface.
----
> 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)