Github user afs commented on a diff in the pull request:

    https://github.com/apache/jena/pull/320#discussion_r154326766
  
    --- Diff: 
jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java ---
    @@ -347,11 +352,15 @@ private StrMatch objectToStruct(PropFuncArg 
argObject, boolean executionTime) {
                     log.warn("Text query string is not a literal " + list) ;
                 return null ;
             }
    -        
    -        if (x.getLiteralDatatype() != null && 
!x.getLiteralDatatype().equals(XSDDatatype.XSDstring)) {
    --- End diff --
    
    Comment:
    In RDF 1.1, the data type of a literal is never null.
    
    There are functions like `Util.isLangString` (in RDF 1.1: rdf:langString) 
and `Util.isSimpleString` (in RDF 1.1, xsd:string) that mask the RDF1.0/RDF 1.1 
mode setting (not that Jena claims to support RDF 1.0 any more).


---

Reply via email to