[ https://issues.apache.org/jira/browse/JENA-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15069651#comment-15069651 ]
Andy Seaborne commented on JENA-1082: ------------------------------------- Are you storing the RDF in-memory? If so, there is a different thing going on. The {{listLiteralStatements}} is finding {{v:num}} based on value, not on the term (lexical forma + datatype). if you ask for 200(int) it will list 200^^xsd:long, or 200^^xsd:integer, or 200^^xsd:nonNegativeInteger or several others. If you care about the presentation, you need to check the datatype as well. Relying on the java basic type mapping to RDF datatype is unreliable as it is not perfect and two-way. > 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)