[
https://issues.apache.org/jira/browse/JENA-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15066453#comment-15066453
]
Ramiro Pereira de Magalhães commented on JENA-1082:
---------------------------------------------------
Hi,
sorry for the delay to answer.
At the moment, I'm storing things on a XML file. I'm simply adhering to an
specification I was given about a RDF model I must query and update. While
testing my code about this issue I noticed that, should I have the following
data on the file...
{code}
<v:number rdf:about="http://meh#0001">
<v:num rdf:datatype="http://www.w3.org/2001/XMLSchema#int">2</v:num>
<v:num rdf:datatype="http://www.w3.org/2001/XMLSchema#long">200</v:num>
</v:number>
{code}
... and I query it with {{StmtIterator listLiteralStatements(Resource subject,
Property predicate, long object );}}, I may get an the int typed value or the
long typed value. It seems to depend only on the position of the lines in the
XML file. That's the reason why I want to specify the precise type of the
property I'm looking for.
> Add to org.apache.jena.rdf.model.ModelCon interface a listLiteralStatements
> method that accepts ints.
> -----------------------------------------------------------------------------------------------------
>
> Key: JENA-1082
> URL: https://issues.apache.org/jira/browse/JENA-1082
> Project: Apache Jena
> Issue Type: Improvement
> Components: Core
> Affects Versions: Jena 3.0.0
> Reporter: Ramiro Pereira de Magalhães
> Priority: Minor
>
> Add to org.apache.jena.rdf.model.ModelCon interface a {{StmtIterator
> listLiteralStatements(Resource subject, Property predicate, int object );}}
> method.
> Implement such method in classes that implement such interface. This method
> should be able to list literal integer statements, like the other
> listLiteralStatement methods do to other types.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)