https://bugzilla.wikimedia.org/show_bug.cgi?id=27991

           Summary: getTripleList in SMWExpData creates blank nodes for
                    values of 0. Possible fix included
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Semantic MediaWiki
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


I've been debugging an issue where literal object values of zero are converted
into blank nodes.  The particular property for this object has units associated
with it, although I doubt that this contributes to the bug.

I believe that the problem is in the check for blank nodes in the getTripleList
function in SMW_Exp_Data.php.  If I understand things correctly, then this
line:
if ( ( $name == '' ) || ( $name[0] == '_' ) ) {

should be changed to this:
if ( ( $name === '' ) || ( $name[0] === '_' ) ) {

...so that it does not interpret 0 as an empty string.

Chris

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to